Fix check for whether a trace tag is enabled
With the introduction of libperfetto_tracing, we need to check both perfetto track_events and atrace categories to determine if a trace tag is enabled. Perfetto SDK doesn't expose a list (or bitmask) of all enabled categories, but we can check if a specific category is enabled. Rewrote the internal impl for Trace#isTagEnabled to pass the tag into native and return a boolean instead of getting all the enabled tags from native and checking in Java. Test: atest libtracing_perfetto_tests Bug: 303199244 Change-Id: I4aa67bdcd86f15ec723955bb3619015fcb16063e
Loading
Please register or sign in to comment