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

Issue 122723002: Fixed not-unique event 'id' in TRACE_EVENT from GLARBTimerTrace (Closed)

Created:
6 years, 11 months ago by vmiura
Modified:
6 years, 11 months ago
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

The GLARBTimerTrace implementation previously used the 'this' pointer for it's event 'id'. The 'this' pointers are not unique since memory is recycled with repeated alloc & free. Trace output could appear jumbled in chrome://tracing as in BUG=331161 . Moved the event 'id' assignment into a TraceOutputter which manages output to TRACE_EVENT and maintains an incrementing event 'id'. Added a unit test for the GLARBTimerTrace. BUG=331161 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243657

Patch Set 1 #

Patch Set 2 : Fixed lint errors. #

Total comments: 3

Patch Set 3 : Fix previous comments. #

Patch Set 4 : Fix new line at eof. #

Total comments: 10

Patch Set 5 : Fix nits. Use thread as member vs inheritance. #

Patch Set 6 : Fixed GPU_EXPORT issue. #

Patch Set 7 : Fixed another GPU_EXPORT issue. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -99 lines) Patch
M gpu/command_buffer/service/gpu_tracer.h View 1 2 3 4 5 6 2 chunks +88 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gpu_tracer.cc View 1 2 3 4 5 chunks +41 lines, -99 lines 0 comments Download
A gpu/command_buffer/service/gpu_tracer_unittest.cc View 1 2 3 4 1 chunk +211 lines, -0 lines 0 comments Download
M gpu/gpu.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
vmiura
Please take a look.
6 years, 11 months ago (2014-01-03 23:59:32 UTC) #1
jbauman
lgtm https://codereview.chromium.org/122723002/diff/130001/gpu/command_buffer/service/gpu_tracer.cc File gpu/command_buffer/service/gpu_tracer.cc (right): https://codereview.chromium.org/122723002/diff/130001/gpu/command_buffer/service/gpu_tracer.cc#newcode22 gpu/command_buffer/service/gpu_tracer.cc:22: g_outputter_thread = new TraceOutputter(name); I'm not sure if ...
6 years, 11 months ago (2014-01-04 00:24:11 UTC) #2
vmiura
https://codereview.chromium.org/122723002/diff/130001/gpu/command_buffer/service/gpu_tracer_unittest.cc File gpu/command_buffer/service/gpu_tracer_unittest.cc (right): https://codereview.chromium.org/122723002/diff/130001/gpu/command_buffer/service/gpu_tracer_unittest.cc#newcode136 gpu/command_buffer/service/gpu_tracer_unittest.cc:136: // Delegate queri APIs used by GLARBTimerTrace to a ...
6 years, 11 months ago (2014-01-07 21:57:20 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmiura@chromium.org/122723002/290001
6 years, 11 months ago (2014-01-07 22:01:50 UTC) #4
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=43616
6 years, 11 months ago (2014-01-07 22:22:57 UTC) #5
Ken Russell (switch to Gerrit)
piman: OWNERS review please.
6 years, 11 months ago (2014-01-07 22:24:25 UTC) #6
piman
https://codereview.chromium.org/122723002/diff/290001/gpu/command_buffer/service/gpu_tracer.cc File gpu/command_buffer/service/gpu_tracer.cc (right): https://codereview.chromium.org/122723002/diff/290001/gpu/command_buffer/service/gpu_tracer.cc#newcode24 gpu/command_buffer/service/gpu_tracer.cc:24: g_outputter_thread->Stop(); Are we really creating a thread just to ...
6 years, 11 months ago (2014-01-07 22:47:48 UTC) #7
vmiura
https://codereview.chromium.org/122723002/diff/290001/gpu/command_buffer/service/gpu_tracer.cc File gpu/command_buffer/service/gpu_tracer.cc (right): https://codereview.chromium.org/122723002/diff/290001/gpu/command_buffer/service/gpu_tracer.cc#newcode24 gpu/command_buffer/service/gpu_tracer.cc:24: g_outputter_thread->Stop(); On 2014/01/07 22:47:49, piman (OOO back 2014-1-7) wrote: ...
6 years, 11 months ago (2014-01-07 23:26:46 UTC) #8
piman
lgtm
6 years, 11 months ago (2014-01-08 01:15:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmiura@chromium.org/122723002/670001
6 years, 11 months ago (2014-01-08 19:03:20 UTC) #10
commit-bot: I haz the power
6 years, 11 months ago (2014-01-08 21:50:51 UTC) #11
Message was sent while issue was closed.
Change committed as 243657

Powered by Google App Engine
This is Rietveld 408576698