DescriptionEnable trace with multiple categories with any one category ON
As per documentation https://code.google.com/p/chromium/codesearch#chromium/src/base/trace_event/trace_event.h&l=27
for any trace event which specifies category group, the trace event needs to be
recorded when either of category present in the group is enabled.
Current implementation short circuits the check for enabled category group
and returns false as soon as any category is found which is not enabled.
Rather, short circuit for returning true when any enabled category is found.
Otherwise, should check for each category present in the group until any
one enabled category is found. Return false only if no enabled category
is found.
BUG=463385
TESTS=Updated TraceEventTestFixture tests in base_unittests
Committed: https://crrev.com/2c3eb845ad50b3f7fd8f4b675c21e04cc393d9b0
Cr-Commit-Position: refs/heads/master@{#319417}
Patch Set 1 #Patch Set 2 : Fixed the unit tests! #Patch Set 3 : Updated the commit message! #Patch Set 4 : #
Total comments: 3
Patch Set 5 : Reworked as per comments! #
Total comments: 4
Patch Set 6 : Patch for landing! #Messages
Total messages: 15 (3 generated)
|