|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.debug.TrackingStatus
public class TrackingStatus
Invocation aggregator.
Field Summary | |
---|---|
long |
totalCalls
|
long |
totalInits
|
long |
totalTime
|
Constructor Summary | |
---|---|
TrackingStatus(boolean trace,
String testString)
|
Method Summary | |
---|---|
static TrackingStatus |
getInstance()
Gets instance of the status configured for current request or new one if none is configured yet. |
static TrackingStatus |
getInstance(boolean trace)
Gets instance of the status configured for current request or new one if none is configured yet. |
static TrackingStatus |
getInstance(boolean trace,
String testString)
Gets instance of the status configured for current request or new one if none is configured yet. |
String |
toString()
|
void |
track()
Track all the callers and update aggregated stacktrace. |
void |
track(String str)
Track only calls where testString matches the argument. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public long totalCalls
public long totalInits
public long totalTime
Constructor Detail |
---|
public TrackingStatus(boolean trace, String testString)
Method Detail |
---|
public static TrackingStatus getInstance()
public static TrackingStatus getInstance(boolean trace)
trace
- used only for the very first invocation to enable/disable this status instance.public static TrackingStatus getInstance(boolean trace, String testString)
trace
- used only for the very first invocation to enable/disable this status instance.testString
- used to further filter the calls to trace. Only calls to
track(String)
matching the testString
will be logged.public void track()
public String toString()
toString
in class Object
public void track(String str)
testString
matches the argument.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |