You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tez.apache.org by hi...@apache.org on 2014/05/27 21:03:05 UTC
git commit: TEZ-1090. Micro optimization - Remove duplicate
updateProcessTree() in TaskCounterUpdater. (Rajesh Balamohan via hitesh)
Repository: incubator-tez
Updated Branches:
refs/heads/master 0af037d68 -> ec15f3735
TEZ-1090. Micro optimization - Remove duplicate updateProcessTree() in TaskCounterUpdater. (Rajesh Balamohan via hitesh)
Project: http://git-wip-us.apache.org/repos/asf/incubator-tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tez/commit/ec15f373
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tez/tree/ec15f373
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tez/diff/ec15f373
Branch: refs/heads/master
Commit: ec15f37353bf5fbe2323bd1abb23699d55f5bfc3
Parents: 0af037d
Author: Hitesh Shah <hi...@apache.org>
Authored: Tue May 27 12:02:27 2014 -0700
Committer: Hitesh Shah <hi...@apache.org>
Committed: Tue May 27 12:02:27 2014 -0700
----------------------------------------------------------------------
.../org/apache/tez/runtime/metrics/TaskCounterUpdater.java | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/ec15f373/tez-runtime-internals/src/main/java/org/apache/tez/runtime/metrics/TaskCounterUpdater.java
----------------------------------------------------------------------
diff --git a/tez-runtime-internals/src/main/java/org/apache/tez/runtime/metrics/TaskCounterUpdater.java b/tez-runtime-internals/src/main/java/org/apache/tez/runtime/metrics/TaskCounterUpdater.java
index 07e1869..d8ad9f0 100644
--- a/tez-runtime-internals/src/main/java/org/apache/tez/runtime/metrics/TaskCounterUpdater.java
+++ b/tez-runtime-internals/src/main/java/org/apache/tez/runtime/metrics/TaskCounterUpdater.java
@@ -45,9 +45,7 @@ public class TaskCounterUpdater {
private final TezCounters tezCounters;
private final Configuration conf;
-
- private long initialCpuCumulativeTime;
-
+
/**
* A Map where Key-> URIScheme and value->FileSystemStatisticUpdater
*/
@@ -148,9 +146,5 @@ public class TaskCounterUpdater {
System.getenv().get("JVM_PID"), clazz, conf);
LOG.info(" Using ResourceCalculatorProcessTree : " + pTree);
- if (pTree != null) {
- pTree.updateProcessTree();
- initCpuCumulativeTime = pTree.getCumulativeCpuTime();
- }
}
}