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

Issue 1577873002: apply --match to image file names too, like we do for .skps (Closed)

Created:
4 years, 11 months ago by mtklein_C
Modified:
4 years, 10 months ago
Reviewers:
msarett, scroggo, mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

apply --match to image file names too, like we do for .skps This should make skipping an image much cheaper. Before: $ time out/Release/nanobench --images resources/ --match sdkjlfasjlfds 4.65 real 4.41 user 0.19 sys $ time out/Release/nanobench --images resources/ --match sdkjlfasjlfds 0.05 real 0.03 user 0.01 sys The effect should be much more dramatic when there are more images to skip (e.g. on the bots). This cuts about 6 minutes off the Debug CQ trybot. BUG=skia:4768 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1577873002 Committed: https://skia.googlesource.com/skia/+/6f0ff91c6561549a1ea8de3e8896b80a584c45b9

Patch Set 1 #

Patch Set 2 : sp #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -6 lines) Patch
M bench/nanobench.cpp View 1 5 chunks +13 lines, -6 lines 2 comments Download

Messages

Total messages: 22 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577873002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577873002/20001
4 years, 11 months ago (2016-01-11 15:43:47 UTC) #6
mtklein_C
4 years, 11 months ago (2016-01-11 15:43:49 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-11 15:59:00 UTC) #12
msarett
lgtm
4 years, 11 months ago (2016-01-11 16:51:59 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577873002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577873002/20001
4 years, 11 months ago (2016-01-11 17:03:36 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/6f0ff91c6561549a1ea8de3e8896b80a584c45b9
4 years, 11 months ago (2016-01-11 17:04:24 UTC) #19
msarett
https://codereview.chromium.org/1577873002/diff/20001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/1577873002/diff/20001/bench/nanobench.cpp#newcode746 bench/nanobench.cpp:746: if (SkCommandLineFlags::ShouldSkip(FLAGS_match, path.c_str())) { I should have noticed this ...
4 years, 11 months ago (2016-01-11 19:55:49 UTC) #20
scroggo
4 years, 10 months ago (2016-02-03 15:30:01 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/1577873002/diff/20001/bench/nanobench.cpp
File bench/nanobench.cpp (right):

https://codereview.chromium.org/1577873002/diff/20001/bench/nanobench.cpp#new...
bench/nanobench.cpp:746: if (SkCommandLineFlags::ShouldSkip(FLAGS_match,
path.c_str())) {
On 2016/01/11 19:55:49, msarett wrote:
> I should have noticed this on my review, but this actually causes a problem
for
> my most common use case.
> 
> out/Release/nanobench --match Codec --images pngs/
> 
> "Codec" won't match the image name, so all of the tests will be skipped.  On
the
> other hand, if this is how everything else works, I'm still fine with it. 
There
> are tons of workarounds for me.

Proposed fix in crrev.com/1663103002

Powered by Google App Engine
This is Rietveld 408576698