Version 2 of the Instance Counting system. This one simplifies the print out of information.

http://codereview.appspot.com/6296069/



git-svn-id: http://skia.googlecode.com/svn/trunk@4255 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index e91ea8f..877d0af 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -1086,9 +1086,9 @@
     delete grFactory;
     SkGraphics::Term();
 
-    PRINT_INST_COUNT(SkRefCnt);
-    PRINT_INST_COUNT(GrResource);
-    PRINT_INST_COUNT(GrAARectRenderer);
+#ifdef SK_DEBUG
+    SkRefCnt::CheckInstanceCount();
+#endif
 
     return (0 == testsFailed) ? 0 : -1;
 }