public interface Profiler
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all data.
|
void |
clear(String key)
Clear data attached to the specfied key.
|
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(String key)
Get data/time attached to the specified key.
|
Map<String,Object> |
getMap() |
TimeUnit |
getTimeUnit() |
void |
incr(String key,
int value)
Increment an integer attached to the specified key.
|
boolean |
isProfilingEnabled() |
Set<String> |
keySet() |
void |
put(String key,
Object value)
Map miscellaneous data on the specified key.
|
void |
setDateFormat(String pattern)
Defines the date format used for displaying when the output stream is
set.
|
void |
setOutputStream(PrintStream out)
Sets the output stream.
|
void |
start(String key)
Start a timer with a specified key/identifier.
|
void |
stop(String key)
Stop the timer with the specified key.
|
void |
trace(String... strings)
If the output stream is set, print this strings.
|
void setDateFormat(String pattern)
void setOutputStream(PrintStream out)
out
- boolean isProfilingEnabled()
void start(String key)
key
- void stop(String key)
key
- void put(String key, Object value)
key
- value
- void incr(String key, int value)
key
- value
- Object get(String key)
key
- void clear(String key)
key
- void clear()
void trace(String... strings)
strings
- Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.