public class Profiler extends java.lang.Object implements XMLWriteable
Modifier and Type | Class and Description |
---|---|
static class |
Profiler.ClassNameComparator |
static interface |
Profiler.Filter |
static class |
Profiler.FilterByCalls |
static class |
Profiler.FilterByTime |
static class |
Profiler.FilterByTimePerCall |
static class |
Profiler.Profile |
static class |
Profiler.TimePerCallComparator |
static class |
Profiler.TotalCallsComparator |
static class |
Profiler.TotalTimeComparator |
Constructor and Description |
---|
Profiler() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the previously accumulated data.
|
void |
end(java.lang.Class<?> c) |
void |
endContext(java.lang.Object context) |
Profiler.Profile |
getProfile(java.lang.Class<?> c) |
void |
report()
Default implementation uses
Profiler.TotalTimeComparator and prints out
class statistics based on total time spent fot a class |
void |
report(java.util.Comparator<java.lang.Class<?>> reportComparator,
Profiler.Filter filter,
java.io.PrintStream stream) |
void |
start(java.lang.Class<?> c) |
void |
startContext(java.lang.Object context) |
void |
writeXML(XMLOutput xmlOutput)
Write this object to given XMLOutput.
|
public void startContext(java.lang.Object context)
public void endContext(java.lang.Object context)
public void start(java.lang.Class<?> c)
public void end(java.lang.Class<?> c)
public void report()
Profiler.TotalTimeComparator
and prints out
class statistics based on total time spent fot a classpublic void report(java.util.Comparator<java.lang.Class<?>> reportComparator, Profiler.Filter filter, java.io.PrintStream stream)
reportComparator
- non null comparator instance which will be used to sort the
report statisticspublic void clear()
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()
).
public Profiler.Profile getProfile(java.lang.Class<?> c)
public void writeXML(XMLOutput xmlOutput) throws java.io.IOException
XMLWriteable
writeXML
in interface XMLWriteable
xmlOutput
- the XMLOutput for the documentjava.io.IOException
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.