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

Side by Side Diff: dm/DM.cpp

Issue 893043002: DM: wire up --leaks / -l again (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 | include/core/SkInstCnt.h » ('j') | 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"
11 #include "SkInstCnt.h"
11 #include "SkMD5.h" 12 #include "SkMD5.h"
12 #include "SkOSFile.h" 13 #include "SkOSFile.h"
13 #include "SkTDynamicHash.h" 14 #include "SkTDynamicHash.h"
14 #include "SkTaskGroup.h" 15 #include "SkTaskGroup.h"
15 #include "Test.h" 16 #include "Test.h"
16 #include "Timer.h" 17 #include "Timer.h"
17 18
18 DEFINE_string(images, "resources", "Images to decode."); 19 DEFINE_string(images, "resources", "Images to decode.");
19 DEFINE_string(src, "tests gm skp image subset", "Source types to test."); 20 DEFINE_string(src, "tests gm skp image subset", "Source types to test.");
20 DEFINE_bool(nameByHash, false, 21 DEFINE_bool(nameByHash, false,
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 for (int i = 0; i < gGPUTests.count(); i++) { 484 for (int i = 0; i < gGPUTests.count(); i++) {
484 run_test(&gGPUTests[i]); 485 run_test(&gGPUTests[i]);
485 } 486 }
486 } 487 }
487 488
488 int dm_main(); 489 int dm_main();
489 int dm_main() { 490 int dm_main() {
490 SetupCrashHandler(); 491 SetupCrashHandler();
491 SkAutoGraphics ag; 492 SkAutoGraphics ag;
492 SkTaskGroup::Enabler enabled(FLAGS_threads); 493 SkTaskGroup::Enabler enabled(FLAGS_threads);
494 if (FLAGS_leaks) {
495 SkInstCountPrintLeaksOnExit();
496 }
493 497
494 gather_gold(); 498 gather_gold();
495 499
496 gather_srcs(); 500 gather_srcs();
497 gather_sinks(); 501 gather_sinks();
498 gather_tests(); 502 gather_tests();
499 503
500 gPending = gSrcs.count() * gSinks.count() + gThreadedTests.count() + gGPUTes ts.count(); 504 gPending = gSrcs.count() * gSinks.count() + gThreadedTests.count() + gGPUTes ts.count();
501 SkDebugf("%d srcs * %d sinks + %d tests == %d tasks\n", 505 SkDebugf("%d srcs * %d sinks + %d tests == %d tasks\n",
502 gSrcs.count(), gSinks.count(), gThreadedTests.count() + gGPUTests.c ount(), gPending); 506 gSrcs.count(), gSinks.count(), gThreadedTests.count() + gGPUTests.c ount(), gPending);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 } 549 }
546 return 0; 550 return 0;
547 } 551 }
548 552
549 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 553 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
550 int main(int argc, char** argv) { 554 int main(int argc, char** argv) {
551 SkCommandLineFlags::Parse(argc, argv); 555 SkCommandLineFlags::Parse(argc, argv);
552 return dm_main(); 556 return dm_main();
553 } 557 }
554 #endif 558 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkInstCnt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698