|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jperfprobe.StaticProbeManager
public final class StaticProbeManager
The ProbeManager is the probe factory. It makes it possible start start and stop a probe.
The probe can be started in different ways:
Method Summary | |
---|---|
static void |
addSampleFromProbe(Probe p)
Add a sample from a probe. |
static void |
clear()
Clear all probes, all results and probes will be removed. |
static void |
disableAll()
Disable all probes. |
static void |
enableAll()
Enable all probes. |
static int |
getFirstSamplesToSkip()
|
static String[] |
getNames()
Get all probe names in the ProbeManager |
static ProbeManagerImpl.Presentation |
getPresentation()
Get the current presentation for the manager |
static Probe |
getProbeInstance(String probeName)
Get instance of a named probe, if it is non existent, a default probe will be created. |
static Result |
getResult(String probeName)
Get a result for a given probe |
static Collection<Result> |
getResults()
Get all the results |
static long[] |
getSamples(String probe)
Get all samples from a probe, as a string newline delimited |
static void |
put(String probeName,
Probe probe)
Put a probe into the manager, if the probe exist it will be overwritten. |
static void |
setFirstSamplesToSkip(int _firstSamplesToSkip)
Set how many samples to skip in the calculation of statistics. |
static void |
setPresentation(ProbeManagerImpl.Presentation p)
Set the presentation unit for presentation. |
static void |
setTime(Time tim)
Set the Time implementation. |
static Probe |
start(String probeName)
Start probe, identified by probeName, if the probe does not exist, it will be created. |
static Probe |
startSingle(String probeName)
|
static void |
stop(String probeName)
Stop timing. |
static String |
toString(String probe)
Get result as a string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void put(String probeName, Probe probe)
probeName
- probe
- public static Result getResult(String probeName)
probeName
-
public static Collection<Result> getResults()
public static Probe getProbeInstance(String probeName)
probeName
- identifying name of probe
public static Probe start(String probeName)
probeName
- name of existing or new probe.public static Probe startSingle(String probeName)
public static void stop(String probeName)
probeName
- name of probe to stoppublic static void addSampleFromProbe(Probe p)
p
- public static void clear()
public static void disableAll()
public static void enableAll()
public static void setPresentation(ProbeManagerImpl.Presentation p)
p
- presentation to setpublic static int getFirstSamplesToSkip()
public static void setFirstSamplesToSkip(int _firstSamplesToSkip)
_firstSamplesToSkip
- public static ProbeManagerImpl.Presentation getPresentation()
public static void setTime(Time tim)
tim
- public static String toString(String probe)
probe
-
public static long[] getSamples(String probe)
probe
-
public static String[] getNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |