diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-13 14:05:00 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-13 14:05:00 +0000 |
commit | 9d59420851893da677d89de84f8102fa65d6f7dc (patch) | |
tree | 91cb7dc7b63c89d500fdc4d8fdf42f0a496f7c36 | |
parent | 178a267a6cb1405805caf23fe074d68b509f76d3 (diff) |
Added GPU resource cache stats printing to bench & removed some noise from inst counting information
https://codereview.appspot.com/6497125/
git-svn-id: http://skia.googlecode.com/svn/trunk@5519 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | bench/benchmain.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp index 028fa1934d..9edb8cf7e5 100644 --- a/bench/benchmain.cpp +++ b/bench/benchmain.cpp @@ -868,8 +868,18 @@ int main (int argc, char * const argv[]) { logger.logProgress(SkString("\n")); } #if SK_SUPPORT_GPU +#if GR_CACHE_STATS + gRealGLHelper.grContext()->printCacheStats(); +#endif + // need to clean up here rather than post-main to allow leak detection to work + gRealGLHelper.cleanup(); gDebugGLHelper.cleanup(); + gNullGLHelper.cleanup(); +#if SK_ANGLE + gANGLEGLHelper.cleanup(); +#endif // SK_ANGLE #endif + return 0; } |