Examples of FlatProfileEntry


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

    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);
        console.displaysMethod(ProfileFixtures.printf);
View Full Code Here

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

    @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);
        console.displaysMethod(ProfileFixtures.printf);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.