From: Mike Klein Date: Thu, 6 Apr 2017 14:17:11 +0000 (-0400) Subject: jumper, only print non-zero counts X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~46^2~121 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de2e3846600e9d335dfefcccf0e4b6ce14a7adbd;p=platform%2Fupstream%2FlibSkiaSharp.git jumper, only print non-zero counts This makes it easier for me to read. Change-Id: I6936c31981a2af6b7d3d7db9e60d36010fefa7ec Reviewed-on: https://skia-review.googlesource.com/11445 Reviewed-by: Mike Klein Commit-Queue: Mike Klein --- diff --git a/src/jumper/SkJumper.cpp b/src/jumper/SkJumper.cpp index b2c1cfc..4ad2afd 100644 --- a/src/jumper/SkJumper.cpp +++ b/src/jumper/SkJumper.cpp @@ -263,7 +263,9 @@ bool SkRasterPipeline::run_with_jumper(size_t x, size_t n) const { once([] { atexit([] { for (int i = 0; i < (int)SK_ARRAY_COUNT(gMissing); i++) { - SkDebugf("%10d %s\n", gMissing[i].load(), gNames[i]); + if (int n = gMissing[i].load()) { + SkDebugf("%10d %s\n", n, gNames[i]); + } } }); });