use of com.insightfullogic.honest_profiler.framework.generator.TreeGenerator in project honest-profiler by jvm-profiling-tools.
the class TreeDiffAggregatorTest method testScenario.
// Actual Test Method
@Test
public void testScenario() {
TreeGenerator baseGen;
TreeGenerator newGen;
baseGen = new TreeGenerator(threadGrouping, frameGrouping);
baseScenario.executeAndEnd(baseGen);
newGen = new TreeGenerator(threadGrouping, frameGrouping);
newScenario.executeAndEnd(newGen);
TreeDiff diff = new TreeDiff();
diff.set(baseGen.getTree(), newGen.getTree());
baseScenario.checkTreeDiffAggregation(newScenario, new TreeDiffCheckAdapter(diff));
}
use of com.insightfullogic.honest_profiler.framework.generator.TreeGenerator in project honest-profiler by jvm-profiling-tools.
the class TreeFilterTest method testScenario.
// Actual Test Method
@Test
public void testScenario() {
TreeGenerator gen = new TreeGenerator(threadGrouping, frameGrouping);
scenario.executeAndEnd(gen);
try {
check(gen, filterScenario.getTarget(), filterScenario.getComparison(), filterScenario.getValue(), filterScenario.getScenarioFilter());
} catch (AssertionError ae) {
throw new AssertionError(filterScenario.toString() + " Failed ->", ae);
}
}
use of com.insightfullogic.honest_profiler.framework.generator.TreeGenerator in project honest-profiler by jvm-profiling-tools.
the class DescendantFlatAggregatorTest method get.
private Flat get(SimplifiedLogScenario scenario, ThreadGrouping tg, FrameGrouping fg, ThreadMeta thread, StackFrame... frames) {
DescendantFlatAggregator aggregator = new DescendantFlatAggregator();
TreeGenerator gen = new TreeGenerator(tg, fg);
scenario.executeAndEnd(gen);
Node node = gen.getNode(keysFor(tg, fg, thread, frames));
return aggregator.aggregate(node);
}
use of com.insightfullogic.honest_profiler.framework.generator.TreeGenerator in project honest-profiler by jvm-profiling-tools.
the class TreeProfileAggregatorTest method testScenario.
// Actual Test Method
@Test
public void testScenario() {
TreeGenerator gen;
gen = new TreeGenerator(threadGrouping, frameGrouping);
scenario.executeAndEnd(gen);
scenario.checkTreeAggregation(new TreeCheckAdapter(gen.getTree()));
}
Aggregations