Methods Summary |
---|
public static void | beginItem()Start timing an item.
profiler.beginItem();
|
public static void | beginItem(java.lang.String desc)Start timing an item.
profiler.beginItem(desc);
|
public static void | endItem()Stop timing of the latest item
profiler.endItem();
|
public static void | main(java.lang.String[] notUsed)
try
{
profiler.beginItem("first item");
Thread.sleep(3000);
profiler.beginItem("second item here dude whoa yowser yowser");
Thread.sleep(1500);
profiler.endItem();
profiler.endItem();
System.out.println("" + profiler);
}
catch(Exception e)
{
}
|
public static java.lang.String | report()return a String report of all the timings
return profiler.toString();
|
public static void | reset()Reset the global ProfilerImpl instance.
profiler.reset();
|