statsd: add subscription id to Perfetto command line and fix printf bug
This CL adds the id of the subscription triggering Perfetto to the command line invocation of Perfetto. This is useful to allow for distinguishing between experiments in post-processing (since the same alert can be attached to multiple subscriptions). This also fixes a bug in the same place where the last character of ids could be cut off if any of the ids are large negative numbers i.e. the smallest possible int64 is 20 chars long (including the minus sign). However there were only 19 available digits in the string buffers which these ids were printed into (the 20th would be the null terminator). Increase the buffer size by 5 characters to allow for some headroom just incase we need some in the future. Bug: 122822046 Change-Id: I9c3ac8cb8b203fd464eee2c72b1228f1a50448b1
Loading
Please register or sign in to comment