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

Issue 22294006: Improve usages of trace_event locks (Closed)

Created:
7 years, 4 months ago by Xianzhu
Modified:
7 years, 4 months ago
Reviewers:
dsinclair, nduca
CC:
chromium-reviews, dsinclair+watch_chromium.org, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Improve usages of trace_event locks 1. Move category_group_enabled checking out of lock. 2. Move thread_name checking out of lock. Lock on thread_name changes to check and update thread_names_ map. 3. Check if thread_id is the id of the current thread before checking thread name change. 4. Move TraceEvent construction out of lock. 5. Put code ECHO_TO_CONSOLE code together and under lock. 6. Add a missing lock in TraceLog::RemoveProcessLabel(). This is the first step for bug 264667. Next step is thread-local event buffer. BUG=264667 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216791

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -22 lines) Patch
M base/debug/trace_event_impl.cc View 7 chunks +29 lines, -22 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Xianzhu
7 years, 4 months ago (2013-08-09 18:25:47 UTC) #1
dsinclair
+nduca
7 years, 4 months ago (2013-08-09 18:29:23 UTC) #2
dsinclair
This lgtm, but would like to get nduca to take a look at it first.
7 years, 4 months ago (2013-08-09 18:35:58 UTC) #3
nduca
lgtm though i didn't give it a careful check. lets learn by trying :)
7 years, 4 months ago (2013-08-09 19:17:57 UTC) #4
Xianzhu
There seems some problem of Patch Set 2, which will return early when the buffer ...
7 years, 4 months ago (2013-08-09 19:34:28 UTC) #5
dsinclair
On 2013/08/09 19:34:28, Xianzhu wrote: > There seems some problem of Patch Set 2, which ...
7 years, 4 months ago (2013-08-09 19:51:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/22294006/1
7 years, 4 months ago (2013-08-09 20:26:16 UTC) #7
commit-bot: I haz the power
7 years, 4 months ago (2013-08-10 00:48:10 UTC) #8
Message was sent while issue was closed.
Change committed as 216791

Powered by Google App Engine
This is Rietveld 408576698