Package com.insightfullogic.honest_profiler.core.collector

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


    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


    @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

    @Override
    public void run() {
        try {
            while (true) {
                final Profile profile = incomingProfile.get();
                if (profile != null) {
                    listener.accept(profile);
                    incomingProfile.compareAndSet(profile, null);
                }
View Full Code Here

TOP

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

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.