Package org.auraframework.test.perf.rdp.CPUProfilerAnalyzer

Examples of org.auraframework.test.perf.rdp.CPUProfilerAnalyzer.MaxDepthCollector


        assertEquals(1, metrics.getLong("maxDepth"));
    }

    public void testMaxDepthCollector() {
        // 1 6 2 5 3 4 ==> 5
        MaxDepthCollector collector = new MaxDepthCollector(3);
        collector.add(1);
        collector.add(6);
        collector.add(2);
        collector.add(5);
        collector.add(3);
        collector.add(4);
        assertEquals(5, collector.getAverage());

        // 6 7 6 7 6 6 ==> 7
        collector = new MaxDepthCollector(3);
        collector.add(6);
        collector.add(7);
        collector.add(6);
        collector.add(7);
        collector.add(6);
        collector.add(6);
        assertEquals(7, collector.getAverage());
    }
View Full Code Here

TOP

Related Classes of org.auraframework.test.perf.rdp.CPUProfilerAnalyzer.MaxDepthCollector

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.