Search in sources :

Example 1 with FlatGenerator

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

Example 2 with FlatGenerator

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

Example 3 with FlatGenerator

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

Example 4 with FlatGenerator

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

Example 5 with FlatGenerator

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

Aggregations

FlatGenerator (com.insightfullogic.honest_profiler.framework.generator.FlatGenerator)5 Test (org.junit.Test)3 Entry (com.insightfullogic.honest_profiler.core.aggregation.result.straight.Entry)2 FlatDiff (com.insightfullogic.honest_profiler.core.aggregation.result.diff.FlatDiff)1 FlatCheckAdapter (com.insightfullogic.honest_profiler.framework.checker.FlatCheckAdapter)1 FlatDiffCheckAdapter (com.insightfullogic.honest_profiler.framework.checker.FlatDiffCheckAdapter)1