use of com.insightfullogic.honest_profiler.framework.generator.FlatGenerator in project honest-profiler by jvm-profiling-tools.
the class FlatDiffAggregatorTest method testScenario.
// Actual Test Method
@Test
public void testScenario() {
FlatGenerator baseGen;
FlatGenerator newGen;
baseGen = new FlatGenerator(threadGrouping, frameGrouping);
baseScenario.executeAndEnd(baseGen);
newGen = new FlatGenerator(threadGrouping, frameGrouping);
newScenario.executeAndEnd(newGen);
FlatDiff diff = new FlatDiff();
diff.set(baseGen.getFlat(), newGen.getFlat());
baseScenario.checkFlatDiffAggregation(newScenario, new FlatDiffCheckAdapter(diff));
}
use of com.insightfullogic.honest_profiler.framework.generator.FlatGenerator in project honest-profiler by jvm-profiling-tools.
the class AncestorTreeAggregatorTest method get.
private Tree get(SimplifiedLogScenario scenario, ThreadGrouping tg, FrameGrouping fg, StackFrame frame) {
AncestorTreeAggregator aggregator = new AncestorTreeAggregator();
FlatGenerator gen = new FlatGenerator(tg, fg);
scenario.executeAndEnd(gen);
Entry entry = gen.getEntry(keyFor(fg, frame));
return aggregator.aggregate(entry);
}
use of com.insightfullogic.honest_profiler.framework.generator.FlatGenerator in project honest-profiler by jvm-profiling-tools.
the class DescendantTreeAggregatorTest method get.
private Tree get(SimplifiedLogScenario scenario, ThreadGrouping tg, FrameGrouping fg, StackFrame frame) {
DescendantTreeAggregator aggregator = new DescendantTreeAggregator();
FlatGenerator gen = new FlatGenerator(tg, fg);
scenario.executeAndEnd(gen);
Entry entry = gen.getEntry(keyFor(fg, frame));
return aggregator.aggregate(entry);
}
use of com.insightfullogic.honest_profiler.framework.generator.FlatGenerator in project honest-profiler by jvm-profiling-tools.
the class FlatProfileAggregatorTest method testScenario.
// Actual Test Method
@Test
public void testScenario() {
FlatGenerator gen;
gen = new FlatGenerator(threadGrouping, frameGrouping);
scenario.executeAndEnd(gen);
scenario.checkFlatAggregation(new FlatCheckAdapter(gen.getFlat()));
}
use of com.insightfullogic.honest_profiler.framework.generator.FlatGenerator in project honest-profiler by jvm-profiling-tools.
the class FlatFilterTest method testScenario.
// Actual Test Method
@Test
public void testScenario() {
FlatGenerator gen = new FlatGenerator(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);
}
}
Aggregations