|
||||||||||
| 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 String |
ENTER_DESCRIPTION
The description for method enter |
static 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(String scope)
Use cumulative logging to record the entrance from this scope. |
static void |
accumLogExit(String scope)
Use cumulative logging to record the exit from this scope. |
static String |
getProfileLog()
Get the profiling log report and reset the trace buffer. |
static void |
initProps()
Initialize/update profiling properties. |
static void |
logEnter(String id)
Log a method enter. |
static void |
logEnter(String id,
String description)
Log a method enter. |
static void |
logExit(String id)
Log a method exit. |
static void |
logExit(String id,
String description)
Log a method exit. |
static void |
logTime(int flag,
String id,
String msg,
String description)
Log a message. |
static void |
logTime(String id,
String msg)
Log a message. |
static void |
logTime(String id,
String msg,
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 String ENTER_DESCRIPTION
public static final String EXIT_DESCRIPTION
| Constructor Detail |
|---|
public Profile()
| Method Detail |
|---|
public static void initProps()
public static void logEnter(String id)
id - The method's unique identification (e.g. org.eclipse.class#name).
public static void logEnter(String id,
String description)
id - The method's unique identification (e.g. org.eclipse.class#name).description - A description of the method.public static void logExit(String id)
id - The method's unique identification (e.g. org.eclipse.class#name).
public static void logExit(String id,
String description)
id - The method's unique identification (e.g. org.eclipse.class#name).description - A description of the method.
public static void logTime(String id,
String msg)
id - The method's unique identification (e.g. org.eclipse.class#name).msg - The message.
public static void logTime(String id,
String msg,
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,
String id,
String msg,
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(String scope)
scope - The entering scopepublic static void accumLogExit(String scope)
scope - The exiting scopepublic static String getProfileLog()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||