From 060948ffa217a0a98edf3db19d27bcfd0cf431fe Mon Sep 17 00:00:00 2001 From: Kirill Timofeev Date: Mon, 25 Nov 2024 13:01:28 +0000 Subject: [PATCH] Add 'clone_snapshot_trigger' packet to the trace if it was cloned by the trigger. Add `static_cast` to fix compilation in google3. Bug: 345762203 Change-Id: Ice5f07760a00ee7aaf9ac47d1e2c9e1fa829c3e0 --- src/perfetto_cmd/perfetto_cmd.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/perfetto_cmd/perfetto_cmd.cc b/src/perfetto_cmd/perfetto_cmd.cc index 729d056986..385c15d309 100644 --- a/src/perfetto_cmd/perfetto_cmd.cc +++ b/src/perfetto_cmd/perfetto_cmd.cc @@ -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( + observable_events.clone_trigger_hit().producer_uid())}; OnCloneSnapshotTriggerReceived(static_cast(tsid), trigger); }