giraph-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject git commit: updated refs/heads/trunk to a6f2a4f
Date Thu, 22 Jan 2015 18:37:10 GMT
Repository: giraph
Updated Branches:
  refs/heads/trunk 31026d4d2 -> a6f2a4fc9


GIRAPH-985 addition: Making sum counter come first

Test Plan: mvn clean install, run a job, confirmed it is first

Reviewers: maja.kabiljo

Differential Revision: https://reviews.facebook.net/D31965


Project: http://git-wip-us.apache.org/repos/asf/giraph/repo
Commit: http://git-wip-us.apache.org/repos/asf/giraph/commit/a6f2a4fc
Tree: http://git-wip-us.apache.org/repos/asf/giraph/tree/a6f2a4fc
Diff: http://git-wip-us.apache.org/repos/asf/giraph/diff/a6f2a4fc

Branch: refs/heads/trunk
Commit: a6f2a4fc929d01073058578175981b0c1c616ba0
Parents: 31026d4
Author: Igor Kabiljo <ikabiljo@fb.com>
Authored: Thu Jan 22 10:36:32 2015 -0800
Committer: Maja Kabiljo <majakabiljo@fb.com>
Committed: Thu Jan 22 10:36:41 2015 -0800

----------------------------------------------------------------------
 .../org/apache/giraph/metrics/SuperstepMetricsRegistry.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/giraph/blob/a6f2a4fc/giraph-core/src/main/java/org/apache/giraph/metrics/SuperstepMetricsRegistry.java
----------------------------------------------------------------------
diff --git a/giraph-core/src/main/java/org/apache/giraph/metrics/SuperstepMetricsRegistry.java
b/giraph-core/src/main/java/org/apache/giraph/metrics/SuperstepMetricsRegistry.java
index 3a22d69..078bbe8 100644
--- a/giraph-core/src/main/java/org/apache/giraph/metrics/SuperstepMetricsRegistry.java
+++ b/giraph-core/src/main/java/org/apache/giraph/metrics/SuperstepMetricsRegistry.java
@@ -18,8 +18,10 @@
 
 package org.apache.giraph.metrics;
 
-import org.apache.giraph.conf.GiraphConfiguration;
+import java.io.PrintStream;
+
 import org.apache.giraph.bsp.BspService;
+import org.apache.giraph.conf.GiraphConfiguration;
 
 import com.yammer.metrics.core.Histogram;
 import com.yammer.metrics.core.Metric;
@@ -29,8 +31,6 @@ import com.yammer.metrics.core.MetricsRegistry;
 import com.yammer.metrics.reporting.ConsoleReporter;
 import com.yammer.metrics.reporting.JmxReporter;
 
-import java.io.PrintStream;
-
 /**
  * Wrapper around MetricsRegistry for per-superstep metrics.
  */
@@ -116,9 +116,9 @@ public class SuperstepMetricsRegistry extends GiraphMetricsRegistry {
       @Override
       public void processHistogram(MetricName name, Histogram histogram,
           PrintStream stream) {
+        stream.printf("               sum = %,2.2f%n", histogram.sum());
         super.processHistogram(name, histogram, stream);
         stream.printf("             count = %d%n", histogram.count());
-        stream.printf("               sum = %,2.2f%n", histogram.sum());
       }
     } .run();
   }


Mime
View raw message