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

Issue 813573003: Fixed GPU tracing so the categories do not get mixed. (Closed)

Created:
6 years ago by David Yen
Modified:
5 years, 11 months ago
Reviewers:
dsinclair, nduca, vmiura
CC:
chromium-reviews, wfh+watch_chromium.org, dsinclair+watch_chromium.org, erikwright+watch_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed GPU tracing so the categories do not get mixed. Because of how the chromium tracing macros work, it is not possible to use the same line for multiple tracing categories. I have moved the GPU categories to a separate trace arg "gl_categories" instead, and changed the trace categories back to gpu.device and gpu.service. GroupPushMarkerEXT calls can no longer be disabled by their category. We currently use these to trace top level GPU traces which are constructed before the tracing categories are initialized. There were also some other issues related to having multiple channels in the GPU Tracer. Now functions that query the current trace take in a channel argument as well to differentiate the channels. R=vmiura@chromium.org BUG=None TEST=trybots Committed: https://crrev.com/4bb4328938b0bfa4d2fa59403ce3de5639952e16 Cr-Commit-Position: refs/heads/master@{#310426}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed TraceCHROMIUM async traces #

Patch Set 3 : Added GPU Tracer unit tests #

Patch Set 4 : rebase #

Patch Set 5 : Mock GPU Tracer less intrusively #

Patch Set 6 : Also export GPUTracer #

Total comments: 1

Patch Set 7 : Rebased and merged #

Patch Set 8 : Reverted some unnecessary changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -58 lines) Patch
M base/debug/trace_event.h View 2 chunks +10 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 5 chunks +6 lines, -20 lines 0 comments Download
M gpu/command_buffer/service/gpu_tracer.h View 1 2 3 4 5 6 7 3 chunks +2 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/gpu_tracer.cc View 1 2 3 4 5 6 7 6 chunks +39 lines, -29 lines 0 comments Download
M gpu/command_buffer/service/gpu_tracer_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
David Yen
6 years ago (2014-12-16 23:31:10 UTC) #1
vmiura
https://codereview.chromium.org/813573003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/813573003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode11109 gpu/command_buffer/service/gles2_cmd_decoder.cc:11109: TRACE_EVENT_COPY_ASYNC_END0(category.c_str(), name.c_str(), this); This seems like it might have ...
6 years ago (2014-12-16 23:40:11 UTC) #2
vmiura
nduca@chromium.org: Please review changes in base/debug/trace_event.h
6 years ago (2014-12-16 23:41:08 UTC) #4
David Yen
https://codereview.chromium.org/813573003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/813573003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode11109 gpu/command_buffer/service/gles2_cmd_decoder.cc:11109: TRACE_EVENT_COPY_ASYNC_END0(category.c_str(), name.c_str(), this); On 2014/12/16 23:40:11, vmiura wrote: > ...
6 years ago (2014-12-17 18:29:35 UTC) #5
vmiura
Looks good. Could you add some tests for GPUTracer::CurrentCategory/CurrentName? Also we need the integrated browser-test ...
6 years ago (2014-12-18 02:24:15 UTC) #6
David Yen
On 2014/12/18 02:24:15, vmiura wrote: > Looks good. Could you add some tests for > ...
6 years ago (2014-12-18 19:32:22 UTC) #7
vmiura
https://codereview.chromium.org/813573003/diff/100001/gpu/command_buffer/service/gpu_tracer_unittest.cc File gpu/command_buffer/service/gpu_tracer_unittest.cc (right): https://codereview.chromium.org/813573003/diff/100001/gpu/command_buffer/service/gpu_tracer_unittest.cc#newcode224 gpu/command_buffer/service/gpu_tracer_unittest.cc:224: class MockGPUTracer : public GPUTracer { This is not ...
6 years ago (2014-12-19 00:30:15 UTC) #8
David Yen
All unit test revamps has been taken out and landed in a separate CL: https://codereview.chromium.org/794673007/ ...
5 years, 11 months ago (2015-01-07 23:24:28 UTC) #9
vmiura
LGTM for gpu/command_buffer/.
5 years, 11 months ago (2015-01-08 00:24:32 UTC) #10
David Yen
+dsinclair to review trace_event.h
5 years, 11 months ago (2015-01-08 00:40:50 UTC) #12
dsinclair
lgtm
5 years, 11 months ago (2015-01-08 01:03:56 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/813573003/140001
5 years, 11 months ago (2015-01-08 01:04:21 UTC) #15
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 11 months ago (2015-01-08 01:10:28 UTC) #16
commit-bot: I haz the power
5 years, 11 months ago (2015-01-08 01:11:43 UTC) #17
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4bb4328938b0bfa4d2fa59403ce3de5639952e16
Cr-Commit-Position: refs/heads/master@{#310426}

Powered by Google App Engine
This is Rietveld 408576698