TimerTrace

org.beangle.commons.lang.time.TimerTrace
object TimerTrace extends Logging

Attributes

Graph
Supertypes
trait Logging
class Object
trait Matchable
class Any
Self type
TimerTrace.type

Members list

Value members

Concrete methods

def clear(): Unit
def end(): Unit

End a preformance profiling with the name given. Deal with profile hierarchy automatically, so caller don't have to be concern about it.

End a preformance profiling with the name given. Deal with profile hierarchy automatically, so caller don't have to be concern about it.

Attributes

def getMinTime: Int

Get the min time for this profiling, it searches for a System property 'beangle.profile.mintime' and default to 0.

Get the min time for this profiling, it searches for a System property 'beangle.profile.mintime' and default to 0.

Attributes

Returns

long

def isActive: Boolean
def setActive(active: Boolean): Unit

Turn profiling on or off.

Turn profiling on or off.

Attributes

def setMinTime(mintime: Int): Unit

Change mintime

Change mintime

Attributes

def start(name: String): Unit

Create and start a performance profiling with the name given. Deal with profile hierarchy automatically, so caller don't have to be concern about it.

Create and start a performance profiling with the name given. Deal with profile hierarchy automatically, so caller don't have to be concern about it.

Value parameters

name

profile name

Attributes

Concrete fields

val ACTIVATE_PROPERTY: String

System property that controls whether this timer should be used or not. Set to "true" activates the timer. Set to "false" to disactivate.

System property that controls whether this timer should be used or not. Set to "true" activates the timer. Set to "false" to disactivate.

Attributes

val MIN_TIME: String

System property that controls the min time, that if exceeded will cause a log (at INFO level) to be created.

System property that controls the min time, that if exceeded will cause a log (at INFO level) to be created.

Attributes

var active: Boolean

Initialized in a static block, it can be changed at runtime by calling setActive(...)

Initialized in a static block, it can be changed at runtime by calling setActive(...)

Attributes

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
Logging