Package edu.umd.cs.findbugs.log
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetProfile
(Class<?> clazz) void
report
(Comparator<Class<?>> reportComparator, Predicate<Profiler.Profile> filter, PrintStream stream) Report summarized profile to givenPrintStream
.void
Write this object to given XMLOutput.
-
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:XMLWriteable
Write this object to given XMLOutput.- Specified by:
writeXML
in interfaceXMLWriteable
- Parameters:
xmlOutput
- the XMLOutput for the document- Throws:
IOException
-
getProfile
- Specified by:
getProfile
in interfaceIProfiler
-