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

Issue 10868048: Report texture upload time in renderingStats. (Closed)

Created:
8 years, 4 months ago by reveman
Modified:
8 years, 3 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, apatrick_chromium, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, ccameron
Visibility:
Public.

Description

Report texture upload time in renderingStats. BUG=133658 TEST=TEST=Launch Chrome with --enable-gpu-benchmarking, open a tab to a composited page, and type chrome.gpuBenchmarking.renderingStats(). textureUploadCount, and totalTextureUploadTimeInSeconds should be present. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155099

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add surface_id to GpuChannelMsg_CollectRenderingStats and collect both global and surface specific … #

Total comments: 12

Patch Set 3 : Add totalProcessingCommandsTime stat and fix nits #

Total comments: 3

Patch Set 4 : Use route_id instead of surface_id. Get rid of channel check and autolock. Check that GetGpuChannel… #

Total comments: 1

Patch Set 5 : Revert to surface_id instead of route_id. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -5 lines) Patch
M content/common/gpu/client/gpu_channel_host.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_channel.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_channel.cc View 1 2 3 4 2 chunks +32 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 3 chunks +17 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A content/public/common/gpu_rendering_stats.h View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A + content/public/common/gpu_rendering_stats.cc View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.cc View 1 2 3 chunks +23 lines, -0 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 10 chunks +53 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
reveman
Hi, how is something like this for measuring texture upload times and such in the ...
8 years, 4 months ago (2012-08-23 18:15:23 UTC) #1
nduca
Is there a way to make a distinction in this api between surface_ids? E.g. GetRenderingStatsForSurface? ...
8 years, 4 months ago (2012-08-23 18:18:46 UTC) #2
reveman
On 2012/08/23 18:18:46, nduca wrote: > Is there a way to make a distinction in ...
8 years, 4 months ago (2012-08-23 18:32:08 UTC) #3
nduca
Wouldn't it be simpler to just do a single ipc call with all the details ...
8 years, 4 months ago (2012-08-23 18:50:57 UTC) #4
nduca
https://chromiumcodereview.appspot.com/10868048/diff/1/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://chromiumcodereview.appspot.com/10868048/diff/1/content/renderer/render_widget.cc#newcode1830 content/renderer/render_widget.cc:1830: RenderThreadImpl::current()->GetGpuRenderingStats(stats); Any reason to not do RenderThreadIMpl::current()->GetGpuChannel()->GetRenderingStatsForSurface(surface_id())? That'd avoid ...
8 years, 4 months ago (2012-08-23 18:51:27 UTC) #5
ccameron
Some interesting stats to gather (for later) would be - maximum single texture upload time ...
8 years, 4 months ago (2012-08-24 09:16:45 UTC) #6
reveman
yes, driver CPU time spent in TexSubImage2D can be very misleading. i'm hoping that these ...
8 years, 3 months ago (2012-08-27 20:41:10 UTC) #7
nduca
Awesome, LGTM with nits! I'd send this over to OWNERS for them to eviscerate you. ...
8 years, 3 months ago (2012-08-28 19:45:10 UTC) #8
apatrick_chromium
Just nits. https://chromiumcodereview.appspot.com/10868048/diff/6002/content/common/gpu/client/gpu_channel_host.cc File content/common/gpu/client/gpu_channel_host.cc (right): https://chromiumcodereview.appspot.com/10868048/diff/6002/content/common/gpu/client/gpu_channel_host.cc#newcode227 content/common/gpu/client/gpu_channel_host.cc:227: if (!Send(new GpuChannelMsg_CollectRenderingStats(surface_id, &stats))) { No need ...
8 years, 3 months ago (2012-08-28 20:07:06 UTC) #9
apatrick_chromium
lgtm
8 years, 3 months ago (2012-08-30 22:20:57 UTC) #10
nduca
8 years, 3 months ago (2012-08-30 22:24:36 UTC) #11
piman
http://codereview.chromium.org/10868048/diff/15002/content/common/gpu/client/gpu_channel_host.cc File content/common/gpu/client/gpu_channel_host.cc (right): http://codereview.chromium.org/10868048/diff/15002/content/common/gpu/client/gpu_channel_host.cc#newcode218 content/common/gpu/client/gpu_channel_host.cc:218: int surface_id, content::GpuRenderingStats* stats) { At a high level, ...
8 years, 3 months ago (2012-08-30 22:44:11 UTC) #12
reveman
On 2012/08/30 22:44:11, piman wrote: > http://codereview.chromium.org/10868048/diff/15002/content/common/gpu/client/gpu_channel_host.cc > File content/common/gpu/client/gpu_channel_host.cc (right): > > http://codereview.chromium.org/10868048/diff/15002/content/common/gpu/client/gpu_channel_host.cc#newcode218 > ...
8 years, 3 months ago (2012-09-04 21:53:12 UTC) #13
piman
http://codereview.chromium.org/10868048/diff/21002/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): http://codereview.chromium.org/10868048/diff/21002/content/renderer/render_widget.cc#newcode1839 content/renderer/render_widget.cc:1839: return gpu_channel->CollectRenderingStats(routing_id(), stats); oh, mmh, this routing_id() is the ...
8 years, 3 months ago (2012-09-04 22:05:24 UTC) #14
reveman
On 2012/09/04 22:05:24, piman wrote: > http://codereview.chromium.org/10868048/diff/21002/content/renderer/render_widget.cc > File content/renderer/render_widget.cc (right): > > http://codereview.chromium.org/10868048/diff/21002/content/renderer/render_widget.cc#newcode1839 > ...
8 years, 3 months ago (2012-09-04 23:04:01 UTC) #15
nduca
One way to do this would be for RenderView::createOutputSurface, which creates the context on the ...
8 years, 3 months ago (2012-09-04 23:25:37 UTC) #16
piman
On 2012/09/04 23:25:37, nduca wrote: > One way to do this would be for RenderView::createOutputSurface, ...
8 years, 3 months ago (2012-09-05 00:43:00 UTC) #17
nduca
@piman, would you be cool with a [properly-named] surface-specific api to sidestep this and get ...
8 years, 3 months ago (2012-09-05 01:00:46 UTC) #18
piman
On Tue, Sep 4, 2012 at 6:00 PM, <nduca@chromium.org> wrote: > @piman, would you be ...
8 years, 3 months ago (2012-09-05 01:06:08 UTC) #19
nduca
Agreed that we should make it cleaner. @reveman, would you mind filing a cleanup bug ...
8 years, 3 months ago (2012-09-05 01:37:28 UTC) #20
nduca
piman, look good?
8 years, 3 months ago (2012-09-05 23:03:11 UTC) #21
piman
lgtm
8 years, 3 months ago (2012-09-05 23:05:47 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/10868048/24019
8 years, 3 months ago (2012-09-05 23:48:54 UTC) #23
commit-bot: I haz the power
Change committed as 155099
8 years, 3 months ago (2012-09-06 02:04:54 UTC) #24
jam
this change wasn't properly reviewed (see content/public/OWNERS) this structure doesn't belong in content/public/common. it should ...
8 years, 3 months ago (2012-09-07 17:14:23 UTC) #25
nduca
How'd the commit bot let this through? Is the OWNERS file new?
8 years, 3 months ago (2012-09-07 17:20:50 UTC) #26
nduca
Oh, there's not a set noparent on that directory. So any content/OWNER can lgtm, from ...
8 years, 3 months ago (2012-09-07 17:21:43 UTC) #27
jam
On Fri, Sep 7, 2012 at 10:21 AM, <nduca@chromium.org> wrote: > Oh, there's not a ...
8 years, 3 months ago (2012-09-07 17:27:42 UTC) #28
nduca
8 years, 3 months ago (2012-09-07 17:28:51 UTC) #29
Got it! Sorry about that. I'll throw a fix up now.

Powered by Google App Engine
This is Rietveld 408576698