public class Profiler extends Object
WARNING: Call reset at the end to avoid memory leaks.
Modifier and Type | Method and Description |
---|---|
static void |
beginItem()
Start timing an item.
|
static void |
beginItem(String desc)
Start timing an item.
|
static void |
endItem()
Stop timing of the latest item
|
static void |
main(String[] notUsed) |
static String |
report()
return a String report of all the timings
|
static void |
reset()
Reset the global ProfilerImpl instance.
|
static void |
subItem(String desc)
Convenience method to avoid endItem() beginItem() bracketing
|
public static void reset()
public static void beginItem()
public static void beginItem(String desc)
desc
- - Descriptive text for the itempublic static void endItem()
public static String report()
public static void subItem(String desc)
desc
- - Descriptive text for the itempublic static void main(String[] notUsed)
notUsed
- Copyright © 2021. All rights reserved.