Skip to content

Commit

Permalink
Add 'clone_snapshot_trigger' packet to the trace if it was cloned by …
Browse files Browse the repository at this point in the history
…the trigger.

Add `static_cast` to fix compilation in google3.

Bug: 345762203
Change-Id: Ice5f07760a00ee7aaf9ac47d1e2c9e1fa829c3e0
  • Loading branch information
Kirill Timofeev committed Nov 25, 2024
1 parent 7bb662b commit 060948f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/perfetto_cmd/perfetto_cmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,8 @@ void PerfettoCmd::OnObservableEvents(
observable_events.clone_trigger_hit().boot_time_ns(),
observable_events.clone_trigger_hit().trigger_name(),
observable_events.clone_trigger_hit().producer_name(),
observable_events.clone_trigger_hit().producer_uid()};
static_cast<uid_t>(
observable_events.clone_trigger_hit().producer_uid())};
OnCloneSnapshotTriggerReceived(static_cast<TracingSessionID>(tsid),
trigger);
}
Expand Down

0 comments on commit 060948f

Please sign in to comment.