Class ProfileSummary
java.lang.Object
edu.umd.cs.findbugs.log.ProfileSummary
- All Implemented Interfaces:
IProfiler, XMLWriteable
A class that summarize profile recorded by multiple Profiler instances. SpotBugs uses this class to summarize
profiles from all worker threads.
- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProfile(Class<?> clazz) voidreport(Comparator<Class<?>> reportComparator, Predicate<Profiler.Profile> filter, PrintStream stream) Report summarized profile to givenPrintStream.voidWrite this object to given XMLOutput.
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
profilers
-
-
Constructor Details
-
ProfileSummary
-
-
Method Details
-
report
public void report(Comparator<Class<?>> reportComparator, Predicate<Profiler.Profile> filter, PrintStream stream) Report summarized profile to given
PrintStream.This method does not check the state of given
PrintStream, and it is caller's duty to check it byPrintStream.checkError().- Parameters:
reportComparator-filter-stream-
-
writeXML
Description copied from interface:XMLWriteableWrite this object to given XMLOutput.- Specified by:
writeXMLin interfaceXMLWriteable- Parameters:
xmlOutput- the XMLOutput for the document- Throws:
IOException
-
getProfile
- Specified by:
getProfilein interfaceIProfiler
-