| java.lang.Object com.mentorgen.tools.profile.runtime.Profile
Profile | final public class Profile implements Runnable(Code) | | The Profiler is the class that actually profiles the code.
Code to be profiled is instrumented, when the byte code is loaded,
to make calls to this class:
- At the beginning of each method (calls
Profiler.start())
- At the end of each method (that is, when return is called, which
might not actaully be at the end of the method)
(calls
Profiler.end())
- When an exception is thrown (also calls
Profiler.end())
- Each time a constructor is called (optional)
Note: Instrumenting code can interfer with line numbers that are added to
the code for debugging. If you are debugging code and your stack traces
don't have line numbers, don't use the profiler (ie, don't use
-javaagent)
author: Andrew Wilcox |
clear | public static void clear()(Code) | | |
getThreadTotalTime | public static long getThreadTotalTime(long threadId)(Code) | | |
init | public static void init()(Code) | | |
initProfiler | public static void initProfiler()(Code) | | |
run | public void run()(Code) | | ShutdownHook: This will dump the profiling info when the VM shutsdown.
|
setFileName | public static void setFileName(String fileName)(Code) | | |
shutdown | public static void shutdown()(Code) | | |
start | public static void start()(Code) | | |
stop | public static void stop()(Code) | | |
|
|