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

Unified Diff: dm/DMReporter.cpp

Issue 49323007: DM: add --quiet (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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/DMReporter.cpp
diff --git a/dm/DMReporter.cpp b/dm/DMReporter.cpp
index 3d9dae586247c48f49397a8b86fb38183a830d18..0e01d71f20c779397427671e5d6a5d83a36a5c9d 100644
--- a/dm/DMReporter.cpp
+++ b/dm/DMReporter.cpp
@@ -1,8 +1,16 @@
#include "DMReporter.h"
+#include "SkCommandLineFlags.h"
+
+DEFINE_bool(quiet, false, "If true, don't print status updates.");
+
namespace DM {
void Reporter::updateStatusLine() const {
+ if (FLAGS_quiet) {
+ return;
+ }
+
SkString status;
status.printf("\r\033[K%d / %d", this->finished(), this->started());
const int failed = this->failed();
« 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