public class ProfileSummary extends java.lang.Object implements IProfiler, XMLWriteable
A class that summarize profile recorded by multiple Profiler
instances. SpotBugs uses this class to summarize
profiles from all worker threads.
Constructor and Description |
---|
ProfileSummary(Profiler... profilers) |
Modifier and Type | Method and Description |
---|---|
Profiler.Profile |
getProfile(java.lang.Class<?> clazz) |
void |
report(java.util.Comparator<java.lang.Class<?>> reportComparator,
java.util.function.Predicate<Profiler.Profile> filter,
java.io.PrintStream stream)
Report summarized profile to given
PrintStream . |
void |
writeXML(XMLOutput xmlOutput)
Write this object to given XMLOutput.
|
public ProfileSummary(@NonNull Profiler... profilers)
public void report(java.util.Comparator<java.lang.Class<?>> reportComparator, java.util.function.Predicate<Profiler.Profile> filter, java.io.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 by
PrintStream.checkError()
.
reportComparator
- filter
- stream
- public void writeXML(@NonNull XMLOutput xmlOutput) throws java.io.IOException
XMLWriteable
writeXML
in interface XMLWriteable
xmlOutput
- the XMLOutput for the documentjava.io.IOException
public Profiler.Profile getProfile(java.lang.Class<?> clazz)
getProfile
in interface IProfiler
SpotBugs is licensed under the LGPL.