|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Profiler is used to determine numeric values for specific parts of the Avalon environment. The idea is to add references to Profilable objects to the Profiler. The Profiler takes periodic snapshots of the running system so that performance or resource usage can be assertained. The sample duration is dependant on the Profiler's settings, and should never change during the time the Profiler is running.
Please do respect that for more accurate statistical information, the first and last sample must be thrown out. The first sample may have residual information from before the test, and the last sample may be from an incomplete timeslice. For instance, if the Profiler obtains a sample once every second, and it stops itself 500ms after the previous sample, the last sample will only represent 1/2 the typical timeslice.
Please also bear in mind that Java has a non-deterministic scheduler, and samples may not be taken exactly on the specified interval. This sample jitter is acceptable when averaged over a longer period of time.
Method Summary | |
void |
add(Profilable profileSource)
Adds a target to profile, along with a name for the target. |
void |
report(ProfileReport outputInfo)
Reports the results of the profiling to a ProfileReport. |
Method Detail |
public void add(Profilable profileSource)
public void report(ProfileReport outputInfo)
NullPointerException
- If the ProfileReport is null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |