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

Unified Diff: gm/gmmain.cpp

Issue 14267031: ARGB image encoder for checksums. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Address comments, add some timing bits. Created 7 years, 8 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 | gyp/images.gyp » ('j') | src/utils/SkBitmapHasher.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gmmain.cpp
===================================================================
--- gm/gmmain.cpp (revision 8777)
+++ gm/gmmain.cpp (working copy)
@@ -1591,6 +1591,8 @@
return total;
}
+#include "SkTime.h"
epoger 2013/04/22 19:53:28 You're gonna want to revert all changes to this fi
bungeman-skia 2013/04/22 20:08:00 Yes, I just wanted to have this here so it cold be
+
int tool_main(int argc, char** argv);
int tool_main(int argc, char** argv) {
@@ -1598,6 +1600,8 @@
gPrintInstCount = true;
#endif
+ SkMSec startTime = SkTime::GetMSecs();
+
SkGraphics::Init();
// we don't need to see this during a run
gSkSuppressFontCachePurgeSpew = true;
@@ -1846,6 +1850,8 @@
}
int expectedNumberOfTests = gmsRun * (configs.count() + modes.count());
+ SkMSec middleTime = SkTime::GetMSecs();
+
// Output summary to stdout.
if (FLAGS_verbose) {
gm_fprintf(stdout, "Ran %d GMs\n", gmsRun);
@@ -1904,6 +1910,10 @@
#endif
SkGraphics::Term();
+ SkMSec endTime = SkTime::GetMSecs();
+ printf("EPOGER timings: start-middle=%d msecs, start-end=%d msecs\n",
+ (middleTime - startTime), (endTime - startTime));
+
return (reportError) ? -1 : 0;
}
« no previous file with comments | « no previous file | gyp/images.gyp » ('j') | src/utils/SkBitmapHasher.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698