FlatViewMetricPropagationFilter.java

Go to the documentation of this file.
00001 package edu.rice.cs.hpc.data.experiment.scope.filters;
00002 
00003 import edu.rice.cs.hpc.data.experiment.scope.CallSiteScope;
00004 import edu.rice.cs.hpc.data.experiment.scope.LoopScope;
00005 import edu.rice.cs.hpc.data.experiment.scope.ProcedureScope;
00006 import edu.rice.cs.hpc.data.experiment.scope.Scope;
00007 
00008 //when copying from the CCT to the flat view, don't copy metrics on LoopScopes and 
00009 //ProcedureScopes. in the CCT, they have already been updated
00010 //with inclusive values. in the flat view, they will be synthesized 
00011 //fresh (from the data on LineScopes) to reflect metrics in the flat view.
00012 public class FlatViewMetricPropagationFilter implements MetricValuePropagationFilter {
00013     public boolean doPropagation(Scope source, Scope target, int src_idx, int targ_idx) {
00014         if (source instanceof LoopScope) return false;
00015         if (source instanceof ProcedureScope) return false;
00016         if (source instanceof CallSiteScope)  return false; // should never get here
00017         return true;
00018     }
00019 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1