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

Unified Diff: dm/DM.cpp

Issue 1139413003: implement --quiet for DM (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 139e9eb82396d35e09c69bfa979a321093b694fd..fcedc8cb77dfa091fd251ba1dcd29aff8553825f 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -89,14 +89,16 @@ static void done(double ms,
log.prepend("\n");
}
auto pending = sk_atomic_dec(&gPending)-1;
- SkDebugf("%s(%4d/%-4dMB %5d) %s\t%s%s%s", FLAGS_verbose ? "\n" : kSkOverwriteLine
- , sk_tools::getCurrResidentSetSizeMB()
- , sk_tools::getMaxResidentSetSizeMB()
- , pending
- , HumanizeMs(ms).c_str()
- , id.c_str()
- , note.c_str()
- , log.c_str());
+ if (!FLAGS_quiet) {
+ SkDebugf("%s(%4d/%-4dMB %5d) %s\t%s%s%s", FLAGS_verbose ? "\n" : kSkOverwriteLine
+ , sk_tools::getCurrResidentSetSizeMB()
+ , sk_tools::getMaxResidentSetSizeMB()
+ , pending
+ , HumanizeMs(ms).c_str()
+ , id.c_str()
+ , note.c_str()
+ , log.c_str());
+ }
// We write our dm.json file every once in a while in case we crash.
// Notice this also handles the final dm.json when pending == 0.
if (pending % 500 == 0) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698