| Modifier and Type | Field and Description |
|---|---|
| private final HashMap | |
| public int | |
| private final String[] | |
| private final String[] | |
| private final String[] | |
| private static java. | |
| public int | |
| private static final String | |
| private static final int | |
| private int | |
| public boolean | |
| private int | |
| private long | |
| private volatile boolean | |
| public boolean | |
| private final HashMap | summary
The summary (usually one entry per package, unless sumClasses is enabled, in which case it's one entry per class). |
| public boolean | |
| private Thread | |
| private int | |
| private long | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| private static String | |
| public static java. | Returns: the instrumentation, or nullGet the instrumentation object if started as an agent. |
| private static List | |
| public String | Returns: the stack traces.the maximum number of stack traces count)Get the top stack traces. |
| private String | |
| private static int | |
| public static void | |
| public static void | |
| private void | |
| private static List | |
| private static List | |
| private void | |
| public void | |
| public Profiler | |
| private static boolean | |
| public Profiler | |
| private void |
| counts | back to summary |
|---|---|
| private final HashMap<String, Integer> counts | |
| depth | back to summary |
|---|---|
| public int depth | |
| ignoreLines | back to summary |
|---|---|
| private final String[] ignoreLines | |
| ignorePackages | back to summary |
|---|---|
| private final String[] ignorePackages | |
| ignoreThreads | back to summary |
|---|---|
| private final String[] ignoreThreads | |
| instrumentation | back to summary |
|---|---|
| private static java. | |
| interval | back to summary |
|---|---|
| public int interval | |
| LINE_SEPARATOR | back to summary |
|---|---|
| private static final String LINE_SEPARATOR | |
| MAX_ELEMENTS | back to summary |
|---|---|
| private static final int MAX_ELEMENTS | |
| minCount | back to summary |
|---|---|
| private int minCount | |
| paused | back to summary |
|---|---|
| public boolean paused | |
| pid | back to summary |
|---|---|
| private int pid | |
| start | back to summary |
|---|---|
| private long start | |
| stop | back to summary |
|---|---|
| private volatile boolean stop | |
| sumClasses | back to summary |
|---|---|
| public boolean sumClasses | |
| summary | back to summary |
|---|---|
| private final HashMap<String, Integer> summary The summary (usually one entry per package, unless sumClasses is enabled, in which case it's one entry per class). | |
| sumMethods | back to summary |
|---|---|
| public boolean sumMethods | |
| thread | back to summary |
|---|---|
| private Thread thread | |
| threadDumps | back to summary |
|---|---|
| private int threadDumps | |
| time | back to summary |
|---|---|
| private long time | |
| total | back to summary |
|---|---|
| private int total | |
| Profiler | back to summary |
|---|---|
| public Profiler() | |
| appendTop | back to summary |
|---|---|
| private static void appendTop(StringBuilder buff, HashMap<String, Integer> map, int count, int total, boolean table) | |
| copyInThread | back to summary |
|---|---|
| private static void copyInThread(final InputStream in, final OutputStream out) | |
| exec | back to summary |
|---|---|
| private static String exec(String... args) | |
| getInstrumentation | back to summary |
|---|---|
| public static java. Get the instrumentation object if started as an agent.
| |
| getRunnableStackTraces | back to summary |
|---|---|
| private static List | |
| getTop | back to summary |
|---|---|
| public String getTop(int count) Get the top stack traces.
| |
| getTopTraces | back to summary |
|---|---|
| private String getTopTraces(int count) | |
| increment | back to summary |
|---|---|
| private static int increment(HashMap<String, Integer> map, String trace, int minCount) | |
| main | back to summary |
|---|---|
| public static void main(String... args) Run the command line version of the profiler. The JDK (jps and jstack) need to be in the path.
| |
| premain | back to summary |
|---|---|
| public static void premain(String agentArgs, java. This method is called when the agent is installed.
| |
| processList | back to summary |
|---|---|
| private void processList(List<Object[]> list) | |
| readRunnableStackTraces | back to summary |
|---|---|
| private static List | |
| readStackTrace | back to summary |
|---|---|
| private static List | |
| run | back to summary |
|---|---|
| private void run(String... args) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| startCollecting | back to summary |
|---|---|
| public Profiler startCollecting() Start collecting profiling data.
| |
| startsWithAny | back to summary |
|---|---|
| private static boolean startsWithAny(String s, String[] prefixes) | |
| stopCollecting | back to summary |
|---|---|
| public Profiler stopCollecting() Stop collecting.
| |
| tick | back to summary |
|---|---|
| private void tick() | |