Package com.insightfullogic.honest_profiler.core.parser

Examples of com.insightfullogic.honest_profiler.core.parser.Method


    public void logCollectorShouldCopeWithUnexpectedFrames() {
        final Deque<Profile> found = new ArrayDeque<>();
        final LogCollector collector = new LogCollector(found::add, true);

        for (int i = 0; i < 10; i++) {
            collector.handle(new Method(i, "a", "Bass", "c" + i));
        }

        assertTrue("methods don't cause profiles", found.isEmpty());

        int threadId = 0;
View Full Code Here


    public ProfileNode normalise(LongFunction<Method> nameRegistry) {
        return normaliseBy(visits, nameRegistry);
    }

    private ProfileNode normaliseBy(int parentVisits, LongFunction<Method> nameRegistry) {
        Method method = nameRegistry.apply(methodId);

        double timeShare = (double) visits / parentVisits;

        List<ProfileNode> children
            = childrenByMethodId.values()
View Full Code Here

    public static String renderTimeShare(double timeShare) {
        return MessageFormat.format("{0,number,0.00%}", timeShare);
    }

    public static SimpleObjectProperty<String> method(CellDataFeatures<FlatProfileEntry, String> features) {
        Method method = features.getValue().getMethod();
        String representation = renderMethod(method);
        return new ReadOnlyObjectWrapper<>(representation);
    }
View Full Code Here

                         .map(this::toFlatProfileEntry)
                         .collect(toList());
    }

    private FlatProfileEntry toFlatProfileEntry(Entry<Long, CallCounts> entry) {
        Method method = methodNames.get(entry.getKey());
        final CallCounts callCounts = entry.getValue();
        double totalTimeShare = (double) callCounts.timeAppeared / traceCount;
        double selfTimeShare = (double) callCounts.timeInvokingThis / traceCount;
        return new FlatProfileEntry(method, totalTimeShare, selfTimeShare);
    }
View Full Code Here

TOP

Related Classes of com.insightfullogic.honest_profiler.core.parser.Method

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.