Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Issue 8470001: TraceEvent fixes for thread name changes (Closed)

Created:
9 years, 1 month ago by joth
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

Support thread name changes in trace event This is needed for trace names to appear correctly on startup traces, as early threads start tracing before their name is set. The thread local boolean was previously defeating the logic to detect name changes (the code was inaccessible), and we'd just permanently record early threads as having no name. BUG=None TEST=--trace-startup results in correct names in traces Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109439

Patch Set 1 #

Patch Set 2 : fix spurious test statement #

Patch Set 3 : fix mac #

Total comments: 8

Patch Set 4 : jbates & nduca comments #

Total comments: 2

Patch Set 5 : jar comment #

Patch Set 6 : fix windows #

Patch Set 7 : fix mac - can't pass NULL to PlatformName::SetName #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -18 lines) Patch
M base/debug/trace_event.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M base/debug/trace_event.cc View 1 2 3 4 3 chunks +22 lines, -16 lines 0 comments Download
M base/debug/trace_event_unittest.cc View 1 2 3 4 5 6 4 chunks +49 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
joth
9 years, 1 month ago (2011-11-04 12:43:36 UTC) #1
joth
On 2011/11/04 12:43:36, joth wrote: ping! any thoughts?
9 years, 1 month ago (2011-11-08 10:19:53 UTC) #2
jbates
http://codereview.chromium.org/8470001/diff/4001/base/debug/trace_event.cc File base/debug/trace_event.cc (right): http://codereview.chromium.org/8470001/diff/4001/base/debug/trace_event.cc#newcode519 base/debug/trace_event.cc:519: if (cur_name && *cur_name && Since the steady state ...
9 years, 1 month ago (2011-11-08 18:44:38 UTC) #3
nduca
Make sure this passes the bots.... I think it will but a lot of threads ...
9 years, 1 month ago (2011-11-09 04:02:24 UTC) #4
nduca
LGTM
9 years, 1 month ago (2011-11-09 04:02:28 UTC) #5
joth
+jar for OWNERS mark of approval. Thanks! http://codereview.chromium.org/8470001/diff/4001/base/debug/trace_event.cc File base/debug/trace_event.cc (right): http://codereview.chromium.org/8470001/diff/4001/base/debug/trace_event.cc#newcode519 base/debug/trace_event.cc:519: if (cur_name ...
9 years, 1 month ago (2011-11-09 13:17:57 UTC) #6
jbates
lgtm
9 years, 1 month ago (2011-11-09 17:50:23 UTC) #7
jar (doing other things)
LGTM (tiny nit below) http://codereview.chromium.org/8470001/diff/10001/base/debug/trace_event.cc File base/debug/trace_event.cc (right): http://codereview.chromium.org/8470001/diff/10001/base/debug/trace_event.cc#newcode519 base/debug/trace_event.cc:519: // Check if the thread ...
9 years, 1 month ago (2011-11-10 00:18:35 UTC) #8
joth
Thanks all. Sending to CQ... http://codereview.chromium.org/8470001/diff/10001/base/debug/trace_event.cc File base/debug/trace_event.cc (right): http://codereview.chromium.org/8470001/diff/10001/base/debug/trace_event.cc#newcode519 base/debug/trace_event.cc:519: // Check if the ...
9 years, 1 month ago (2011-11-10 10:15:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/8470001/13001
9 years, 1 month ago (2011-11-10 10:21:02 UTC) #10
commit-bot: I haz the power
Try job failure for 8470001-13001 (retry) on win_rel for step "compile" (clobber build). It's a ...
9 years, 1 month ago (2011-11-10 10:31:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/8470001/20001
9 years, 1 month ago (2011-11-10 11:11:40 UTC) #12
commit-bot: I haz the power
Try job failure for 8470001-20001 (retry) on mac_rel for step "base_unittests". It's a second try, ...
9 years, 1 month ago (2011-11-10 12:39:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/8470001/19003
9 years, 1 month ago (2011-11-10 14:19:04 UTC) #14
commit-bot: I haz the power
9 years, 1 month ago (2011-11-10 16:26:30 UTC) #15
Change committed as 109439

Powered by Google App Engine
This is Rietveld 408576698