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

Issue 929543002: Fix GPU tracing offset calculation on android. (Closed)

Created:
5 years, 10 months ago by David Yen
Modified:
5 years, 10 months ago
CC:
chromium-reviews, 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

Fix GPU tracing offset calculation on android. The previous fix only made the offset calculation more stable, but it still seems to race with when the device can go idle. I think this is due to the trace command not being flushed. Since beginning a trace is an asynchronous command, it is possible that the GPU can still go idle after the we synchronize the timer because that is a synchronous command. In order to guarantee that we are calculating the offset after the asynchronous command has already begun, I have made it so the offset is calculated before we issue the asynchronous end trace call instead. Technically this is still not completely fool proof because we can have a case where we issue a trace begin and trace end immediately and calculate the offset time before both commands are flushed, but assuming we are actually tracing some GPU command that takes GPU time, this should not happen very often. BUG=None TEST=local, trace a page for a minute. Committed: https://crrev.com/c2bff8d3e630fb137b949a8cec45b79783b5d25e Cr-Commit-Position: refs/heads/master@{#317164}

Patch Set 1 #

Patch Set 2 : Fixed unit tests #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M gpu/command_buffer/service/gpu_timing.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gpu_tracer_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 11 (3 generated)
David Yen
The previous fix did not fix it 100%, I think calculating the offset within the ...
5 years, 10 months ago (2015-02-13 23:30:02 UTC) #2
David Yen
On 2015/02/13 23:30:02, David Yen wrote: > The previous fix did not fix it 100%, ...
5 years, 10 months ago (2015-02-18 00:43:38 UTC) #4
Daniele Castagna
LGTM. There are still a few lines where g_fakeCPUTime is set to expect_start_time that probably ...
5 years, 10 months ago (2015-02-18 01:22:19 UTC) #5
David Yen
On 2015/02/18 01:22:19, dcastagna wrote: > LGTM. > > There are still a few lines ...
5 years, 10 months ago (2015-02-18 17:35:20 UTC) #6
vmiura
LGTM
5 years, 10 months ago (2015-02-19 23:09:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/929543002/40001
5 years, 10 months ago (2015-02-19 23:18:28 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-19 23:22:34 UTC) #10
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 23:23:20 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c2bff8d3e630fb137b949a8cec45b79783b5d25e
Cr-Commit-Position: refs/heads/master@{#317164}

Powered by Google App Engine
This is Rietveld 408576698