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

Issue 272723007: Add timing to dump_record. (Closed)

Created:
6 years, 7 months ago by mtklein_C
Modified:
6 years, 7 months ago
Reviewers:
f(malita), mtklein
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Add timing to dump_record. Prints microsecond timing for each command in the left-hand column: optimized flat/http___mobile_news_sandbox_google_com_news_pt0_scroll_layer_7.skp 4.0 1 Save 2075.0 2 DrawRect 104.0 3 BoundedDrawPosTextH 135.4 4 DrawRect 9.4 5 DrawRect 5.6 6 DrawRect 8.2 7 DrawRect 6.8 8 DrawRect ... (I'm sure Rietveld will just mangle the crap out of that. It's helpfully right-aligned.) To do this, I made Draw from SkRecordDraw Skia-public as SkRecords::Draw, and time it command-by-command. BUG=skia:2378 Committed: http://code.google.com/p/skia/source/detail?r=14672

Patch Set 1 #

Patch Set 2 : timeWithCommand #

Patch Set 3 : don't print noops #

Patch Set 4 : always walk with fDraw #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -71 lines) Patch
M gyp/tools.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M src/record/SkRecordDraw.h View 1 chunk +37 lines, -1 line 0 comments Download
M src/record/SkRecordDraw.cpp View 2 chunks +19 lines, -47 lines 0 comments Download
M tools/dump_record.cpp View 1 2 3 4 chunks +56 lines, -23 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
mtklein
6 years, 7 months ago (2014-05-08 16:51:20 UTC) #1
mtklein
lgtm
6 years, 7 months ago (2014-05-09 14:51:53 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/272723007/60001
6 years, 7 months ago (2014-05-09 14:53:17 UTC) #3
commit-bot: I haz the power
6 years, 7 months ago (2014-05-09 14:59:32 UTC) #4
Message was sent while issue was closed.
Change committed as 14672

Powered by Google App Engine
This is Rietveld 408576698