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

Issue 776603003: Changed the GPU Tracer so the category names can be customized. (Closed)

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

Description

Changed the GPU Tracer so the category names can be customized. R=vmiura@chromium.org BUG=None TEST=trybots Committed: https://crrev.com/cb86f2f7e59d00997f8e38fbbb5c8e11c06fc01e Cr-Commit-Position: refs/heads/master@{#307505}

Patch Set 1 #

Patch Set 2 : Fixed typo #

Patch Set 3 : Added a category field for each trace #

Patch Set 4 : Fixed unit tests #

Patch Set 5 : Fixed gpu_group_marker name #

Patch Set 6 : Disable gpu_decoder and gpu_group_marker by default #

Total comments: 11

Patch Set 7 : Applied suggestions #

Patch Set 8 : Service side GPU trace not turned on when device is turned on #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -137 lines) Patch
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_c_lib_autogen.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_cmd_helper_autogen.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 2 3 4 5 6 1 chunk +15 lines, -9 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_autogen.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_interface_autogen.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_autogen.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_autogen.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/cmd_buffer_functions.txt View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_autogen.h View 1 2 3 4 5 6 1 chunk +13 lines, -9 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_test_autogen.h View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 chunks +34 lines, -12 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_3.cc View 1 2 3 2 chunks +14 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/gpu_tracer.h View 1 2 3 4 5 6 7 7 chunks +17 lines, -7 lines 0 comments Download
M gpu/command_buffer/service/gpu_tracer.cc View 1 2 3 4 5 6 7 13 chunks +50 lines, -33 lines 0 comments Download
M gpu/command_buffer/service/gpu_tracer_unittest.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -7 lines 0 comments Download
M mojo/public/c/gles2/gles2_call_visitor_autogen.h View 1 2 4 chunks +32 lines, -39 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
David Yen
6 years ago (2014-12-02 18:43:43 UTC) #1
vmiura
This looks fine. How are you planning on customizing individual event categories? Could we make ...
6 years ago (2014-12-02 19:24:42 UTC) #2
David Yen
I've added a category field to the trace calls as well as TraceBeginCHROMIUM(). One thing ...
6 years ago (2014-12-04 21:53:47 UTC) #3
David Yen
On 2014/12/04 21:53:47, David Yen wrote: > I've added a category field to the trace ...
6 years ago (2014-12-08 17:18:54 UTC) #4
vmiura
Looks good. A few comments. https://codereview.chromium.org/776603003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/776603003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode3964 gpu/command_buffer/service/gles2_cmd_decoder.cc:3964: if (DebugImpl && gpu_trace_commands_ ...
6 years ago (2014-12-08 23:23:06 UTC) #5
David Yen
https://codereview.chromium.org/776603003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/776603003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode3964 gpu/command_buffer/service/gles2_cmd_decoder.cc:3964: if (DebugImpl && gpu_trace_commands_ && *gpu_decoder_category_) { On 2014/12/08 ...
6 years ago (2014-12-08 23:45:38 UTC) #6
vmiura
https://codereview.chromium.org/776603003/diff/100001/gpu/command_buffer/service/gpu_tracer.cc File gpu/command_buffer/service/gpu_tracer.cc (right): https://codereview.chromium.org/776603003/diff/100001/gpu/command_buffer/service/gpu_tracer.cc#newcode100 gpu/command_buffer/service/gpu_tracer.cc:100: TRACE_EVENT_COPY_ASYNC_BEGIN0(category().c_str(), name().c_str(), this); On 2014/12/08 23:45:38, David Yen wrote: ...
6 years ago (2014-12-08 23:53:00 UTC) #7
David Yen
https://codereview.chromium.org/776603003/diff/100001/gpu/command_buffer/service/gpu_tracer.cc File gpu/command_buffer/service/gpu_tracer.cc (right): https://codereview.chromium.org/776603003/diff/100001/gpu/command_buffer/service/gpu_tracer.cc#newcode100 gpu/command_buffer/service/gpu_tracer.cc:100: TRACE_EVENT_COPY_ASYNC_BEGIN0(category().c_str(), name().c_str(), this); On 2014/12/08 23:53:00, vmiura wrote: > ...
6 years ago (2014-12-09 00:10:41 UTC) #8
vmiura
jamesr@chromium.org: Please review changes in mojo/public/c/gles2/gles2_call_visitor_autogen.h
6 years ago (2014-12-09 00:20:18 UTC) #10
vmiura
LGTM for command_buffer changes.
6 years ago (2014-12-09 00:21:03 UTC) #11
jamesr
lgtm
6 years ago (2014-12-09 00:52:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/776603003/140001
6 years ago (2014-12-09 17:33:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/776603003/140001
6 years ago (2014-12-09 18:34:19 UTC) #17
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years ago (2014-12-09 18:35:49 UTC) #18
commit-bot: I haz the power
6 years ago (2014-12-09 18:36:35 UTC) #19
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/cb86f2f7e59d00997f8e38fbbb5c8e11c06fc01e
Cr-Commit-Position: refs/heads/master@{#307505}

Powered by Google App Engine
This is Rietveld 408576698