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

Issue 6691013: Introduce gpu_trace_event for gpu performance analysis. (Closed)

Created:
9 years, 9 months ago by nduca
Modified:
9 years, 4 months ago
CC:
chromium-reviews, arv (Not doing code reviews), apatrick_chromium, jbates, scheib
Visibility:
Public.

Description

Introduce gpu_trace_event for gpu performance analysis. This changelist is a lightweight version of issue 6551019, but with the code change confined to the gpu subsystem. The intent of this change is to enable forward progress on gpu tracing. Work on the aformentioned issue, i.e. fusing gpu_trace_event and trace_event, will continue. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78300

Patch Set 1 #

Total comments: 10

Patch Set 2 : Feedback updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+711 lines, -36 lines) Patch
M chrome/browser/gpu_process_host_ui_shim.cc View 1 3 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/resources/gpu_internals.html View 4 chunks +9 lines, -2 lines 0 comments Download
A chrome/browser/resources/gpu_internals/raw_events_view.css View 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/browser/resources/gpu_internals/raw_events_view.html View 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/browser/resources/gpu_internals/raw_events_view.js View 1 chunk +76 lines, -0 lines 0 comments Download
M chrome/browser/resources/gpu_internals/tracing_controller.css View 1 chunk +3 lines, -4 lines 0 comments Download
D chrome/browser/resources/gpu_internals/tracing_controller.html View 1 chunk +0 lines, -14 lines 0 comments Download
M chrome/browser/resources/gpu_internals/tracing_controller.js View 1 2 chunks +23 lines, -13 lines 0 comments Download
M chrome/browser/ui/webui/gpu_internals_ui.cc View 1 9 chunks +53 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
A gpu/common/gpu_trace_event.h View 1 1 chunk +291 lines, -0 lines 0 comments Download
A gpu/common/gpu_trace_event.cc View 1 1 chunk +216 lines, -0 lines 0 comments Download
M gpu/gpu.gyp View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
nduca
OK folks, same as before, but in gpu/common/. Key notes: - jbates has a followon ...
9 years, 9 months ago (2011-03-14 20:51:34 UTC) #1
Ken Russell (switch to Gerrit)
LGTM. A few tiny nits not necessary to fix. http://codereview.chromium.org/6691013/diff/1/chrome/browser/ui/webui/gpu_internals_ui.cc File chrome/browser/ui/webui/gpu_internals_ui.cc (right): http://codereview.chromium.org/6691013/diff/1/chrome/browser/ui/webui/gpu_internals_ui.cc#newcode80 chrome/browser/ui/webui/gpu_internals_ui.cc:80: ...
9 years, 9 months ago (2011-03-14 23:57:35 UTC) #2
greggman
only a few style issues otherwise LGTM http://codereview.chromium.org/6691013/diff/1/chrome/browser/ui/webui/gpu_internals_ui.cc File chrome/browser/ui/webui/gpu_internals_ui.cc (right): http://codereview.chromium.org/6691013/diff/1/chrome/browser/ui/webui/gpu_internals_ui.cc#newcode107 chrome/browser/ui/webui/gpu_internals_ui.cc:107: bool traceEnabled_; ...
9 years, 9 months ago (2011-03-15 00:19:50 UTC) #3
nduca
9 years, 9 months ago (2011-03-15 01:21:40 UTC) #4
Thanks folks.

http://codereview.chromium.org/6691013/diff/1/chrome/browser/ui/webui/gpu_int...
File chrome/browser/ui/webui/gpu_internals_ui.cc (right):

http://codereview.chromium.org/6691013/diff/1/chrome/browser/ui/webui/gpu_int...
chrome/browser/ui/webui/gpu_internals_ui.cc:80: void OnBeginToEndTracing(const
ListValue* list);
On 2011/03/14 23:57:35, kbr wrote:
> The name "OnBeginToEndTracing" is a little hard to parse. Perhaps
> "OnEndingTracing"?

Done.

http://codereview.chromium.org/6691013/diff/1/gpu/common/gpu_trace_event.cc
File gpu/common/gpu_trace_event.cc (right):

http://codereview.chromium.org/6691013/diff/1/gpu/common/gpu_trace_event.cc#n...
gpu/common/gpu_trace_event.cc:124: // TODO(nduca) replace with a hash_map
On 2011/03/14 23:57:35, kbr wrote:
> Colon after TODO (e.g., TODO(nduca): )

Done.

http://codereview.chromium.org/6691013/diff/1/gpu/common/gpu_trace_event.cc#n...
gpu/common/gpu_trace_event.cc:139: /* enable all categories */
On 2011/03/14 23:57:35, kbr wrote:
> Use C++ style comments instead?

Done.

http://codereview.chromium.org/6691013/diff/1/gpu/common/gpu_trace_event.h
File gpu/common/gpu_trace_event.h (right):

http://codereview.chromium.org/6691013/diff/1/gpu/common/gpu_trace_event.h#ne...
gpu/common/gpu_trace_event.h:247: // TODO(nduca): switch to per-thread tace
buffers to reduce thread
On 2011/03/15 00:19:50, greggman wrote:
> tace -> trace

Done.

Powered by Google App Engine
This is Rietveld 408576698