aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-05-19 14:13:31 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-19 14:13:31 -0700
commit50bc0510078b599c25a9bd2d34f1701521a0e142 (patch)
tree23d02eb6ac7816c7b5e8e1a9fef417ee72588365 /dm
parent503bd77b8987ff611f870698fd846d1a24825bea (diff)
implement --quiet for DM
Diffstat (limited to 'dm')
-rw-r--r--dm/DM.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 139e9eb823..fcedc8cb77 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) {