public final class PerfLogger extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PerfLogger.ProbeStat
The class contains perf statistics for a registered probe.
|
Modifier and Type | Method and Description |
---|---|
static PerfLogger |
getLogger(Logger log)
Finds or creates a logger with the given
log . |
static PerfLogger |
getLogger(String name)
Finds or creates a logger with
Logger named
com.sun.webkit.perf.name . |
PerfLogger.ProbeStat |
getProbeStat(String probe) |
boolean |
isEnabled() |
void |
log()
Logs perf statistics.
|
void |
log(StringBuffer buf)
Prints perf statistics to the buffer.
|
static void |
logAll()
Logs perf statistics of all loggers.
|
void |
reset()
Resets perf statistics.
|
static void |
resetAll() |
void |
resumeCount(String probe)
Resumes count statistics for the probe, or starts if it's not yet started.
|
void |
startCount(String probe)
Starts count statistics for the probe with zero initial data.
|
void |
suspendCount(String probe)
Suspends count statistics for the probe.
|
public static PerfLogger getLogger(Logger log)
log
.
In order the logger be enabled the log
should be loggable.log
- associated Logger
public static PerfLogger getLogger(String name)
Logger
named
com.sun.webkit.perf.name
.name
- the PerfLogger
short namepublic boolean isEnabled()
public void reset()
public static void resetAll()
public PerfLogger.ProbeStat getProbeStat(String probe)
public void startCount(String probe)
public void suspendCount(String probe)
public void resumeCount(String probe)
public void log(StringBuffer buf)
public void log()
public static void logAll()
Copyright © 2020. All rights reserved.