Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Invalid metric index when merging databases #168

@laksono

Description

@laksono

Stack traces:

Experiment(BaseExperimentWithMetrics).getMetric(int) line: 302	
MetricVarMap.getValue(String) line: 83	
VarNode.eval(VarMap, FuncMap) line: 16	
DivNode.eval(VarMap, FuncMap) line: 17	
AggregateMetric.getValue(IMetricScope) line: 153	
Experiment(BaseExperimentWithMetrics).getNonEmptyMetricIDs(Scope) line: 277	
FlatScopeTreeData(ScopeTreeData).<init>(RootScope, IMetricManager, boolean) line: 48	
FlatScopeTreeData(ScopeTreeData).<init>(RootScope, IMetricManager) line: 54	
FlatScopeTreeData.<init>(RootScope, IMetricManager) line: 12	
FlatPart.getTreeData(RootScope, IMetricManager) line: 122	
FlatPart(AbstractTableView).createTable(IMetricManager) line: 233	
FlatPart(AbstractTableView).setInput(Object) line: 216	
FlatPart.setInput(Object) line: 71	
ProfilePart$RunViewCreation.run() line: 421	

The code:

	public BaseMetric getMetric(int index)
	{		
		BaseMetric metric = mapIndexToMetric.get(index);
		if (metric != null)
			return metric;

		// not found
		throw new RuntimeException("Invalid metric index: " + index);
	}

Variables:

  • index 10
  • mapIndexToMetric IntObjectHashMap (id=321) {642=642. 642: 2-llc-loads:CfVar (I) , ... , 639=639. 639: 2-llc-loads:StdDev (I) }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingresolvedResolved, but need to be tested and confirmed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions