A scope in an HPCView experiment. More...
Public Member Functions | |
Scope (BaseExperiment experiment, SourceFile file, int first, int last, int cct_id, int flat_id) | |
Scope (BaseExperiment experiment, SourceFile file, int first, int last, int cct_id, int flat_id, int cpid) | |
Scope (BaseExperiment experiment, SourceFile file, int scopeID) | |
int | getFlatIndex () |
int | getCCTIndex () |
abstract Scope | duplicate () |
abstract String | getName () |
String | getShortName () |
void | incrementCounter () |
void | decrementCounter () |
void | setCounter (int counter) |
int | getCounter () |
boolean | isCounterPositif () |
boolean | isCounterZero () |
int | getCpid () |
void | setCpid (int _cpid) |
String | getToolTip () |
String | toString () |
int | hashCode () |
SourceFile | getSourceFile () |
int | getFirstLineNumber () |
int | getLastLineNumber () |
Scope | getParentScope () |
void | setParentScope (Scope parentScope) |
int | getSubscopeCount () |
Scope | getSubscope (int index) |
void | addSubscope (Scope subscope) |
boolean | hasMetrics () |
boolean | hasNonzeroMetrics () |
BaseExperiment | getExperiment () |
void | setExperiment (BaseExperiment exp) |
MetricValue | getMetricValue (BaseMetric metric) |
MetricValue | getMetricValue (int index) |
void | setMetricValue (int index, MetricValue value) |
void | accumulateMetrics (Scope source, MetricValuePropagationFilter filter, int nMetrics) |
void | accumulateMetric (Scope source, int src_i, int targ_i, MetricValuePropagationFilter filter) |
void | backupMetricValues () |
MetricValue[] | getMetricValues () |
void | setMetricValues (MetricValue values[]) |
MetricValue[] | getCombinedValues () |
void | combine (Scope source, MetricValuePropagationFilter filter) |
void | safeCombine (Scope source, MetricValuePropagationFilter filter) |
void | copyMetrics (Scope targetScope, int offset) |
void | dfsVisitScopeTree (IScopeVisitor sv) |
void | accept (IScopeVisitor visitor, ScopeVisitType vt) |
void | dfsVisitFilterScopeTree (FilterScopeVisitor sv) |
void | dispose () |
boolean | equals (final Object object) |
Object[] | getChildren () |
Returns the child nodes. | |
TreeNode | getParent () |
Returns the parent node. | |
Object | getValue () |
Returns the value held by this node. | |
boolean | hasChildren () |
Returns whether the tree has any children. | |
void | add (TreeNode child) |
void | remove (TreeNode child) |
Remove a child. | |
void | remove (int index) |
Remove a child for a given index. | |
void | setParent (final TreeNode parent) |
Sets the parent for this node. | |
TreeNode | getChildAt (int index) |
int | getChildCount () |
Iterator< TreeNode > | getIterator () |
Return the iterator of the children. | |
Static Public Member Functions | |
static final boolean | equals (final Object left, final Object right) |
Checks whether the two objects are null -- allowing for null . | |
static final int | hashCode (final Object object) |
Provides a hash code for the object -- defending against null . | |
Public Attributes | |
int | iSourceCodeAvailability = Scope.SOURCE_CODE_UNKNOWN |
Static Public Attributes | |
static final int | NO_LINE_NUMBER = -169 |
The value used to indicate "no line number". | |
static final int | SOURCE_CODE_UNKNOWN = 0 |
static final int | SOURCE_CODE_AVAILABLE = 1 |
static final int | SOURCE_CODE_NOT_AVAILABLE = 2 |
Protected Member Functions | |
String | getSourceCitation () |
String | getLineNumberCitation () |
void | ensureMetricStorage () |
boolean | isExperimentHasMetrics () |
Protected Attributes | |
BaseExperiment | experiment |
The experiment owning this scope. | |
SourceFile | sourceFile |
The source file containing this scope. | |
int | flat_node_index |
the scope identifier | |
int | firstLineNumber |
The first line number of this scope. | |
int | lastLineNumber |
The last line number of this scope. | |
String | srcCitation |
source citation | |
int | cpid |
Object | value |
The value contained in this node. | |
Static Protected Attributes | |
static int | idMax = 0 |
The current maximum number of ID for all scopes. | |
Private Member Functions | |
String | getSourceCitation (SourceFile sourceFile, int line1, int line2) |
String | getLineNumberCitation (int line1, int line2) |
String | getLineOnlyCitation (int line1, int line2) |
void | accumulateMetricValue (int index, double value) |
MetricValue[] | makeMetricValueArray () |
Private Attributes | |
MetricValue[] | metrics |
The metric values associated with this scope. | |
MetricValue[] | combinedMetrics |
int | iCounter |
FIXME: this variable is only used for the creation of callers view to count the number of instances. |
A scope in an HPCView experiment.
FIXME: do we want to merge the functionality of Scope and Scope.Node? it's kind of irritating to have the two things be distinct and having objects which point at each other makes me a little uneasy.
Definition at line 47 of file Scope.java.
edu.rice.cs.hpc.data.experiment.scope.Scope.Scope | ( | BaseExperiment | experiment, | |
SourceFile | file, | |||
int | first, | |||
int | last, | |||
int | cct_id, | |||
int | flat_id | |||
) |
Definition at line 112 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.cpid, edu.rice.cs.hpc.data.experiment.scope.Scope.firstLineNumber, edu.rice.cs.hpc.data.experiment.scope.Scope.flat_node_index, edu.rice.cs.hpc.data.experiment.scope.Scope.iCounter, edu.rice.cs.hpc.data.experiment.scope.Scope.lastLineNumber, edu.rice.cs.hpc.data.experiment.scope.Scope.sourceFile, and edu.rice.cs.hpc.data.experiment.scope.Scope.srcCitation.
edu.rice.cs.hpc.data.experiment.scope.Scope.Scope | ( | BaseExperiment | experiment, | |
SourceFile | file, | |||
int | first, | |||
int | last, | |||
int | cct_id, | |||
int | flat_id, | |||
int | cpid | |||
) |
Definition at line 129 of file Scope.java.
edu.rice.cs.hpc.data.experiment.scope.Scope.Scope | ( | BaseExperiment | experiment, | |
SourceFile | file, | |||
int | scopeID | |||
) |
Definition at line 141 of file Scope.java.
void edu.rice.cs.hpc.data.experiment.scope.Scope.accept | ( | IScopeVisitor | visitor, | |
ScopeVisitType | vt | |||
) |
Reimplemented in edu.rice.cs.hpc.data.experiment.scope.AlienScope, edu.rice.cs.hpc.data.experiment.scope.CallSiteScope, edu.rice.cs.hpc.data.experiment.scope.FileScope, edu.rice.cs.hpc.data.experiment.scope.GroupScope, edu.rice.cs.hpc.data.experiment.scope.LineScope, edu.rice.cs.hpc.data.experiment.scope.LoadModuleScope, edu.rice.cs.hpc.data.experiment.scope.LoopScope, edu.rice.cs.hpc.data.experiment.scope.ProcedureScope, edu.rice.cs.hpc.data.experiment.scope.RootScope, and edu.rice.cs.hpc.data.experiment.scope.StatementRangeScope.
Definition at line 837 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.visitors.IScopeVisitor.visit().
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.dfsVisitFilterScopeTree(), and edu.rice.cs.hpc.data.experiment.scope.Scope.dfsVisitScopeTree().
void edu.rice.cs.hpc.data.experiment.scope.Scope.accumulateMetric | ( | Scope | source, | |
int | src_i, | |||
int | targ_i, | |||
MetricValuePropagationFilter | filter | |||
) |
Definition at line 581 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.accumulateMetricValue(), edu.rice.cs.hpc.data.experiment.scope.filters.MetricValuePropagationFilter.doPropagation(), edu.rice.cs.hpc.data.experiment.scope.Scope.getMetricValue(), edu.rice.cs.hpc.data.experiment.metric.MetricValue.getValue(), and edu.rice.cs.hpc.data.experiment.metric.MetricValue.NONE.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.accumulateMetrics(), edu.rice.cs.hpc.data.experiment.scope.visitors.DerivedMetricVisitor.accumulateToParent(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.checkInlinedScope(), and edu.rice.cs.hpc.data.experiment.scope.Scope.combine().
void edu.rice.cs.hpc.data.experiment.scope.Scope.accumulateMetrics | ( | Scope | source, | |
MetricValuePropagationFilter | filter, | |||
int | nMetrics | |||
) |
Definition at line 572 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.accumulateMetric().
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.ExclusiveCallingContextVisitor.accumulateAncestor(), edu.rice.cs.hpc.data.experiment.Experiment.accumulateMetricsFromKids(), edu.rice.cs.hpc.data.experiment.scope.visitors.InclusiveMetricsScopeVisitor.accumulateToParent(), edu.rice.cs.hpc.data.experiment.scope.visitors.ExclusiveCallingContextVisitor.add(), edu.rice.cs.hpc.data.experiment.Experiment.createCallersView(), edu.rice.cs.hpc.data.experiment.Experiment.createFlatView(), and edu.rice.cs.hpc.data.experiment.scope.visitors.ExclusiveCallingContextVisitor.visit().
void edu.rice.cs.hpc.data.experiment.scope.Scope.accumulateMetricValue | ( | int | index, | |
double | value | |||
) | [private] |
Definition at line 595 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.ensureMetricStorage(), edu.rice.cs.hpc.data.experiment.metric.MetricValue.getValue(), edu.rice.cs.hpc.data.experiment.scope.Scope.metrics, and edu.rice.cs.hpc.data.experiment.metric.MetricValue.NONE.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.accumulateMetric().
void edu.rice.cs.hpc.data.experiment.scope.TreeNode.add | ( | TreeNode | child | ) | [inherited] |
Definition at line 127 of file TreeNode.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.children.
Referenced by edu.rice.cs.hpc.viewer.scope.flat.FlatScopeViewActions.addChildren(), edu.rice.cs.hpc.data.experiment.scope.Scope.addSubscope(), edu.rice.cs.hpc.viewer.scope.flat.FlatScopeViewActions.flatten(), and edu.rice.cs.hpc.data.experiment.scope.visitors.FilterScopeVisitor.removeChild().
void edu.rice.cs.hpc.data.experiment.scope.Scope.addSubscope | ( | Scope | subscope | ) |
Definition at line 476 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.add().
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.addChild(), edu.rice.cs.hpc.data.experiment.scope.visitors.BaseDuplicateScopeTreesVisitor.addMetricColumns(), edu.rice.cs.hpc.data.experiment.scope.CallerScopeBuilder.addNewPathIntoTree(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.beginScope(), edu.rice.cs.hpc.data.experiment.Experiment.beginScope(), and edu.rice.cs.hpc.data.experiment.scope.visitors.CallersViewScopeVisitor.createProcedureIfNecessary().
void edu.rice.cs.hpc.data.experiment.scope.Scope.backupMetricValues | ( | ) |
Definition at line 613 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.combinedMetrics, edu.rice.cs.hpc.data.experiment.scope.Scope.experiment, edu.rice.cs.hpc.data.experiment.scope.Scope.metrics, edu.rice.cs.hpc.data.experiment.metric.MetricValue.NONE, and edu.rice.cs.hpc.data.experiment.scope.TreeNode.value.
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.FinalizeMetricVisitorWithBackup.setValue().
void edu.rice.cs.hpc.data.experiment.scope.Scope.combine | ( | Scope | source, | |
MetricValuePropagationFilter | filter | |||
) |
Definition at line 704 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.accumulateMetric(), edu.rice.cs.hpc.data.experiment.metric.AggregateMetric.combine(), edu.rice.cs.hpc.data.experiment.scope.filters.MetricValuePropagationFilter.doPropagation(), edu.rice.cs.hpc.data.experiment.scope.Scope.experiment, edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetric(), edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetricCount(), and edu.rice.cs.hpc.data.experiment.scope.Scope.isExperimentHasMetrics().
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.addCostIfNecessary(), edu.rice.cs.hpc.data.experiment.scope.visitors.CallersViewScopeVisitor.CombineCallerScopeMetric.combine(), edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.CombineMetricUsingCopyNoCondition.combine(), edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.IncrementalCombineMetricUsingCopy.combine(), edu.rice.cs.hpc.data.experiment.metric.CombineMetricUsingCopy.combine(), edu.rice.cs.hpc.data.experiment.metric.AbstractCombineMetric.combine_internal(), and edu.rice.cs.hpc.data.experiment.scope.Scope.safeCombine().
void edu.rice.cs.hpc.data.experiment.scope.Scope.copyMetrics | ( | Scope | targetScope, | |
int | offset | |||
) |
Definition at line 792 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.ensureMetricStorage(), edu.rice.cs.hpc.data.experiment.metric.MetricValue.getAnnotationValue(), edu.rice.cs.hpc.data.experiment.metric.MetricValue.getValue(), edu.rice.cs.hpc.data.experiment.scope.Scope.hasMetrics(), edu.rice.cs.hpc.data.experiment.scope.Scope.metrics, and edu.rice.cs.hpc.data.experiment.metric.MetricValue.NONE.
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.BaseDuplicateScopeTreesVisitor.accumulateMetrics(), edu.rice.cs.hpc.viewer.scope.flat.FlatScopeViewActions.flatten(), and edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.mergeMetrics().
void edu.rice.cs.hpc.data.experiment.scope.Scope.decrementCounter | ( | ) |
Definition at line 211 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.flat_node_index, edu.rice.cs.hpc.data.experiment.scope.Scope.getCCTIndex(), edu.rice.cs.hpc.data.experiment.scope.Scope.getName(), edu.rice.cs.hpc.data.experiment.scope.Scope.iCounter, and edu.rice.cs.hpc.data.experiment.scope.Scope.isCounterPositif().
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.decrementCounter(), and edu.rice.cs.hpc.data.experiment.scope.visitors.CallersViewScopeVisitor.decrementCounter().
void edu.rice.cs.hpc.data.experiment.scope.Scope.dfsVisitFilterScopeTree | ( | FilterScopeVisitor | sv | ) |
Definition at line 846 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.accept(), edu.rice.cs.hpc.data.experiment.scope.Scope.dfsVisitFilterScopeTree(), edu.rice.cs.hpc.data.experiment.scope.TreeNode.getChildAt(), edu.rice.cs.hpc.data.experiment.scope.TreeNode.getChildCount(), edu.rice.cs.hpc.data.experiment.scope.TreeNode.getIterator(), and edu.rice.cs.hpc.data.experiment.scope.visitors.FilterScopeVisitor.needToContinue().
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.dfsVisitFilterScopeTree(), and edu.rice.cs.hpc.data.experiment.BaseExperiment.filter().
void edu.rice.cs.hpc.data.experiment.scope.Scope.dfsVisitScopeTree | ( | IScopeVisitor | sv | ) |
Definition at line 826 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.accept(), edu.rice.cs.hpc.data.experiment.scope.Scope.dfsVisitScopeTree(), edu.rice.cs.hpc.data.experiment.scope.Scope.getSubscope(), and edu.rice.cs.hpc.data.experiment.scope.Scope.getSubscopeCount().
Referenced by edu.rice.cs.hpc.data.experiment.Experiment.addDerivedMetric(), edu.rice.cs.hpc.data.experiment.Experiment.addInclusiveMetrics(), edu.rice.cs.hpc.data.experiment.Experiment.addPercents(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.addSubTree(), edu.rice.cs.hpc.data.experiment.Experiment.computeExclusiveMetrics(), edu.rice.cs.hpc.data.experiment.Experiment.createCallersView(), edu.rice.cs.hpc.data.experiment.Experiment.createFlatView(), edu.rice.cs.hpc.data.experiment.scope.Scope.dfsVisitScopeTree(), edu.rice.cs.hpc.data.experiment.BaseExperiment.dispose(), edu.rice.cs.hpc.data.experiment.Experiment.finalizeAggregateMetrics(), edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.getAllChildren(), edu.rice.cs.hpc.traceviewer.spaceTimeData.SpaceTimeDataController.init(), edu.rice.cs.hpc.data.experiment.merge.ExperimentMerger.merge(), edu.rice.cs.hpc.data.experiment.merge.ExperimentMerger.mergeScopeTrees(), edu.rice.cs.hpc.data.experiment.xml.PrintFileXML.print(), and edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.TreeSimilarity().
void edu.rice.cs.hpc.data.experiment.scope.Scope.dispose | ( | ) |
Reimplemented from edu.rice.cs.hpc.data.experiment.scope.TreeNode.
Definition at line 874 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.combinedMetrics, edu.rice.cs.hpc.data.experiment.scope.Scope.experiment, edu.rice.cs.hpc.data.experiment.scope.Scope.metrics, and edu.rice.cs.hpc.data.experiment.scope.Scope.srcCitation.
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.DisposeResourcesVisitor.inspect().
abstract Scope edu.rice.cs.hpc.data.experiment.scope.Scope.duplicate | ( | ) | [pure virtual] |
Implemented in edu.rice.cs.hpc.data.experiment.scope.AlienScope, edu.rice.cs.hpc.data.experiment.scope.CallSiteScope, edu.rice.cs.hpc.data.experiment.scope.FileScope, edu.rice.cs.hpc.data.experiment.scope.GroupScope, edu.rice.cs.hpc.data.experiment.scope.LineScope, edu.rice.cs.hpc.data.experiment.scope.LoadModuleScope, edu.rice.cs.hpc.data.experiment.scope.LoopScope, edu.rice.cs.hpc.data.experiment.scope.ProcedureScope, edu.rice.cs.hpc.data.experiment.scope.RootScope, and edu.rice.cs.hpc.data.experiment.scope.StatementRangeScope.
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.BaseDuplicateScopeTreesVisitor.addMetricColumns(), edu.rice.cs.hpc.data.experiment.metric.CombineMetricUsingCopy.combine(), edu.rice.cs.hpc.viewer.scope.flat.FlatScopeViewActions.flatten(), edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.getFlatScope(), and edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.getScopeOfCombineMetrics().
void edu.rice.cs.hpc.data.experiment.scope.Scope.ensureMetricStorage | ( | ) | [protected] |
Definition at line 746 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.experiment, edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetricCount(), edu.rice.cs.hpc.data.experiment.scope.Scope.isExperimentHasMetrics(), edu.rice.cs.hpc.data.experiment.scope.Scope.makeMetricValueArray(), and edu.rice.cs.hpc.data.experiment.scope.Scope.metrics.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.accumulateMetricValue(), edu.rice.cs.hpc.data.experiment.scope.Scope.copyMetrics(), edu.rice.cs.hpc.data.experiment.scope.Scope.safeCombine(), and edu.rice.cs.hpc.data.experiment.scope.Scope.setMetricValue().
static final boolean edu.rice.cs.hpc.data.experiment.scope.TreeNode.equals | ( | final Object | left, | |
final Object | right | |||
) | [static, inherited] |
Checks whether the two objects are null
-- allowing for null
.
left | The left object to compare; may be null . | |
right | The right object to compare; may be null . |
true
if the two objects are equivalent; false
otherwise. Definition at line 234 of file TreeNode.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.equals().
boolean edu.rice.cs.hpc.data.experiment.scope.TreeNode.equals | ( | final Object | object | ) | [inherited] |
Definition at line 66 of file TreeNode.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.value.
Referenced by edu.rice.cs.hpc.data.experiment.scope.TreeNode.equals().
int edu.rice.cs.hpc.data.experiment.scope.Scope.getCCTIndex | ( | ) |
Definition at line 151 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.getValue().
Referenced by edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.checkNodesSimilarity(), edu.rice.cs.hpc.data.experiment.scope.CallerScopeBuilder.createCallChain(), edu.rice.cs.hpc.data.experiment.scope.Scope.decrementCounter(), edu.rice.cs.hpc.data.experiment.scope.StatementRangeScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.ProcedureScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LoopScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LineScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.CallSiteScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.AlienScope.duplicate(), edu.rice.cs.hpc.viewer.graph.GraphEditorInput.getID(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.getSortedChildren(), edu.rice.cs.hpc.viewer.scope.StyledScopeLabelProvider.getText(), edu.rice.cs.hpc.data.experiment.scope.CallerScopeBuilder.mergeCallerPath(), and edu.rice.cs.hpc.viewer.graph.GraphEditorHisto.plotData().
TreeNode edu.rice.cs.hpc.data.experiment.scope.TreeNode.getChildAt | ( | int | index | ) | [inherited] |
Definition at line 173 of file TreeNode.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.children.
Referenced by edu.rice.cs.hpc.viewer.scope.flat.FlatScopeViewActions.addChildren(), edu.rice.cs.hpc.data.experiment.scope.Scope.dfsVisitFilterScopeTree(), edu.rice.cs.hpc.viewer.scope.BaseScopeView.enableFilter(), edu.rice.cs.hpc.data.experiment.BaseExperiment.filter(), edu.rice.cs.hpc.viewer.scope.flat.FlatScopeViewActions.flatten(), edu.rice.cs.hpc.data.experiment.scope.Scope.getSubscope(), edu.rice.cs.hpc.data.experiment.merge.ExperimentMerger.merge(), and edu.rice.cs.hpc.viewer.scope.flat.FlatScopeViewActionsGUI.shouldFlattenBeEnabled().
int edu.rice.cs.hpc.data.experiment.scope.TreeNode.getChildCount | ( | ) | [inherited] |
Definition at line 187 of file TreeNode.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.children.
Referenced by edu.rice.cs.hpc.viewer.scope.flat.FlatScopeViewActions.addChildren(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.areSameChildren(), edu.rice.cs.hpc.viewer.scope.ScopeZoom.canZoomIn(), edu.rice.cs.hpc.data.experiment.scope.Scope.dfsVisitFilterScopeTree(), edu.rice.cs.hpc.viewer.scope.flat.FlatScopeViewActions.flatten(), edu.rice.cs.hpc.data.experiment.scope.Scope.getSubscopeCount(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.isOnlyChild(), edu.rice.cs.hpc.viewer.scope.flat.FlatScopeViewActionsGUI.shouldFlattenBeEnabled(), and edu.rice.cs.hpc.viewer.scope.BaseScopeView.updateDisplay().
Object [] edu.rice.cs.hpc.data.experiment.scope.TreeNode.getChildren | ( | ) | [inherited] |
Returns the child nodes.
Empty arrays are converted to null
before being returned.
null
, but never empty. There should be no null
children in the array. Definition at line 81 of file TreeNode.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.children.
Referenced by edu.rice.cs.hpc.data.experiment.scope.ProcedureScope.getAllChildren(), edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.getAllChildren(), edu.rice.cs.hpc.viewer.scope.bottomup.CallerViewContentProvider.getChildren(), edu.rice.cs.hpc.viewer.scope.AbstractContentProvider.getChildren(), edu.rice.cs.hpc.data.experiment.BaseExperiment.getRootScopeChildren(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.getSortedChildren(), and edu.rice.cs.hpc.data.experiment.scope.visitors.FilterScopeVisitor.removeChild().
MetricValue [] edu.rice.cs.hpc.data.experiment.scope.Scope.getCombinedValues | ( | ) |
Definition at line 669 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.combinedMetrics, edu.rice.cs.hpc.data.experiment.scope.Scope.experiment, edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetric(), edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetricCount(), edu.rice.cs.hpc.data.experiment.scope.Scope.isExperimentHasMetrics(), edu.rice.cs.hpc.data.experiment.scope.Scope.metrics, and edu.rice.cs.hpc.data.experiment.metric.MetricValue.NONE.
Referenced by edu.rice.cs.hpc.data.experiment.metric.CombineMetricUsingCopy.combine(), and edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.getScopeOfCombineMetrics().
int edu.rice.cs.hpc.data.experiment.scope.Scope.getCounter | ( | ) |
Definition at line 223 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.iCounter.
Referenced by edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.CombineMetricUsingCopyNoCondition.combine(), edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.getAllChildren(), edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.isOutermostInstance(), and edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.merge().
int edu.rice.cs.hpc.data.experiment.scope.Scope.getCpid | ( | ) |
Definition at line 239 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.cpid.
Referenced by edu.rice.cs.hpc.traceviewer.spaceTimeData.TraceDataVisitor.visit().
BaseExperiment edu.rice.cs.hpc.data.experiment.scope.Scope.getExperiment | ( | ) |
Definition at line 506 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.experiment.
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.ComputedMetricVisitor.addComputedMetrics(), edu.rice.cs.hpc.viewer.scope.ScopeViewActions.addExtNewMetric(), edu.rice.cs.hpc.data.experiment.scope.visitors.BaseDuplicateScopeTreesVisitor.addMetricColumns(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.checkInlinedScope(), edu.rice.cs.hpc.data.experiment.scope.CallerScopeBuilder.createCallChain(), edu.rice.cs.hpc.data.experiment.scope.visitors.FilterScopeVisitor.FilterScopeVisitor(), edu.rice.cs.hpc.viewer.scope.flat.FlatScopeViewActions.flatten(), edu.rice.cs.hpc.viewer.scope.ScopeViewActions.getContent(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.getSortedChildren(), edu.rice.cs.hpc.data.experiment.merge.ExperimentMerger.merge(), edu.rice.cs.hpc.viewer.graph.GraphMenu.ScopeGraphAction.run(), and edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.TreeSimilarity().
int edu.rice.cs.hpc.data.experiment.scope.Scope.getFirstLineNumber | ( | ) |
Definition at line 395 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.firstLineNumber.
Referenced by edu.rice.cs.hpc.data.experiment.scope.CallerScopeBuilder.createCallChain(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.getScopeSimilarityScore(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.ScopeMouseListener.handleEvent(), edu.rice.cs.hpc.data.experiment.scope.visitors.PrintFlatViewScopeVisitor.printScopeTag(), and edu.rice.cs.hpc.viewer.scope.StyledScopeLabelProvider.update().
int edu.rice.cs.hpc.data.experiment.scope.Scope.getFlatIndex | ( | ) |
Definition at line 147 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.flat_node_index.
Referenced by edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.CallSiteScopeCallerView(), edu.rice.cs.hpc.data.experiment.scope.CallerScopeBuilder.createCallChain(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.getCallSiteID(), edu.rice.cs.hpc.viewer.scope.StyledScopeLabelProvider.getText(), and edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.getUniqueFileID().
Iterator<TreeNode> edu.rice.cs.hpc.data.experiment.scope.TreeNode.getIterator | ( | ) | [inherited] |
Return the iterator of the children.
The advantage of an iterator is that it allows the caller to remove elements from the collection of children during the iteration. See java.util.Iterator
Definition at line 202 of file TreeNode.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.children.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.dfsVisitFilterScopeTree().
int edu.rice.cs.hpc.data.experiment.scope.Scope.getLastLineNumber | ( | ) |
Definition at line 412 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.lastLineNumber.
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.PrintFlatViewScopeVisitor.printScopeTag().
String edu.rice.cs.hpc.data.experiment.scope.Scope.getLineNumberCitation | ( | int | line1, | |
int | line2 | |||
) | [private] |
Definition at line 328 of file Scope.java.
String edu.rice.cs.hpc.data.experiment.scope.Scope.getLineNumberCitation | ( | ) | [protected] |
Definition at line 322 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.firstLineNumber, and edu.rice.cs.hpc.data.experiment.scope.Scope.lastLineNumber.
Referenced by edu.rice.cs.hpc.data.experiment.scope.StatementRangeScope.getShortName(), edu.rice.cs.hpc.data.experiment.scope.LoopScope.getShortName(), and edu.rice.cs.hpc.data.experiment.scope.LineScope.getShortName().
String edu.rice.cs.hpc.data.experiment.scope.Scope.getLineOnlyCitation | ( | int | line1, | |
int | line2 | |||
) | [private] |
Definition at line 347 of file Scope.java.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.getSourceCitation().
MetricValue edu.rice.cs.hpc.data.experiment.scope.Scope.getMetricValue | ( | int | index | ) |
Definition at line 546 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.metrics, edu.rice.cs.hpc.data.experiment.metric.MetricValue.NONE, and edu.rice.cs.hpc.data.experiment.scope.TreeNode.value.
MetricValue edu.rice.cs.hpc.data.experiment.scope.Scope.getMetricValue | ( | BaseMetric | metric | ) |
Definition at line 524 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.experiment, edu.rice.cs.hpc.data.experiment.metric.BaseMetric.getIndex(), edu.rice.cs.hpc.data.experiment.scope.Scope.getMetricValue(), edu.rice.cs.hpc.data.experiment.BaseExperiment.getRootScope(), edu.rice.cs.hpc.data.experiment.metric.MetricValue.getValue(), edu.rice.cs.hpc.data.experiment.metric.MetricValue.setAnnotationValue(), and edu.rice.cs.hpc.data.experiment.scope.TreeNode.value.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.accumulateMetric(), edu.rice.cs.hpc.data.experiment.scope.visitors.ComputedMetricVisitor.addComputedMetrics(), edu.rice.cs.hpc.data.experiment.metric.AggregateMetric.combine(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.CompareScope.compare(), edu.rice.cs.hpc.data.experiment.scope.visitors.ComputedMetricVisitor.ComputedMetricVisitor(), edu.rice.cs.hpc.data.experiment.Experiment.copyMetric(), edu.rice.cs.hpc.data.experiment.Experiment.copyMetricsToPartner(), edu.rice.cs.hpc.data.experiment.scope.visitors.DerivedPercentVisitor.DerivedPercentVisitor(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.disseminateMetric(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.getAnnotationValue(), edu.rice.cs.hpc.data.experiment.scope.Scope.getMetricValue(), edu.rice.cs.hpc.data.experiment.metric.Metric.getValue(), edu.rice.cs.hpc.data.experiment.metric.AggregateMetric.getValue(), edu.rice.cs.hpc.data.experiment.scope.Scope.hasNonzeroMetrics(), edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.insertParentNode(), edu.rice.cs.hpc.data.experiment.scope.visitors.FilterScopeVisitor.mergeMetrics(), edu.rice.cs.hpc.data.experiment.merge.MergeMetric.mergeMetrics(), edu.rice.cs.hpc.data.experiment.scope.visitors.FilterScopeVisitor.mergeMetricToParent(), edu.rice.cs.hpc.data.experiment.scope.visitors.PrintFlatViewScopeVisitor.printMetrics(), edu.rice.cs.hpc.data.experiment.merge.MergeMetric.setMetrics(), edu.rice.cs.hpc.data.experiment.scope.visitors.DerivedPercentVisitor.setPercent(), and edu.rice.cs.hpc.data.experiment.scope.visitors.PercentScopeVisitor.setPercentValue().
MetricValue [] edu.rice.cs.hpc.data.experiment.scope.Scope.getMetricValues | ( | ) |
Definition at line 652 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.metrics.
Referenced by edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.checkInlinedScope(), edu.rice.cs.hpc.data.experiment.scope.visitors.FilterScopeVisitor.FilterScopeVisitor(), and edu.rice.cs.hpc.data.experiment.scope.visitors.FilterScopeVisitor.mergeMetrics().
abstract String edu.rice.cs.hpc.data.experiment.scope.Scope.getName | ( | ) | [pure virtual] |
Implemented in edu.rice.cs.hpc.data.experiment.scope.AlienScope, edu.rice.cs.hpc.data.experiment.scope.CallSiteScope, edu.rice.cs.hpc.data.experiment.scope.FileScope, edu.rice.cs.hpc.data.experiment.scope.GroupScope, edu.rice.cs.hpc.data.experiment.scope.LineScope, edu.rice.cs.hpc.data.experiment.scope.LoadModuleScope, edu.rice.cs.hpc.data.experiment.scope.LoopScope, edu.rice.cs.hpc.data.experiment.scope.ProcedureScope, edu.rice.cs.hpc.data.experiment.scope.RootScope, and edu.rice.cs.hpc.data.experiment.scope.StatementRangeScope.
Referenced by edu.rice.cs.hpc.traceviewer.spaceTimeData.TraceDataVisitor.addProcedure(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.areSameName(), edu.rice.cs.hpc.data.experiment.scope.Scope.decrementCounter(), edu.rice.cs.hpc.viewer.scope.ColumnViewerSorter.doCompare(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.end(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.getCallSiteID(), edu.rice.cs.hpc.viewer.scope.ScopeViewActions.getContent(), edu.rice.cs.hpc.traceviewer.data.graph.CallPath.getFunctionNames(), edu.rice.cs.hpc.viewer.graph.GraphEditorInput.getName(), edu.rice.cs.hpc.data.experiment.scope.Scope.getShortName(), edu.rice.cs.hpc.data.experiment.scope.Scope.getSourceCitation(), edu.rice.cs.hpc.viewer.scope.StyledScopeLabelProvider.getText(), edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.insertParentNode(), edu.rice.cs.hpc.data.experiment.scope.visitors.FilterScopeVisitor.mergeInsert(), edu.rice.cs.hpc.data.experiment.scope.visitors.PrintFlatViewScopeVisitor.printScopeTag(), and edu.rice.cs.hpc.data.experiment.scope.Scope.toString().
TreeNode edu.rice.cs.hpc.data.experiment.scope.TreeNode.getParent | ( | ) | [inherited] |
Returns the parent node.
null
if there are no parent nodes. Definition at line 94 of file TreeNode.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.parent.
Referenced by edu.rice.cs.hpc.viewer.scope.ScopeViewActions.getInputNode(), and edu.rice.cs.hpc.data.experiment.scope.Scope.getParentScope().
Scope edu.rice.cs.hpc.data.experiment.scope.Scope.getParentScope | ( | ) |
Definition at line 431 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.getParent().
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.ExclusiveCallingContextVisitor.accumulateAncestor(), edu.rice.cs.hpc.data.experiment.scope.visitors.ExclusiveCallingContextVisitor.add(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.checkInlinedScope(), edu.rice.cs.hpc.data.experiment.scope.CallerScopeBuilder.createCallChain(), edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.createFlatFileScope(), edu.rice.cs.hpc.data.experiment.scope.filters.InclusiveOnlyMetricPropagationFilter.doPropagation(), edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.findEnclosingProcedure(), edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.getFlatCounterPart(), edu.rice.cs.hpc.traceviewer.data.graph.CallPath.getFunctionNames(), edu.rice.cs.hpc.traceviewer.data.graph.CallPath.getScopeAt(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.isOnlyChild(), edu.rice.cs.hpc.data.experiment.scope.visitors.FilterScopeVisitor.mergeInsert(), edu.rice.cs.hpc.data.experiment.scope.visitors.FilterScopeVisitor.removeChild(), edu.rice.cs.hpc.data.experiment.scope.visitors.AbstractInclusiveMetricsVisitor.up(), edu.rice.cs.hpc.traceviewer.spaceTimeData.TraceDataVisitor.visit(), and edu.rice.cs.hpc.data.experiment.scope.visitors.ExclusiveCallingContextVisitor.visit().
String edu.rice.cs.hpc.data.experiment.scope.Scope.getShortName | ( | ) |
Reimplemented in edu.rice.cs.hpc.data.experiment.scope.LineScope, edu.rice.cs.hpc.data.experiment.scope.LoopScope, and edu.rice.cs.hpc.data.experiment.scope.StatementRangeScope.
Definition at line 197 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.getName().
String edu.rice.cs.hpc.data.experiment.scope.Scope.getSourceCitation | ( | SourceFile | sourceFile, | |
int | line1, | |||
int | line2 | |||
) | [private] |
Definition at line 303 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.getLineOnlyCitation(), edu.rice.cs.hpc.data.experiment.source.SourceFile.getName(), and edu.rice.cs.hpc.data.experiment.scope.Scope.getName().
String edu.rice.cs.hpc.data.experiment.scope.Scope.getSourceCitation | ( | ) | [protected] |
Reimplemented in edu.rice.cs.hpc.data.experiment.scope.LoadModuleScope.
Definition at line 292 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.firstLineNumber, edu.rice.cs.hpc.data.experiment.scope.Scope.lastLineNumber, edu.rice.cs.hpc.data.experiment.scope.Scope.sourceFile, and edu.rice.cs.hpc.data.experiment.scope.Scope.srcCitation.
Referenced by edu.rice.cs.hpc.data.experiment.scope.StatementRangeScope.getName(), edu.rice.cs.hpc.data.experiment.scope.ProcedureScope.getName(), edu.rice.cs.hpc.data.experiment.scope.LoopScope.getName(), edu.rice.cs.hpc.data.experiment.scope.LineScope.getName(), and edu.rice.cs.hpc.data.experiment.scope.Scope.getToolTip().
SourceFile edu.rice.cs.hpc.data.experiment.scope.Scope.getSourceFile | ( | ) |
Definition at line 380 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.sourceFile.
Referenced by edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_L(), edu.rice.cs.hpc.data.experiment.scope.CallerScopeBuilder.createCallChain(), edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.createFlatFileScope(), edu.rice.cs.hpc.data.experiment.scope.ProcedureScope.equals(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.fillContextMenu(), edu.rice.cs.hpc.data.experiment.scope.FileScope.getToolTip(), edu.rice.cs.hpc.viewer.util.Utilities.isFileReadable(), and edu.rice.cs.hpc.data.experiment.scope.visitors.PrintFlatViewScopeVisitor.printScopeTag().
Scope edu.rice.cs.hpc.data.experiment.scope.Scope.getSubscope | ( | int | index | ) |
Definition at line 465 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.getChildAt().
Referenced by edu.rice.cs.hpc.data.experiment.Experiment.accumulateMetricsFromKids(), edu.rice.cs.hpc.data.experiment.Experiment.addDerivedMetric(), edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.addToTree(), edu.rice.cs.hpc.data.experiment.metric.DerivedMetric.DerivedMetric(), edu.rice.cs.hpc.data.experiment.scope.Scope.dfsVisitScopeTree(), edu.rice.cs.hpc.viewer.metric.MetricPropertyDialog.doAction(), edu.rice.cs.hpc.data.experiment.BaseExperiment.getCallerTreeRoot(), edu.rice.cs.hpc.data.experiment.scope.CallerScopeBuilder.mergeCallerPath(), edu.rice.cs.hpc.data.experiment.Experiment.postprocess(), and edu.rice.cs.hpc.data.experiment.metric.DerivedMetric.setExpression().
int edu.rice.cs.hpc.data.experiment.scope.Scope.getSubscopeCount | ( | ) |
Definition at line 453 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.getChildCount().
Referenced by edu.rice.cs.hpc.data.experiment.Experiment.accumulateMetricsFromKids(), edu.rice.cs.hpc.data.experiment.Experiment.addDerivedMetric(), edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.addToTree(), edu.rice.cs.hpc.data.experiment.scope.Scope.dfsVisitScopeTree(), edu.rice.cs.hpc.data.experiment.BaseExperiment.getCallerTreeRoot(), edu.rice.cs.hpc.data.experiment.scope.CallerScopeBuilder.mergeCallerPath(), and edu.rice.cs.hpc.data.experiment.Experiment.postprocess().
String edu.rice.cs.hpc.data.experiment.scope.Scope.getToolTip | ( | ) |
Reimplemented in edu.rice.cs.hpc.data.experiment.scope.FileScope.
Definition at line 258 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.getSourceCitation().
Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.fillContextMenu().
Object edu.rice.cs.hpc.data.experiment.scope.TreeNode.getValue | ( | ) | [inherited] |
Returns the value held by this node.
Definition at line 103 of file TreeNode.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.value.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.getCCTIndex().
boolean edu.rice.cs.hpc.data.experiment.scope.TreeNode.hasChildren | ( | ) | [inherited] |
Returns whether the tree has any children.
true
if its array of children is not null
and is non-empty; false
otherwise. Definition at line 114 of file TreeNode.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.children.
Referenced by edu.rice.cs.hpc.viewer.scope.flat.FlatScopeViewActions.flatten(), and edu.rice.cs.hpc.viewer.scope.bottomup.CallerViewContentProvider.hasChildren().
static final int edu.rice.cs.hpc.data.experiment.scope.TreeNode.hashCode | ( | final Object | object | ) | [static, inherited] |
Provides a hash code for the object -- defending against null
.
object | The object for which a hash code is required. |
object.hashCode
or 0
if object
if null
. Definition at line 219 of file TreeNode.java.
int edu.rice.cs.hpc.data.experiment.scope.Scope.hashCode | ( | ) |
Reimplemented from edu.rice.cs.hpc.data.experiment.scope.TreeNode.
Definition at line 282 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.flat_node_index.
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.addChild(), edu.rice.cs.hpc.data.experiment.scope.CallerScopeBuilder.createCallChain(), edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.createFlatFileScope(), edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.createFlatModuleScope(), edu.rice.cs.hpc.data.experiment.scope.visitors.CallersViewScopeVisitor.createProcedureIfNecessary(), edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.getID(), edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.isTheSameScope(), and edu.rice.cs.hpc.data.experiment.scope.visitors.PrintFlatViewScopeVisitor.printScopeTag().
boolean edu.rice.cs.hpc.data.experiment.scope.Scope.hasMetrics | ( | ) |
Definition at line 487 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.metrics.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.copyMetrics(), and edu.rice.cs.hpc.data.experiment.scope.Scope.hasNonzeroMetrics().
boolean edu.rice.cs.hpc.data.experiment.scope.Scope.hasNonzeroMetrics | ( | ) |
Definition at line 492 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.getMetricValue(), edu.rice.cs.hpc.data.experiment.scope.Scope.hasMetrics(), and edu.rice.cs.hpc.data.experiment.scope.Scope.metrics.
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.CallersViewScopeVisitor.visit().
void edu.rice.cs.hpc.data.experiment.scope.Scope.incrementCounter | ( | ) |
Definition at line 207 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.iCounter.
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.addCostIfNecessary(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.checkInlinedScope(), edu.rice.cs.hpc.data.experiment.scope.visitors.CallersViewScopeVisitor.CombineCallerScopeMetric.combine(), edu.rice.cs.hpc.data.experiment.metric.AbstractCombineMetric.combine_internal(), and edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.setMergedNodes().
boolean edu.rice.cs.hpc.data.experiment.scope.Scope.isCounterPositif | ( | ) |
Definition at line 227 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.iCounter.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.decrementCounter().
boolean edu.rice.cs.hpc.data.experiment.scope.Scope.isCounterZero | ( | ) |
Definition at line 231 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.iCounter.
Referenced by edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.checkInlinedScope(), edu.rice.cs.hpc.data.experiment.scope.visitors.CallersViewScopeVisitor.CombineCallerScopeMetric.combine(), edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.IncrementalCombineMetricUsingCopy.combine(), edu.rice.cs.hpc.data.experiment.metric.AbstractCombineMetric.combine_internal(), edu.rice.cs.hpc.data.experiment.scope.visitors.BaseDuplicateScopeTreesVisitor.mergeInsert(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.mergeNode(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.mergeTree(), and edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.setMergedNodes().
boolean edu.rice.cs.hpc.data.experiment.scope.Scope.isExperimentHasMetrics | ( | ) | [protected] |
Definition at line 816 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.experiment.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.combine(), edu.rice.cs.hpc.data.experiment.scope.Scope.ensureMetricStorage(), edu.rice.cs.hpc.data.experiment.scope.Scope.getCombinedValues(), and edu.rice.cs.hpc.data.experiment.scope.Scope.makeMetricValueArray().
MetricValue [] edu.rice.cs.hpc.data.experiment.scope.Scope.makeMetricValueArray | ( | ) | [private] |
Definition at line 771 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.experiment, edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetricCount(), edu.rice.cs.hpc.data.experiment.scope.Scope.isExperimentHasMetrics(), and edu.rice.cs.hpc.data.experiment.metric.MetricValue.NONE.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.ensureMetricStorage().
void edu.rice.cs.hpc.data.experiment.scope.TreeNode.remove | ( | int | index | ) | [inherited] |
Remove a child for a given index.
index | : index of the scope to be removed |
Definition at line 151 of file TreeNode.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.children.
void edu.rice.cs.hpc.data.experiment.scope.TreeNode.remove | ( | TreeNode | child | ) | [inherited] |
Remove a child.
The child hash code (which is the cct) has to be unique.
Otherwise, it will remove incorrect child.
child | : the child to be removed |
Definition at line 141 of file TreeNode.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.children.
Referenced by edu.rice.cs.hpc.data.experiment.Experiment.filter_finalize(), and edu.rice.cs.hpc.data.experiment.scope.visitors.FilterScopeVisitor.removeChild().
void edu.rice.cs.hpc.data.experiment.scope.Scope.safeCombine | ( | Scope | source, | |
MetricValuePropagationFilter | filter | |||
) |
Definition at line 737 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.combine(), and edu.rice.cs.hpc.data.experiment.scope.Scope.ensureMetricStorage().
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.CallersViewScopeVisitor.CombineCallerScopeMetric.combine(), edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.CombineMetricUsingCopyNoCondition.combine(), edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.IncrementalCombineMetricUsingCopy.combine(), edu.rice.cs.hpc.data.experiment.metric.CombineMetricUsingCopy.combine(), and edu.rice.cs.hpc.data.experiment.metric.AbstractCombineMetric.combine_internal().
void edu.rice.cs.hpc.data.experiment.scope.Scope.setCounter | ( | int | counter | ) |
Definition at line 219 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.iCounter.
Referenced by edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.CombineMetricUsingCopyNoCondition.combine(), edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.merge(), and edu.rice.cs.hpc.data.experiment.scope.visitors.ResetCounterVisitor.reset().
void edu.rice.cs.hpc.data.experiment.scope.Scope.setCpid | ( | int | _cpid | ) |
Definition at line 249 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.cpid.
Referenced by edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_PF(), and edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_S_internal().
void edu.rice.cs.hpc.data.experiment.scope.Scope.setExperiment | ( | BaseExperiment | exp | ) |
Definition at line 510 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.experiment.
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.BaseDuplicateScopeTreesVisitor.addMetricColumns(), and edu.rice.cs.hpc.viewer.scope.flat.FlatScopeViewActions.flatten().
void edu.rice.cs.hpc.data.experiment.scope.Scope.setMetricValue | ( | int | index, | |
MetricValue | value | |||
) |
Definition at line 563 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.ensureMetricStorage(), and edu.rice.cs.hpc.data.experiment.scope.Scope.metrics.
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.ComputedMetricVisitor.addComputedMetrics(), edu.rice.cs.hpc.data.experiment.metric.AggregateMetric.combine(), edu.rice.cs.hpc.data.experiment.Experiment.copyMetric(), edu.rice.cs.hpc.data.experiment.Experiment.copyMetricsToPartner(), edu.rice.cs.hpc.data.experiment.merge.TreeSimilarity.disseminateMetric(), edu.rice.cs.hpc.data.experiment.xml.ExperimentBuilder2.do_M(), edu.rice.cs.hpc.data.experiment.scope.visitors.FilterScopeVisitor.mergeMetrics(), edu.rice.cs.hpc.data.experiment.merge.MergeMetric.mergeMetrics(), edu.rice.cs.hpc.data.experiment.scope.visitors.FilterScopeVisitor.mergeMetricToParent(), edu.rice.cs.hpc.data.experiment.merge.MergeMetric.setMetrics(), edu.rice.cs.hpc.data.experiment.metric.AggregateMetric.setScopeValue(), edu.rice.cs.hpc.data.experiment.scope.visitors.DerivedMetricVisitor.up(), and edu.rice.cs.hpc.data.experiment.scope.visitors.DerivedMetricVisitor.visit().
void edu.rice.cs.hpc.data.experiment.scope.Scope.setMetricValues | ( | MetricValue | values[] | ) |
Definition at line 660 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.metrics.
Referenced by edu.rice.cs.hpc.data.experiment.metric.CombineMetricUsingCopy.combine(), and edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.getScopeOfCombineMetrics().
void edu.rice.cs.hpc.data.experiment.scope.TreeNode.setParent | ( | final TreeNode | parent | ) | [inherited] |
Sets the parent for this node.
parent | The parent node; may be null . |
Definition at line 162 of file TreeNode.java.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.setParentScope().
void edu.rice.cs.hpc.data.experiment.scope.Scope.setParentScope | ( | Scope | parentScope | ) |
Definition at line 441 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.TreeNode.setParent().
Referenced by edu.rice.cs.hpc.data.experiment.scope.visitors.FlatViewScopeVisitor.addChild(), edu.rice.cs.hpc.data.experiment.scope.visitors.BaseDuplicateScopeTreesVisitor.addMetricColumns(), edu.rice.cs.hpc.data.experiment.scope.CallerScopeBuilder.addNewPathIntoTree(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.beginScope(), edu.rice.cs.hpc.data.experiment.Experiment.beginScope(), and edu.rice.cs.hpc.data.experiment.scope.visitors.CallersViewScopeVisitor.createProcedureIfNecessary().
String edu.rice.cs.hpc.data.experiment.scope.Scope.toString | ( | ) |
Definition at line 276 of file Scope.java.
References edu.rice.cs.hpc.data.experiment.scope.Scope.getName().
Definition at line 81 of file Scope.java.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.backupMetricValues(), edu.rice.cs.hpc.data.experiment.scope.Scope.dispose(), and edu.rice.cs.hpc.data.experiment.scope.Scope.getCombinedValues().
int edu.rice.cs.hpc.data.experiment.scope.Scope.cpid [protected] |
Definition at line 94 of file Scope.java.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.getCpid(), edu.rice.cs.hpc.data.experiment.scope.Scope.Scope(), and edu.rice.cs.hpc.data.experiment.scope.Scope.setCpid().
The experiment owning this scope.
Definition at line 65 of file Scope.java.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.backupMetricValues(), edu.rice.cs.hpc.data.experiment.scope.CallSiteScope.CallSiteScope(), edu.rice.cs.hpc.data.experiment.scope.Scope.combine(), edu.rice.cs.hpc.data.experiment.scope.Scope.dispose(), edu.rice.cs.hpc.data.experiment.scope.StatementRangeScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.ProcedureScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LoopScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LoadModuleScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LineScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.GroupScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.FileScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.AlienScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.Scope.ensureMetricStorage(), edu.rice.cs.hpc.data.experiment.scope.Scope.getCombinedValues(), edu.rice.cs.hpc.data.experiment.scope.Scope.getExperiment(), edu.rice.cs.hpc.data.experiment.scope.Scope.getMetricValue(), edu.rice.cs.hpc.data.experiment.scope.Scope.isExperimentHasMetrics(), edu.rice.cs.hpc.data.experiment.scope.Scope.makeMetricValueArray(), and edu.rice.cs.hpc.data.experiment.scope.Scope.setExperiment().
int edu.rice.cs.hpc.data.experiment.scope.Scope.firstLineNumber [protected] |
The first line number of this scope.
Definition at line 74 of file Scope.java.
Referenced by edu.rice.cs.hpc.data.experiment.scope.CallSiteScope.CallSiteScope(), edu.rice.cs.hpc.data.experiment.scope.StatementRangeScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.ProcedureScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LoopScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LineScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.AlienScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.Scope.getFirstLineNumber(), edu.rice.cs.hpc.data.experiment.scope.LineScope.getLineNumber(), edu.rice.cs.hpc.data.experiment.scope.Scope.getLineNumberCitation(), edu.rice.cs.hpc.data.experiment.scope.Scope.getSourceCitation(), edu.rice.cs.hpc.data.experiment.scope.LineScope.isequal(), and edu.rice.cs.hpc.data.experiment.scope.Scope.Scope().
int edu.rice.cs.hpc.data.experiment.scope.Scope.flat_node_index [protected] |
the scope identifier
Definition at line 71 of file Scope.java.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.decrementCounter(), edu.rice.cs.hpc.data.experiment.scope.StatementRangeScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.ProcedureScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LoopScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LoadModuleScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LineScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.FileScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.CallSiteScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.CallSiteScopeCallerView.getAllChildren(), edu.rice.cs.hpc.data.experiment.scope.Scope.getFlatIndex(), edu.rice.cs.hpc.data.experiment.scope.Scope.hashCode(), and edu.rice.cs.hpc.data.experiment.scope.Scope.Scope().
int edu.rice.cs.hpc.data.experiment.scope.Scope.iCounter [private] |
FIXME: this variable is only used for the creation of callers view to count the number of instances.
To be removed in the future
Definition at line 90 of file Scope.java.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.decrementCounter(), edu.rice.cs.hpc.data.experiment.scope.Scope.getCounter(), edu.rice.cs.hpc.data.experiment.scope.Scope.incrementCounter(), edu.rice.cs.hpc.data.experiment.scope.Scope.isCounterPositif(), edu.rice.cs.hpc.data.experiment.scope.Scope.isCounterZero(), edu.rice.cs.hpc.data.experiment.scope.Scope.Scope(), and edu.rice.cs.hpc.data.experiment.scope.Scope.setCounter().
int edu.rice.cs.hpc.data.experiment.scope.Scope.idMax = 0 [static, protected] |
The current maximum number of ID for all scopes.
Definition at line 62 of file Scope.java.
Definition at line 97 of file Scope.java.
Referenced by edu.rice.cs.hpc.viewer.util.Utilities.isFileReadable().
int edu.rice.cs.hpc.data.experiment.scope.Scope.lastLineNumber [protected] |
The last line number of this scope.
Definition at line 77 of file Scope.java.
Referenced by edu.rice.cs.hpc.data.experiment.scope.CallSiteScope.CallSiteScope(), edu.rice.cs.hpc.data.experiment.scope.StatementRangeScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.ProcedureScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LoopScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.AlienScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.Scope.getLastLineNumber(), edu.rice.cs.hpc.data.experiment.scope.Scope.getLineNumberCitation(), edu.rice.cs.hpc.data.experiment.scope.LineScope.getName(), edu.rice.cs.hpc.data.experiment.scope.Scope.getSourceCitation(), edu.rice.cs.hpc.data.experiment.scope.LineScope.isequal(), and edu.rice.cs.hpc.data.experiment.scope.Scope.Scope().
The metric values associated with this scope.
Definition at line 80 of file Scope.java.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.accumulateMetricValue(), edu.rice.cs.hpc.data.experiment.scope.Scope.backupMetricValues(), edu.rice.cs.hpc.data.experiment.scope.Scope.copyMetrics(), edu.rice.cs.hpc.data.experiment.scope.Scope.dispose(), edu.rice.cs.hpc.data.experiment.scope.Scope.ensureMetricStorage(), edu.rice.cs.hpc.data.experiment.scope.Scope.getCombinedValues(), edu.rice.cs.hpc.data.experiment.scope.Scope.getMetricValue(), edu.rice.cs.hpc.data.experiment.scope.Scope.getMetricValues(), edu.rice.cs.hpc.data.experiment.scope.Scope.hasMetrics(), edu.rice.cs.hpc.data.experiment.scope.Scope.hasNonzeroMetrics(), edu.rice.cs.hpc.data.experiment.scope.Scope.setMetricValue(), and edu.rice.cs.hpc.data.experiment.scope.Scope.setMetricValues().
final int edu.rice.cs.hpc.data.experiment.scope.Scope.NO_LINE_NUMBER = -169 [static] |
The value used to indicate "no line number".
Definition at line 55 of file Scope.java.
final int edu.rice.cs.hpc.data.experiment.scope.Scope.SOURCE_CODE_AVAILABLE = 1 [static] |
Definition at line 58 of file Scope.java.
final int edu.rice.cs.hpc.data.experiment.scope.Scope.SOURCE_CODE_NOT_AVAILABLE = 2 [static] |
Definition at line 59 of file Scope.java.
final int edu.rice.cs.hpc.data.experiment.scope.Scope.SOURCE_CODE_UNKNOWN = 0 [static] |
Definition at line 57 of file Scope.java.
The source file containing this scope.
Definition at line 68 of file Scope.java.
Referenced by edu.rice.cs.hpc.data.experiment.scope.CallSiteScope.CallSiteScope(), edu.rice.cs.hpc.data.experiment.scope.StatementRangeScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.ProcedureScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LoopScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LoadModuleScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LineScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.FileScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.AlienScope.duplicate(), edu.rice.cs.hpc.data.experiment.scope.LineScope.getName(), edu.rice.cs.hpc.data.experiment.scope.FileScope.getName(), edu.rice.cs.hpc.data.experiment.scope.Scope.getSourceCitation(), edu.rice.cs.hpc.data.experiment.scope.Scope.getSourceFile(), edu.rice.cs.hpc.data.experiment.scope.LineScope.isequal(), and edu.rice.cs.hpc.data.experiment.scope.Scope.Scope().
String edu.rice.cs.hpc.data.experiment.scope.Scope.srcCitation [protected] |
source citation
Definition at line 84 of file Scope.java.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.dispose(), edu.rice.cs.hpc.data.experiment.scope.Scope.getSourceCitation(), and edu.rice.cs.hpc.data.experiment.scope.Scope.Scope().
Object edu.rice.cs.hpc.data.experiment.scope.TreeNode.value [protected, inherited] |
The value contained in this node.
This value may be anything.
Definition at line 54 of file TreeNode.java.
Referenced by edu.rice.cs.hpc.data.experiment.scope.Scope.backupMetricValues(), edu.rice.cs.hpc.data.experiment.scope.TreeNode.dispose(), edu.rice.cs.hpc.data.experiment.scope.TreeNode.equals(), edu.rice.cs.hpc.data.experiment.scope.Scope.getMetricValue(), edu.rice.cs.hpc.data.experiment.scope.TreeNode.getValue(), and edu.rice.cs.hpc.data.experiment.scope.TreeNode.hashCode().