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

Side by Side Diff: dm/DM.cpp

Issue 898863003: Try again to use a C++11 feature in DM as a canary. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "CrashHandler.h" 1 #include "CrashHandler.h"
2 #include "DMJsonWriter.h" 2 #include "DMJsonWriter.h"
3 #include "DMSrcSink.h" 3 #include "DMSrcSink.h"
4 #include "OverwriteLine.h" 4 #include "OverwriteLine.h"
5 #include "ProcStats.h" 5 #include "ProcStats.h"
6 #include "SkBBHFactory.h" 6 #include "SkBBHFactory.h"
7 #include "SkChecksum.h" 7 #include "SkChecksum.h"
8 #include "SkCommonFlags.h" 8 #include "SkCommonFlags.h"
9 #include "SkForceLinking.h" 9 #include "SkForceLinking.h"
10 #include "SkGraphics.h" 10 #include "SkGraphics.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 49
50 static int32_t gPending = 0; // Atomic. 50 static int32_t gPending = 0; // Atomic.
51 51
52 static void done(double ms, 52 static void done(double ms,
53 ImplicitString config, ImplicitString src, ImplicitString name, 53 ImplicitString config, ImplicitString src, ImplicitString name,
54 ImplicitString log) { 54 ImplicitString log) {
55 if (!log.isEmpty()) { 55 if (!log.isEmpty()) {
56 log.prepend("\n"); 56 log.prepend("\n");
57 } 57 }
58 int32_t pending = sk_atomic_dec(&gPending)-1; 58 auto pending = sk_atomic_dec(&gPending)-1;
59 SkDebugf("%s(%4dMB %5d) %s\t%s %s %s%s", FLAGS_verbose ? "\n" : kSkOverwrite Line 59 SkDebugf("%s(%4dMB %5d) %s\t%s %s %s%s", FLAGS_verbose ? "\n" : kSkOverwrite Line
60 , sk_tools::getMaxResidentSetSizeMB() 60 , sk_tools::getMaxResidentSetSizeMB()
61 , pending 61 , pending
62 , HumanizeMs(ms).c_str() 62 , HumanizeMs(ms).c_str()
63 , config.c_str() 63 , config.c_str()
64 , src.c_str() 64 , src.c_str()
65 , name.c_str() 65 , name.c_str()
66 , log.c_str()); 66 , log.c_str());
67 // We write our dm.json file every once in a while in case we crash. 67 // We write our dm.json file every once in a while in case we crash.
68 // Notice this also handles the final dm.json when pending == 0. 68 // Notice this also handles the final dm.json when pending == 0.
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 } 557 }
558 return 0; 558 return 0;
559 } 559 }
560 560
561 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 561 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
562 int main(int argc, char** argv) { 562 int main(int argc, char** argv) {
563 SkCommandLineFlags::Parse(argc, argv); 563 SkCommandLineFlags::Parse(argc, argv);
564 return dm_main(); 564 return dm_main();
565 } 565 }
566 #endif 566 #endif
OLDNEW
« 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