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

Side by Side Diff: gm/gmmain.cpp

Issue 483323002: Print max RSS in GM and nanobench too. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 /* 8 /*
9 * Code for the "gm" (Golden Master) rendering comparison tool. 9 * Code for the "gm" (Golden Master) rendering comparison tool.
10 * 10 *
11 * If you make changes to this, re-run the self-tests at gm/tests/run.sh 11 * If you make changes to this, re-run the self-tests at gm/tests/run.sh
12 * to make sure they still pass... you may need to change the expected 12 * to make sure they still pass... you may need to change the expected
13 * results of the self-test. 13 * results of the self-test.
14 */ 14 */
15 15
16 #include "gm.h" 16 #include "gm.h"
17 #include "gm_error.h" 17 #include "gm_error.h"
18 #include "gm_expectations.h" 18 #include "gm_expectations.h"
19 #include "system_preferences.h" 19 #include "system_preferences.h"
20 #include "CrashHandler.h" 20 #include "CrashHandler.h"
21 #include "ProcStats.h"
21 #include "Resources.h" 22 #include "Resources.h"
22 #include "SamplePipeControllers.h" 23 #include "SamplePipeControllers.h"
23 #include "SkBitmap.h" 24 #include "SkBitmap.h"
24 #include "SkColorPriv.h" 25 #include "SkColorPriv.h"
25 #include "SkCommandLineFlags.h" 26 #include "SkCommandLineFlags.h"
26 #include "SkData.h" 27 #include "SkData.h"
27 #include "SkDeferredCanvas.h" 28 #include "SkDeferredCanvas.h"
28 #include "SkDevice.h" 29 #include "SkDevice.h"
29 #include "SkDocument.h" 30 #include "SkDocument.h"
30 #include "SkDrawFilter.h" 31 #include "SkDrawFilter.h"
(...skipping 2348 matching lines...) Expand 10 before | Expand all | Expand 10 after
2379 } 2380 }
2380 2381
2381 const char* shortName = gm->getName(); 2382 const char* shortName = gm->getName();
2382 2383
2383 if (SkCommandLineFlags::ShouldSkip(FLAGS_match, shortName)) { 2384 if (SkCommandLineFlags::ShouldSkip(FLAGS_match, shortName)) {
2384 continue; 2385 continue;
2385 } 2386 }
2386 2387
2387 gmsRun++; 2388 gmsRun++;
2388 SkISize size = gm->getISize(); 2389 SkISize size = gm->getISize();
2389 SkDebugf("%sdrawing... %s [%d %d]\n", moduloStr.c_str(), shortName, 2390 SkDebugf("%4dM %sdrawing... %s [%d %d]\n",
2391 sk_tools::getMaxResidentSetSizeMB(), moduloStr.c_str(), shortNa me,
2390 size.width(), size.height()); 2392 size.width(), size.height());
2391 if (!FLAGS_dryRun) 2393 if (!FLAGS_dryRun)
2392 run_multiple_configs(gmmain, gm, configs, pdfRasterizers, tileGridRe playScales, 2394 run_multiple_configs(gmmain, gm, configs, pdfRasterizers, tileGridRe playScales,
2393 grFactory, gpuAPI); 2395 grFactory, gpuAPI);
2394 } 2396 }
2395 2397
2396 if (FLAGS_dryRun) 2398 if (FLAGS_dryRun)
2397 return 0; 2399 return 0;
2398 2400
2399 SkTArray<SkString> modes; 2401 SkTArray<SkString> modes;
2400 gmmain.GetRenderModesEncountered(modes); 2402 gmmain.GetRenderModesEncountered(modes);
2401 int modeCount = modes.count(); 2403 int modeCount = modes.count();
2402 2404
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
2498 if (FLAGS_forceBWtext) { 2500 if (FLAGS_forceBWtext) {
2499 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); 2501 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref();
2500 } 2502 }
2501 } 2503 }
2502 2504
2503 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 2505 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
2504 int main(int argc, char * const argv[]) { 2506 int main(int argc, char * const argv[]) {
2505 return tool_main(argc, (char**) argv); 2507 return tool_main(argc, (char**) argv);
2506 } 2508 }
2507 #endif 2509 #endif
OLDNEW
« bench/nanobench.cpp ('K') | « dm/DMReporter.cpp ('k') | gyp/bench.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698