org.openxma.dsl.common.logging
Class TimeLogger

java.lang.Object
  extended by org.openxma.dsl.common.logging.TimeLogger

public class TimeLogger
extends java.lang.Object

Simple Utility to measure execution-times in Java and Extend


Constructor Summary
TimeLogger()
           
 
Method Summary
 void add(java.lang.String eventName)
          Add new event to be measured
static void addTimeMeasurement(TimeMeasurement timeMeasurement)
           
 void clear()
          Remove all logged events
static void closeTimeLogger()
           
static TimeMeasurement getActiveTimeMeasurement()
           
static TimeMeasurement getRoot()
           
 void printDurations(int stackDepth)
          Print the duration of all logged events
 void printLogEntries()
          Print all logged events
static void printTimeDurations(int stackDepth)
          Static print-Method which can be invoked from Extend
static void setActiveTimeMeasurement(TimeMeasurement tm)
           
static void startTimeLogger()
          Static start-Method which can be invoked from Extend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeLogger

public TimeLogger()
Method Detail

startTimeLogger

public static void startTimeLogger()
Static start-Method which can be invoked from Extend


closeTimeLogger

public static void closeTimeLogger()

printTimeDurations

public static void printTimeDurations(int stackDepth)
Static print-Method which can be invoked from Extend


clear

public void clear()
Remove all logged events


add

public void add(java.lang.String eventName)
Add new event to be measured

Parameters:
eventName -

printLogEntries

public void printLogEntries()
Print all logged events


printDurations

public void printDurations(int stackDepth)
Print the duration of all logged events


addTimeMeasurement

public static void addTimeMeasurement(TimeMeasurement timeMeasurement)

getActiveTimeMeasurement

public static TimeMeasurement getActiveTimeMeasurement()

getRoot

public static TimeMeasurement getRoot()

setActiveTimeMeasurement

public static void setActiveTimeMeasurement(TimeMeasurement tm)


Copyright © 2012. All Rights Reserved.