DescriptionImplement backend for thread names and process names.
Added a new trace event phase 'M'/TRACE_EVENT_PHASE_METADATA,
which can become a general mechanism for adding metadata to traces.
The two M-type events that we then add are:
{ph=M pid=<pid> name="process_name" args={ name="name of pid" }}
{ph=M pid=<pid> tid=<tid> name="thread_name" args={ name="name of tid" }}
base::thread is instrumented to set names automatically. I will do a followon
changelist to add instrumentation to Chrome for its various processes and
threads.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95997
Patch Set 1 #Patch Set 2 : Remove process names. With thread names, they are redundant. #
Total comments: 10
Patch Set 3 : Much cleaner, using siggi's approach.p #
Total comments: 10
Patch Set 4 : Handle thread id repeats, fix locking, clarify name lifetime. #
Total comments: 2
Patch Set 5 : Tweaks, remove changes to chrome/ #Patch Set 6 : Tweaks to pass all trybots. #
Total comments: 2
Messages
Total messages: 17 (0 generated)
|