|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.logging.performance.PerformanceLogger
A performance measurement class for benchmarking. This performance framework provides stopwatch functions for calculating elapsed time for an operation. Usuage example Method_A { String key = PerformanceLogger.register("RSE","WDSC","5120"); PerformanceLogger.start(key, "OP1"); //CallerID is OP1 Method_B(); PerformanceLogger.stop(key); } Method_B { PerformanceLogger.start("RSE"); //"RSE" component, CalleID="class.method" // Do something PerformanceLogger.stop("RSE"); } Method_C { PerformanceLogger.start(); //Use the default component for recording // Do something PerformanceLogger.stop(); }
Field Summary | |
---|---|
static boolean |
_ENABLE_PERFORMANCE_LOGGING_IBM_INTERNAL_
|
static String |
copyright
|
static int |
OPTION_GET_ALL
|
static int |
OPTION_GET_FEATURE
|
static int |
OPTION_GET_VERSION
|
Method Summary | |
---|---|
static void |
deRegister()
public static void deRegister(): De-register the default component |
static void |
deRegister(String key)
public static void deRegister(String key): De-register a component |
static void |
enablePerformanceLogging(boolean enable)
public static void enablePerformanceLogging(boolean enable) : enable performance logging |
static String |
getCurrentProductInfo(int req,
String comp_id)
public String geCurrentProductInfo(int req, String comp_id) : retrieve the product information. |
static String |
getXMLFileName(String comp_id)
public String getXMLFileName(String comp_id) : get the XML file pathname |
static boolean |
isPerformanceLoggingEnabled()
public static boolean isPerformanceLoggingEnabled() : check if logging enabled |
static void |
listSystemProfile()
public static void listSystemProfile(): retrieve the system information. |
static void |
main(String[] args)
public static void main() : This main is used for testing this PerformanceLogger functions. |
static String |
register(String comp_id)
|
static String |
register(String feature,
String version)
|
static String |
register(String comp_id,
String feature,
String version)
public static String register(String comp_id, String feature, String version) : Registering a component |
static long |
start()
public static long start(): start timer using default component The Task values will be recorded in the default component XML file |
static long |
start(String comp_id)
public static long start(String comp_id): start timer for component comp_id using default TaskID |
static long |
start(String comp_id,
String call_id)
public long start(String comp_id, String call_id): start the timer for registered component comp_id |
static long |
stop()
public static long stop(): stop timer for default component The Task values will be recorded in the default component XML file |
static long |
stop(String comp_id)
public long stop(String comp_id): Stopping the timer for component comp_id |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String copyright
public static final boolean _ENABLE_PERFORMANCE_LOGGING_IBM_INTERNAL_
public static final int OPTION_GET_ALL
public static final int OPTION_GET_FEATURE
public static final int OPTION_GET_VERSION
Method Detail |
public static void enablePerformanceLogging(boolean enable)
enable
- : true or false
public static boolean isPerformanceLoggingEnabled()
public static String register(String comp_id)
public static String register(String feature, String version)
public static String register(String comp_id, String feature, String version)
public static void deRegister()
public static void deRegister(String key)
public static long start()
public static long start(String comp_id)
public static long start(String comp_id, String call_id)
public static long stop()
public static long stop(String comp_id)
public static String getCurrentProductInfo(int req, String comp_id)
req
- : OPTION_GET_FEATURE/OPTION_GET_VERSION
comp_id : the component id
public static String getXMLFileName(String comp_id)
public static void listSystemProfile()
public static void main(String[] args)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |