# HG changeset patch # User Doug Simon # Date 1378844026 -7200 # Node ID 60f4c505993ed63580eb2397d70d89fe12e40f3b # Parent d9342daa5078856d5807856919d8d1de3177fd39 remove global phase metric, replaced with per-phase metrics diff -r d9342daa5078 -r 60f4c505993e graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningPhase.java --- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningPhase.java Tue Sep 10 22:06:18 2013 +0200 +++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningPhase.java Tue Sep 10 22:13:46 2013 +0200 @@ -67,7 +67,7 @@ private static final DebugMetric metricInliningPerformed = Debug.metric("InliningPerformed"); private static final DebugMetric metricInliningConsidered = Debug.metric("InliningConsidered"); private static final DebugMetric metricInliningStoppedByMaxDesiredSize = Debug.metric("InliningStoppedByMaxDesiredSize"); - private static final DebugMetric metricInliningRuns = Debug.metric("Runs"); + private static final DebugMetric metricInliningRuns = Debug.metric("InliningRuns"); public InliningPhase(CanonicalizerPhase canonicalizer) { this(new GreedyInliningPolicy(null), canonicalizer); diff -r d9342daa5078 -r 60f4c505993e graal/com.oracle.graal.phases/src/com/oracle/graal/phases/BasePhase.java --- a/graal/com.oracle.graal.phases/src/com/oracle/graal/phases/BasePhase.java Tue Sep 10 22:06:18 2013 +0200 +++ b/graal/com.oracle.graal.phases/src/com/oracle/graal/phases/BasePhase.java Tue Sep 10 22:13:46 2013 +0200 @@ -37,8 +37,8 @@ private final String name; - private static final DebugMetric metricPhaseRuns = Debug.metric("Runs"); private final DebugTimer phaseTimer; + private final DebugMetric phaseMetric; private static final Pattern NAME_PATTERN = Pattern.compile("[A-Z][A-Za-z0-9]+"); @@ -56,12 +56,14 @@ } assert checkName(name); phaseTimer = Debug.timer("Phase_" + name); + phaseMetric = Debug.metric("Phase_" + name); } protected BasePhase(String name) { assert checkName(name); this.name = name; phaseTimer = Debug.timer("Phase_" + name); + phaseMetric = Debug.metric("Phase_" + name); } protected String getDetailedName() { @@ -79,7 +81,7 @@ public void run() { BasePhase.this.run(graph, context); - metricPhaseRuns.increment(); + phaseMetric.increment(); if (dumpGraph) { Debug.dump(graph, "After phase %s", name); }