OSDN Git Service

statsd: Pass alert and config id to Perfetto
authorSami Kyostila <skyostil@google.com>
Thu, 22 Mar 2018 19:09:02 +0000 (19:09 +0000)
committerPrimiano Tucci <primiano@google.com>
Tue, 27 Mar 2018 17:25:20 +0000 (17:25 +0000)
commitd0dd6c7cefb23e0f521aac533087281be2c30bdd
tree336f540020a33f67a00e240e7db5d60dbcdb450f
parent51e33d1948e68c5ccbceb283a4a9fc857d44b62b
statsd: Pass alert and config id to Perfetto

When triggering a Perfetto trace, pass the alert and config id to the
perfetto command line tool to record them into the trace. This lets us
correlate Perfetto traces with statsd alerts.

Bug: 73627502
Test: Manual
Change-Id: I301ee5e5e8bdb83d08e8d55b994c15a6541a92f2
Merged-In: I301ee5e5e8bdb83d08e8d55b994c15a6541a92f2
(cherry picked from commit 209a5915dcfe030912dda57df4fb6390385c7de3)
cmds/statsd/src/anomaly/subscriber_util.cpp
cmds/statsd/src/external/Perfetto.cpp
cmds/statsd/src/external/Perfetto.h