Package edu.umd.cs.findbugs.log
Class Profiler
java.lang.Object
edu.umd.cs.findbugs.log.Profiler
- All Implemented Interfaces:
XMLWriteable
- Author:
- pugh
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the previously accumulated data.voidvoidendContext(Object context) getProfile(Class<?> c) voidreport()Default implementation usesProfiler.TotalTimeComparatorand prints out class statistics based on total time spent fot a classvoidreport(Comparator<Class<?>> reportComparator, Profiler.Filter filter, PrintStream stream) voidvoidstartContext(Object context) voidWrite this object to given XMLOutput.
-
Constructor Details
-
Profiler
public Profiler()
-
-
Method Details
-
startContext
-
endContext
-
start
-
end
-
report
public void report()Default implementation usesProfiler.TotalTimeComparatorand prints out class statistics based on total time spent fot a class -
report
public void report(Comparator<Class<?>> reportComparator, Profiler.Filter filter, PrintStream stream) - Parameters:
reportComparator- non null comparator instance which will be used to sort the report statistics
-
clear
public void clear()Clears the previously accumulated data. This method is public because it can be accessed explicitely from clients (like Eclipse).There is no need to clear profiler data after each run, because a new profiler instance is used for each analysis run (see
FindBugs2.execute()). -
getProfile
-
writeXML
Description copied from interface:XMLWriteableWrite this object to given XMLOutput.- Specified by:
writeXMLin interfaceXMLWriteable- Parameters:
xmlOutput- the XMLOutput for the document- Throws:
IOException
-