Chromium Code Reviews| 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; |
| } |