Description[tracing] Add support for profiling trace events
This CL adds a new mode called profiling. In this mode all the
categories are profiled but the trace events are not added. The
profiling lets us get pseudo stacks at any point without actually adding
all the trace events. This is useful for heap profiling since we are
able to get the heap profile with lot of information in smaller trace
files.
Changes:
- Adds ENABLED_FOR_PROFILING in CategoryGroupEnabledFlags which is set
when heap profiling is enabled.
- All scoped trace events irrespective of the categories being enabled
will be added to pseudo stack if profiling is enabled.
This change does not add the events to pseudo stack since this is not
yet supported in skia blink and V8
There should be no performance impact on release builds since it just
adds an additional bit flag.
For impact on performance of tracing see https://goo.gl/Q3TZgg.
BUG=598426
Patch Set 1 #Patch Set 2 : Fixes. #Patch Set 3 : fixing unittest #Patch Set 4 : Reduce if(s)? #Patch Set 5 : Don't add to stack yet. #Patch Set 6 : nits. #
Total comments: 2
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 12 (8 generated)
|