Package edu.umd.cs.findbugs.log.Profiler

Examples of edu.umd.cs.findbugs.log.Profiler.Profile


        PrintWriter pw = new PrintWriter(out);

        ProjectStats stats = bugCollection.getProjectStats();
        Footprint footprint = new Footprint(stats.getBaseFootprint());
        Profiler profiler = stats.getProfiler();
        Profile profile = profiler.getProfile(ClassDataAnalysisEngine.class);
        long totalClassReadTime = TimeUnit.MILLISECONDS.convert(profile.getTotalTime(), TimeUnit.NANOSECONDS);
        long totalTime = TimeUnit.MILLISECONDS.convert(footprint.getClockTime(), TimeUnit.MILLISECONDS);

        double classReadSpeed = totalClassReadTime > 0? data.byteSize * 1000 / totalClassReadTime : 0;
        double classCountSpeed = totalTime > 0? data.classCount * 1000 / totalTime : 0;
        double classPart = totalTime > 0? totalClassReadTime * 100 / totalTime : 0;
View Full Code Here

TOP

Related Classes of edu.umd.cs.findbugs.log.Profiler.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.