public final class SimpleProfiler extends Object
| Modifier and Type | Method and Description |
|---|---|
static @Nullable Counter |
cumulated(String name)
Return the counter for the cumulated (passed) time of the given timer.
|
static String |
getResults()
Get profiling results as string.
|
static void |
logResults()
Log results in category PROFILING.
|
static void |
reset()
Reset internal data.
|
static void |
start(String name)
Start the timer identified by the given key.
|
static void |
stop(String name)
Stop the timer identified by the given key.
|
public static void reset()
public static void start(String name)
name - The name of the timer to be started.public static void stop(String name)
initialization will be added to the cumulated time of the specific timer.name - The name of the timer to be stopped.public static @Nullable Counter cumulated(String name)
name - The name of the timer to be returned.public static String getResults()
public static void logResults()
Copyright © 2020. All rights reserved.