edu.rice.cs.hpc.data.experiment.Experiment Class Reference

An HPCView experiment and its data. More...

Inheritance diagram for edu.rice.cs.hpc.data.experiment.Experiment:
Inheritance graph
[legend]
Collaboration diagram for edu.rice.cs.hpc.data.experiment.Experiment:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int getMajorVersion ()
void open (File fileExperiment, IUserData< String, String > userData, boolean need_caller_tree) throws Exception
void beginScope (Scope scope)
RootScope createCallersView (Scope callingContextViewRootScope, RootScope callersViewRootScope)
RootScope getCallerTreeRoot ()
DerivedMetric addDerivedMetric (DerivedMetric objMetric)
 Create a derived metric based on formula expression.
Experiment duplicate ()
void setXMLExperimentFile (File file)
void setMetricRaw (MetricRaw[]metrics)
MetricRaw[] getMetricRaw ()
void setMetrics (List< BaseMetric > metricList)
BaseMetric[] getMetrics ()
int getMetricCount ()
BaseMetric getMetric (int index)
BaseMetric getMetric (String name)
int getSearchPathCount ()
File getSearchPath (int index)
void setRootScope (Scope rootScope)
Scope getRootScope ()
Object[] getRootScopeChildren ()
void open (InputStream expStream, IUserData< String, String > userData, String name) throws Exception
void reopen () throws Exception
void setVersion (String v)
void setTraceAttribute (TraceAttribute _attribute)
TraceAttribute getTraceAttribute ()
String getName ()
void setConfiguration (ExperimentConfiguration configuration)
ExperimentConfiguration getConfiguration ()
File getDefaultDirectory ()
File getXMLExperimentFile ()
void dispose ()
void filter (IFilterData filter)

Protected Member Functions

void accumulateMetricsFromKids (Scope target, Scope source, MetricValuePropagationFilter filter)
void copyMetric (Scope target, Scope source, int src_i, int targ_i, MetricValuePropagationFilter filter)
RootScope prepareCallersView (Scope callingContextViewRootScope)
void addInclusiveMetrics (Scope scope, MetricValuePropagationFilter filter)
void copyMetricsToPartner (Scope scope, MetricType sourceType, MetricValuePropagationFilter filter)
void addPercents (Scope scope, RootScope totalScope)
void filter_finalize (RootScope rootCCT, IFilterData filter)
void open_finalize ()

Protected Attributes

List< BaseMetricmetrics
ExperimentConfiguration configuration
 The experiment's configuration.
RootScope rootScope
String version
 version of the database
IDatabaseRepresentation databaseRepresentation

Private Member Functions

Scope createFlatView (Scope callingContextViewRootScope)
void computeExclusiveMetrics (Scope scope)
void postprocess (boolean callerView)
 Post-processing for CCT:.
boolean checkExistenceOfDerivedIncr ()
 check the existence of an aggregate metric.
void finalizeAggregateMetrics (Scope root, AbstractFinalizeMetricVisitor diVisitor)
 finalizing metric values (only for aggregate metric from hpcprof-mpi)
boolean inclusiveNeeded ()
 Check if an inclusive computation is needed or not
we need to compute inclusive metrics if the metric is a raw metric (or its kinds).

Private Attributes

MetricRaw[] metrics_raw
boolean need_caller_tree

Detailed Description

An HPCView experiment and its data.

Definition at line 38 of file Experiment.java.


Member Function Documentation

void edu.rice.cs.hpc.data.experiment.Experiment.accumulateMetricsFromKids ( Scope  target,
Scope  source,
MetricValuePropagationFilter  filter 
) [protected]
DerivedMetric edu.rice.cs.hpc.data.experiment.Experiment.addDerivedMetric ( DerivedMetric  objMetric  ) 
void edu.rice.cs.hpc.data.experiment.Experiment.addInclusiveMetrics ( Scope  scope,
MetricValuePropagationFilter  filter 
) [protected]
void edu.rice.cs.hpc.data.experiment.Experiment.addPercents ( Scope  scope,
RootScope  totalScope 
) [protected]
void edu.rice.cs.hpc.data.experiment.Experiment.beginScope ( Scope  scope  ) 
boolean edu.rice.cs.hpc.data.experiment.Experiment.checkExistenceOfDerivedIncr (  )  [private]

check the existence of an aggregate metric.


If the metric is an aggregate, we need to initialize them !

Returns:
true if the database contains a derived incremental (or aggregate) metric

Definition at line 325 of file Experiment.java.

References edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetric(), edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetricCount(), and edu.rice.cs.hpc.data.experiment.metric.AggregateMetric.init().

Referenced by edu.rice.cs.hpc.data.experiment.Experiment.finalizeAggregateMetrics().

void edu.rice.cs.hpc.data.experiment.Experiment.computeExclusiveMetrics ( Scope  scope  )  [private]
void edu.rice.cs.hpc.data.experiment.Experiment.copyMetric ( Scope  target,
Scope  source,
int  src_i,
int  targ_i,
MetricValuePropagationFilter  filter 
) [protected]
void edu.rice.cs.hpc.data.experiment.Experiment.copyMetricsToPartner ( Scope  scope,
MetricType  sourceType,
MetricValuePropagationFilter  filter 
) [protected]
RootScope edu.rice.cs.hpc.data.experiment.Experiment.createCallersView ( Scope  callingContextViewRootScope,
RootScope  callersViewRootScope 
)
Scope edu.rice.cs.hpc.data.experiment.Experiment.createFlatView ( Scope  callingContextViewRootScope  )  [private]
void edu.rice.cs.hpc.data.experiment.BaseExperiment.dispose (  )  [inherited]
Experiment edu.rice.cs.hpc.data.experiment.Experiment.duplicate (  ) 
void edu.rice.cs.hpc.data.experiment.BaseExperiment.filter ( IFilterData  filter  )  [inherited]
void edu.rice.cs.hpc.data.experiment.Experiment.filter_finalize ( RootScope  rootCCT,
IFilterData  filter 
) [protected, virtual]
void edu.rice.cs.hpc.data.experiment.Experiment.finalizeAggregateMetrics ( Scope  root,
AbstractFinalizeMetricVisitor  diVisitor 
) [private]
RootScope edu.rice.cs.hpc.data.experiment.Experiment.getCallerTreeRoot (  ) 
ExperimentConfiguration edu.rice.cs.hpc.data.experiment.BaseExperiment.getConfiguration (  )  [inherited]
File edu.rice.cs.hpc.data.experiment.BaseExperiment.getDefaultDirectory (  )  [inherited]
int edu.rice.cs.hpc.data.experiment.Experiment.getMajorVersion (  ) 
BaseMetric edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetric ( String  name  )  [inherited]
BaseMetric edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetric ( int  index  )  [inherited]
int edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetricCount (  )  [inherited]

Definition at line 50 of file BaseExperimentWithMetrics.java.

References edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.metrics.

Referenced by edu.rice.cs.hpc.data.experiment.Experiment.accumulateMetricsFromKids(), edu.rice.cs.hpc.data.experiment.scope.visitors.ComputedMetricVisitor.addComputedMetrics(), edu.rice.cs.hpc.data.experiment.Experiment.addDerivedMetric(), edu.rice.cs.hpc.data.experiment.Experiment.addPercents(), edu.rice.cs.hpc.data.experiment.Experiment.checkExistenceOfDerivedIncr(), edu.rice.cs.hpc.data.experiment.scope.Scope.combine(), edu.rice.cs.hpc.data.experiment.Experiment.copyMetricsToPartner(), edu.rice.cs.hpc.data.experiment.Experiment.createCallersView(), edu.rice.cs.hpc.data.experiment.Experiment.createFlatView(), edu.rice.cs.hpc.viewer.metric.MetricPropertyDialog.createInput(), edu.rice.cs.hpc.viewer.metric.ExtDerivedMetricDlg.doAction(), edu.rice.cs.hpc.data.experiment.scope.Scope.ensureMetricStorage(), edu.rice.cs.hpc.data.experiment.scope.visitors.ExclusiveCallingContextVisitor.ExclusiveCallingContextVisitor(), edu.rice.cs.hpc.data.experiment.scope.Scope.getCombinedValues(), edu.rice.cs.hpc.data.experiment.scope.visitors.InclusiveMetricsScopeVisitor.InclusiveMetricsScopeVisitor(), edu.rice.cs.hpc.data.experiment.Experiment.inclusiveNeeded(), edu.rice.cs.hpc.viewer.scope.BaseScopeView.initTableColumns(), edu.rice.cs.hpc.data.experiment.scope.Scope.makeMetricValueArray(), edu.rice.cs.hpc.data.experiment.merge.ExperimentMerger.merge(), edu.rice.cs.hpc.data.experiment.scope.visitors.PrintFlatViewScopeVisitor.printMetrics(), and edu.rice.cs.hpc.viewer.scope.bottomup.CallerViewContentProvider.setDatabase().

MetricRaw [] edu.rice.cs.hpc.data.experiment.Experiment.getMetricRaw (  ) 
BaseMetric [] edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetrics (  )  [inherited]
String edu.rice.cs.hpc.data.experiment.BaseExperiment.getName (  )  [inherited]
Scope edu.rice.cs.hpc.data.experiment.BaseExperiment.getRootScope (  )  [inherited]
Object [] edu.rice.cs.hpc.data.experiment.BaseExperiment.getRootScopeChildren (  )  [inherited]
File edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getSearchPath ( int  index  )  [inherited]
int edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getSearchPathCount (  )  [inherited]
TraceAttribute edu.rice.cs.hpc.data.experiment.BaseExperiment.getTraceAttribute (  )  [inherited]
File edu.rice.cs.hpc.data.experiment.BaseExperiment.getXMLExperimentFile (  )  [inherited]
boolean edu.rice.cs.hpc.data.experiment.Experiment.inclusiveNeeded (  )  [private]

Check if an inclusive computation is needed or not
we need to compute inclusive metrics if the metric is a raw metric (or its kinds).

Returns:
true if inclusive computation is needed

Definition at line 358 of file Experiment.java.

References edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetric(), and edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetricCount().

Referenced by edu.rice.cs.hpc.data.experiment.Experiment.postprocess().

void edu.rice.cs.hpc.data.experiment.BaseExperiment.open ( InputStream  expStream,
IUserData< String, String >  userData,
String  name 
) throws Exception [inherited]
void edu.rice.cs.hpc.data.experiment.Experiment.open ( File  fileExperiment,
IUserData< String, String >  userData,
boolean  need_caller_tree 
) throws Exception
void edu.rice.cs.hpc.data.experiment.Experiment.open_finalize (  )  [protected, virtual]
void edu.rice.cs.hpc.data.experiment.Experiment.postprocess ( boolean  callerView  )  [private]
RootScope edu.rice.cs.hpc.data.experiment.Experiment.prepareCallersView ( Scope  callingContextViewRootScope  )  [protected]
void edu.rice.cs.hpc.data.experiment.BaseExperiment.reopen (  )  throws Exception [inherited]
void edu.rice.cs.hpc.data.experiment.BaseExperiment.setConfiguration ( ExperimentConfiguration  configuration  )  [inherited]
void edu.rice.cs.hpc.data.experiment.Experiment.setMetricRaw ( MetricRaw[]  metrics  ) 
void edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.setMetrics ( List< BaseMetric metricList  )  [inherited]
void edu.rice.cs.hpc.data.experiment.BaseExperiment.setRootScope ( Scope  rootScope  )  [inherited]
void edu.rice.cs.hpc.data.experiment.BaseExperiment.setTraceAttribute ( TraceAttribute  _attribute  )  [inherited]
void edu.rice.cs.hpc.data.experiment.BaseExperiment.setVersion ( String  v  )  [inherited]
void edu.rice.cs.hpc.data.experiment.Experiment.setXMLExperimentFile ( File  file  ) 

Member Data Documentation


The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1