|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.osgi.internal.profile.Profile
public class Profile
This class is a development tool that provides a simple way to log programmer defined timmings for performance evaluations. This profiling allows logging of a timestamp with a corresponding message to a trace buffer.
| Field Summary | |
|---|---|
static boolean |
BENCHMARK
The logging state of BENCHMARK messages |
static boolean |
DEBUG
The logging state of DEBUG messages |
static java.lang.String |
ENTER_DESCRIPTION
The description for method enter |
static java.lang.String |
EXIT_DESCRIPTION
The description for method exit |
static int |
FLAG_ENTER
The logging flag for method enter |
static int |
FLAG_EXIT
The logging flag for method exit |
static int |
FLAG_NONE
The default logging flag. |
static boolean |
PROFILE
Profiling is enabled and available. |
static boolean |
STARTUP
The logging state of STARTUP messages |
| Constructor Summary | |
|---|---|
Profile()
|
|
| Method Summary | |
|---|---|
static void |
accumLogEnter(java.lang.String scope)
Use cumulative logging to record the entrance from this scope. |
static void |
accumLogExit(java.lang.String scope)
Use cumulative logging to record the exit from this scope. |
static java.lang.String |
getProfileLog()
Get the profiling log report and reset the trace buffer. |
static void |
initProps()
Initialize/update profiling properties. |
static void |
logEnter(java.lang.String id)
Log a method enter. |
static void |
logEnter(java.lang.String id,
java.lang.String description)
Log a method enter. |
static void |
logExit(java.lang.String id)
Log a method exit. |
static void |
logExit(java.lang.String id,
java.lang.String description)
Log a method exit. |
static void |
logTime(int flag,
java.lang.String id,
java.lang.String msg,
java.lang.String description)
Log a message. |
static void |
logTime(java.lang.String id,
java.lang.String msg)
Log a message. |
static void |
logTime(java.lang.String id,
java.lang.String msg,
java.lang.String description)
Log a message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean PROFILE
public static boolean STARTUP
public static boolean BENCHMARK
public static boolean DEBUG
public static final int FLAG_NONE
public static final int FLAG_ENTER
public static final int FLAG_EXIT
public static final java.lang.String ENTER_DESCRIPTION
public static final java.lang.String EXIT_DESCRIPTION
| Constructor Detail |
|---|
public Profile()
| Method Detail |
|---|
public static void initProps()
public static void logEnter(java.lang.String id)
id - The method's unique identification (e.g. org.eclipse.class#name).
public static void logEnter(java.lang.String id,
java.lang.String description)
id - The method's unique identification (e.g. org.eclipse.class#name).description - A description of the method.public static void logExit(java.lang.String id)
id - The method's unique identification (e.g. org.eclipse.class#name).
public static void logExit(java.lang.String id,
java.lang.String description)
id - The method's unique identification (e.g. org.eclipse.class#name).description - A description of the method.
public static void logTime(java.lang.String id,
java.lang.String msg)
id - The method's unique identification (e.g. org.eclipse.class#name).msg - The message.
public static void logTime(java.lang.String id,
java.lang.String msg,
java.lang.String description)
id - The method's unique identification (e.g. org.eclipse.class#name).msg - The message.description - A description of the method.
public static void logTime(int flag,
java.lang.String id,
java.lang.String msg,
java.lang.String description)
flag - A profile logging flag.id - The method's unique identification (e.g. org.eclipse.class#name).msg - The message.description - A description of the method.FLAG_ENTER,
FLAG_EXIT,
FLAG_NONEpublic static void accumLogEnter(java.lang.String scope)
scope - The entering scopepublic static void accumLogExit(java.lang.String scope)
scope - The exiting scopepublic static java.lang.String getProfileLog()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||