| Modifier and Type | Class and Description |
|---|---|
| public static class | PerfLogger.
The class contains perf statistics for a registered probe. |
| Modifier and Type | Field and Description |
|---|---|
| private final Comparator | |
| private final boolean | |
| private final PlatformLogger | |
| private static Map | |
| private final HashMap | |
| private static Thread | |
| private final Comparator |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private synchronized String | |
| public static synchronized PerfLogger | |
| public static synchronized PerfLogger | |
| public synchronized PerfLogger. | |
| public boolean | |
| public synchronized void | |
| public synchronized void | |
| private synchronized void | |
| public static synchronized void | |
| private synchronized PerfLogger. | |
| public synchronized void | |
| public static synchronized void | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void |
| countComparator | back to summary |
|---|---|
| private final Comparator<T> countComparator | |
| isEnabled | back to summary |
|---|---|
| private final boolean isEnabled | |
| log | back to summary |
|---|---|
| private final PlatformLogger log | |
| loggers | back to summary |
|---|---|
| private static Map<PlatformLogger, PerfLogger> loggers | |
| probes | back to summary |
|---|---|
| private final HashMap<String, PerfLogger. | |
| shutdownHook | back to summary |
|---|---|
| private static Thread shutdownHook | |
| timeComparator | back to summary |
|---|---|
| private final Comparator<T> timeComparator | |
| PerfLogger | back to summary |
|---|---|
| private PerfLogger(PlatformLogger log) | |
| fullName | back to summary |
|---|---|
| private synchronized String fullName(String probe) | |
| getLogger | back to summary |
|---|---|
| public static synchronized PerfLogger getLogger(PlatformLogger log) Finds or creates a logger with the given
| |
| getLogger | back to summary |
|---|---|
| public static synchronized PerfLogger getLogger(String name) Finds or creates a logger with
| |
| getProbeStat | back to summary |
|---|---|
| public synchronized PerfLogger. | |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled() | |
| log | back to summary |
|---|---|
| public synchronized void log(StringBuffer buf) Prints perf statistics to the buffer. | |
| log | back to summary |
|---|---|
| public synchronized void log() Logs perf statistics. | |
| log | back to summary |
|---|---|
| private synchronized void log(boolean useLogger) | |
| logAll | back to summary |
|---|---|
| public static synchronized void logAll() Logs perf statistics of all loggers. | |
| registerProbe | back to summary |
|---|---|
| private synchronized PerfLogger. | |
| reset | back to summary |
|---|---|
| public synchronized void reset() Resets perf statistics. | |
| resetAll | back to summary |
|---|---|
| public static synchronized void resetAll() | |
| resumeCount | back to summary |
|---|---|
| public synchronized void resumeCount(String probe) Resumes count statistics for the probe, or starts if it's not yet started. | |
| startCount | back to summary |
|---|---|
| public synchronized void startCount(String probe) Starts count statistics for the probe with zero initial data. | |
| suspendCount | back to summary |
|---|---|
| public synchronized void suspendCount(String probe) Suspends count statistics for the probe. | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private boolean | |
| private final String | |
| private long | |
| private long |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public String | |
| public long | |
| private void | |
| private void | |
| private void | |
| private void | |
| public String |
| count | back to summary |
|---|---|
| private int count | |
| isRunning | back to summary |
|---|---|
| private boolean isRunning | |
| probe | back to summary |
|---|---|
| private final String probe | |
| startTime | back to summary |
|---|---|
| private long startTime | |
| totalTime | back to summary |
|---|---|
| private long totalTime | |
| ProbeStat | back to summary |
|---|---|
| private ProbeStat(String probe) | |
| getCount | back to summary |
|---|---|
| public int getCount() | |
| getProbe | back to summary |
|---|---|
| public String getProbe() | |
| getTotalTime | back to summary |
|---|---|
| public long getTotalTime() | |
| reset | back to summary |
|---|---|
| private void reset() | |
| resume | back to summary |
|---|---|
| private void resume() | |
| snapshot | back to summary |
|---|---|
| private void snapshot() | |
| suspend | back to summary |
|---|---|
| private void suspend() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |