diff options
| author | 2024-03-14 17:18:09 +0000 | |
|---|---|---|
| committer | 2024-03-14 17:18:09 +0000 | |
| commit | cd6024fb88e4fef7843110f91108ae89789114e7 (patch) | |
| tree | 92d4e130d400ab462f9e20b2373ce5a099679507 /libs/gui/DisplayLuts.cpp | |
| parent | 70c5c4b0910dbd32fc76e62b65c9a12dd8245e4c (diff) | |
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: I175deb4d03fef486e4a2d571c8a8f1fbde220f36
Diffstat (limited to 'libs/gui/DisplayLuts.cpp')
0 files changed, 0 insertions, 0 deletions