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

Side by Side Diff: dm/DM.cpp

Issue 1612483002: Add pre_log option to nanobench; make this option default true in nanobench and dm. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Revert change to enable --pre_log for --verbose. Add auto-edited files. Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « bench/nanobench.cpp ('k') | tools/dm_flags.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "CrashHandler.h" 8 #include "CrashHandler.h"
9 #include "DMJsonWriter.h" 9 #include "DMJsonWriter.h"
10 #include "DMSrcSink.h" 10 #include "DMSrcSink.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 "'--blacklist gpu skp _ _ 8888 gm _ aarects' will also blacklist the aar ects GM on 8888."); 57 "'--blacklist gpu skp _ _ 8888 gm _ aarects' will also blacklist the aar ects GM on 8888.");
58 58
59 DEFINE_string2(readPath, r, "", "If set check for equality with golden results i n this directory."); 59 DEFINE_string2(readPath, r, "", "If set check for equality with golden results i n this directory.");
60 60
61 DEFINE_string(uninterestingHashesFile, "", 61 DEFINE_string(uninterestingHashesFile, "",
62 "File containing a list of uninteresting hashes. If a result hashes to s omething in " 62 "File containing a list of uninteresting hashes. If a result hashes to s omething in "
63 "this list, no image is written for that result."); 63 "this list, no image is written for that result.");
64 64
65 DEFINE_int32(shards, 1, "We're splitting source data into this many shards."); 65 DEFINE_int32(shards, 1, "We're splitting source data into this many shards.");
66 DEFINE_int32(shard, 0, "Which shard do I run?"); 66 DEFINE_int32(shard, 0, "Which shard do I run?");
67 DEFINE_bool2(pre_log, p, false, "Log before running each test. May be incomprehe nsible when threading");
68 67
69 __SK_FORCE_IMAGE_DECODER_LINKING; 68 __SK_FORCE_IMAGE_DECODER_LINKING;
70 using namespace DM; 69 using namespace DM;
71 70
72 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~*/ 71 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~*/
73 72
74 static double now_ms() { return SkTime::GetNSecs() * 1e-6; } 73 static double now_ms() { return SkTime::GetNSecs() * 1e-6; }
75 74
76 SK_DECLARE_STATIC_MUTEX(gFailuresMutex); 75 SK_DECLARE_STATIC_MUTEX(gFailuresMutex);
77 static SkTArray<SkString> gFailures; 76 static SkTArray<SkString> gFailures;
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 Reporter* reporter, 1281 Reporter* reporter,
1283 GrContextFactory* fac tory); 1282 GrContextFactory* fac tory);
1284 } // namespace skiatest 1283 } // namespace skiatest
1285 1284
1286 #if !defined(SK_BUILD_FOR_IOS) 1285 #if !defined(SK_BUILD_FOR_IOS)
1287 int main(int argc, char** argv) { 1286 int main(int argc, char** argv) {
1288 SkCommandLineFlags::Parse(argc, argv); 1287 SkCommandLineFlags::Parse(argc, argv);
1289 return dm_main(); 1288 return dm_main();
1290 } 1289 }
1291 #endif 1290 #endif
OLDNEW
« no previous file with comments | « bench/nanobench.cpp ('k') | tools/dm_flags.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698