Search in sources :

Example 1 with TreeGenerator

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));
}
Also used : TreeDiff(com.insightfullogic.honest_profiler.core.aggregation.result.diff.TreeDiff) TreeDiffCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.TreeDiffCheckAdapter) TreeGenerator(com.insightfullogic.honest_profiler.framework.generator.TreeGenerator) Test(org.junit.Test)

Example 2 with TreeGenerator

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);
    }
}
Also used : TreeGenerator(com.insightfullogic.honest_profiler.framework.generator.TreeGenerator) Test(org.junit.Test)

Example 3 with TreeGenerator

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);
}
Also used : Node(com.insightfullogic.honest_profiler.core.aggregation.result.straight.Node) TreeGenerator(com.insightfullogic.honest_profiler.framework.generator.TreeGenerator)

Example 4 with TreeGenerator

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()));
}
Also used : TreeCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.TreeCheckAdapter) TreeGenerator(com.insightfullogic.honest_profiler.framework.generator.TreeGenerator) Test(org.junit.Test)

Aggregations

TreeGenerator (com.insightfullogic.honest_profiler.framework.generator.TreeGenerator)4 Test (org.junit.Test)3 TreeDiff (com.insightfullogic.honest_profiler.core.aggregation.result.diff.TreeDiff)1 Node (com.insightfullogic.honest_profiler.core.aggregation.result.straight.Node)1 TreeCheckAdapter (com.insightfullogic.honest_profiler.framework.checker.TreeCheckAdapter)1 TreeDiffCheckAdapter (com.insightfullogic.honest_profiler.framework.checker.TreeDiffCheckAdapter)1