Package com.insightfullogic.honest_profiler.core.collector

Examples of com.insightfullogic.honest_profiler.core.collector.ProfileNode


    private final FakeConsole console = new FakeConsole();
    private final ConsoleUserInterface ui = new ConsoleUserInterface(console);

    @Test
    public void rendersSingleMethod() {
        ProfileNode root = new ProfileNode(ProfileFixtures.printf, 1.0);
        Profile profile = new Profile(2, asList(new FlatProfileEntry(ProfileFixtures.printf, 1.0, 0.0)), toTrees(root));

        ui.accept(profile);

        console.isShowingTraces(2);
View Full Code Here


        return asList(new ProfileTree(0L, root, 1));
    }

    @Test
    public void rendersMultiBranchProfile() {
        ProfileNode left = new ProfileNode(ProfileFixtures.println, 0.5);
        ProfileNode right = new ProfileNode(ProfileFixtures.append, 0.5);
        ProfileNode root = new ProfileNode(ProfileFixtures.printf, 1, asList(left, right));
        Profile profile = new Profile(2, asList(new FlatProfileEntry(ProfileFixtures.printf, 1.0, 0.0)), toTrees(root));

        ui.accept(profile);

        console.isShowingTraces(2);
View Full Code Here

TOP

Related Classes of com.insightfullogic.honest_profiler.core.collector.ProfileNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.