changeset 934:98a3cd8c58ef

profilers: -prof gc overestimates the GC time by 100x.
author shade
date Sun, 27 Jul 2014 17:51:14 -0700
parents 4e3345586217
children 6354acecccb7
files jmh-core/src/main/java/org/openjdk/jmh/profile/GCProfiler.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/profile/GCProfiler.java	Thu Jul 24 22:25:54 2014 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/profile/GCProfiler.java	Sun Jul 27 17:51:14 2014 -0700
@@ -79,8 +79,8 @@
         return Arrays.asList(
                 new ProfilerResult("@gc.count.profiled", gcCount - beforeGCCount, "counts", AggregationPolicy.SUM),
                 new ProfilerResult("@gc.count.total", gcCount, "counts", AggregationPolicy.MAX),
-                new ProfilerResult("@gc.time.profiled", 100.0 * (gcTime - beforeGCTime), "ms", AggregationPolicy.SUM),
-                new ProfilerResult("@gc.time.total", 100.0 * gcTime, "ms", AggregationPolicy.MAX)
+                new ProfilerResult("@gc.time.profiled", gcTime - beforeGCTime, "ms", AggregationPolicy.SUM),
+                new ProfilerResult("@gc.time.total", gcTime, "ms", AggregationPolicy.MAX)
         );
     }