Package org.opencms.db.timing
Class CmsThreadStatsTreeProfilingHandler
- java.lang.Object
-
- org.opencms.db.timing.CmsThreadStatsTreeProfilingHandler
-
- All Implemented Interfaces:
I_CmsProfilingHandler
public class CmsThreadStatsTreeProfilingHandler extends java.lang.Object implements I_CmsProfilingHandler
Builds up a tree whose nodes correspond to stack trace lines of the threads calling this profiling handler. The resulting tree can be dumped as XML.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCmsThreadStatsTreeProfilingHandler.NodeThe tree node.
-
Constructor Summary
Constructors Constructor Description CmsThreadStatsTreeProfilingHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdump()Dumps the tree as XML.booleanhasData()Returns true if we received any data yet.voidputTime(java.lang.String key, long nanos)Adds measured method call duration.
-
-
-
Constructor Detail
-
CmsThreadStatsTreeProfilingHandler
public CmsThreadStatsTreeProfilingHandler()
-
-
Method Detail
-
dump
public java.lang.String dump()
Dumps the tree as XML.- Returns:
- the tree in XML format
-
hasData
public boolean hasData()
Returns true if we received any data yet.- Returns:
- true if the handler has received data
-
putTime
public void putTime(java.lang.String key, long nanos)
Description copied from interface:I_CmsProfilingHandlerAdds measured method call duration.- Specified by:
putTimein interfaceI_CmsProfilingHandler- Parameters:
key- a key identifying the methodnanos- the nanoseconds measured- See Also:
I_CmsProfilingHandler.putTime(java.lang.String, long)
-
-