Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(319)

Issue 7101060: Change the method for timing individual tiles in bench_pictures. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by Leon
Modified:
11 years, 10 months ago
Reviewers:
epoger, EricB, DerekS, benchen
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Change the method for timing individual tiles in bench_pictures. When timing individual tiles in bench_pictures, keep a timer running across all repeats, and then take the average. The former method of timing each iteration separately runs into precision errors on some platforms. Running on my Mac Pro with OSX 10.8, the cmsecs for the new method and the old method are roughly the same when checking the CPU time. When checking the wall time, the old method often gives me 0ms, while the new method gives me a larger value. I don't think this can be entirely attributed to rounding though, since on occasion I see the old method showing a short time period (.05 - .15ms) while the new method shows .15ms higher (which is in range for the difference I'm seeing for other tiles where the old method reports 0ms). Some other changes: PictureRenderer::resetState now takes a boolean parameter. If called with false, it will only do a flush, while if called with true, it will also call finish. resetState is now called with true everywhere except in between iterations of drawing the same tile (when timing individual tiles). render_pictures_main no longer calls resetState directly, since it already calls end, which calls resetState. BUG=http://code.google.com/p/skia/issues/detail?id=1066 Committed: https://code.google.com/p/skia/source/detail?r=7424

Patch Set 1 #

Total comments: 8

Patch Set 2 : Name change for clarity #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -22 lines) Patch
M tools/PictureBenchmark.cpp View 1 4 chunks +43 lines, -16 lines 0 comments Download
M tools/PictureRenderer.h View 1 chunk +6 lines, -1 line 0 comments Download
M tools/PictureRenderer.cpp View 3 chunks +5 lines, -3 lines 0 comments Download
M tools/render_pictures_main.cpp View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 9
Leon
https://codereview.appspot.com/7101060/diff/1/tools/PictureBenchmark.cpp File tools/PictureBenchmark.cpp (right): https://codereview.appspot.com/7101060/diff/1/tools/PictureBenchmark.cpp#newcode108 tools/PictureBenchmark.cpp:108: SkAutoTDelete<BenchTimer> longRunningTimer(this->setupTimer()); I've included both of these timers since ...
11 years, 10 months ago (2013-01-15 20:38:32 UTC) #1
bsalomon
The glFinish aspect of the change LGTM. https://codereview.appspot.com/7101060/diff/1/tools/PictureBenchmark.cpp File tools/PictureBenchmark.cpp (right): https://codereview.appspot.com/7101060/diff/1/tools/PictureBenchmark.cpp#newcode118 tools/PictureBenchmark.cpp:118: tiledRenderer->resetState(false); On ...
11 years, 10 months ago (2013-01-15 20:42:50 UTC) #2
EricB
LGTM for the most part, but I think we need to really nail down how ...
11 years, 10 months ago (2013-01-15 21:34:44 UTC) #3
Leon
I also hacked in some code to compare the total time for drawing each tile ...
11 years, 10 months ago (2013-01-15 21:56:01 UTC) #4
Leon
On 2013/01/15 21:56:01, scroggo-work wrote: > I also hacked in some code to compare the ...
11 years, 10 months ago (2013-01-15 22:00:11 UTC) #5
benchen
LGTM. On the parsing side, if the non-per-tile and the per-tile ones keep the previous ...
11 years, 10 months ago (2013-01-15 22:08:26 UTC) #6
EricB
LGTM as well.
11 years, 10 months ago (2013-01-15 22:09:17 UTC) #7
Leon
On 2013/01/15 22:09:17, EricB wrote: > LGTM as well. I'm afraid to check in while ...
11 years, 10 months ago (2013-01-15 23:00:45 UTC) #8
Leon
11 years, 10 months ago (2013-01-28 20:41:13 UTC) #9
Message was sent while issue was closed.
On 2013/01/15 23:00:45, scroggo-work wrote:
> On 2013/01/15 22:09:17, EricB wrote:
> > LGTM as well.
> 
> I'm afraid to check in while the build is broken and I'm leaving tomorrow for
a
> week and a half. Someone please check this in for me.

Now that I'm back, I have checked it in.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b