public final class PerfUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PerfUtil.FastMap<K,V> |
static class |
PerfUtil.LocalStack<E> |
static class |
PerfUtil.LocalTimer |
static interface |
PerfUtil.Watched |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
empty() |
void |
end(String name) |
static PerfUtil |
instance() |
protected static Stopwatch |
newStopwatch(String name,
Stopwatch.Path parent) |
protected static Stopwatch |
newStopwatch(String name,
Stopwatch parent) |
protected static long |
now() |
void |
profileClass(String... classes) |
void |
profilePackage(String... packages) |
static void |
profileSingleThread(boolean yes) |
Stopwatch |
start(String name) |
Stopwatch |
start2(String name) |
String |
toECharts() |
String |
toJson() |
String |
toString() |
static void |
useLightStopwatch(boolean yes) |
static void |
useLocalTimer(boolean yes) |
public static PerfUtil instance()
public static void profileSingleThread(boolean yes)
public static void useLocalTimer(boolean yes)
public static void useLightStopwatch(boolean yes)
protected static long now()
protected static Stopwatch newStopwatch(String name, Stopwatch.Path parent)
public void end(String name)
public boolean empty()
public void clear()
public String toJson()
public String toECharts()
Copyright © 2021. All rights reserved.