public class Profile extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Profile() |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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_NONE
public static void accumLogEnter(String scope)
scope
- The entering scopepublic static void accumLogExit(String scope)
scope
- The exiting scopepublic static String getProfileLog()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.