public class Profiler
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static void |
increaseTime(java.lang.String methodName,
long time) |
Increases total time of execution and increments call count for method with given name
|
static void |
reset() |
Clears all data stored in this class so far
|
static void |
writeReport(java.lang.String filePath) |
Writes raport to file with given path.
|
public static void increaseTime(java.lang.String methodName,
long time)
methodName - name of the method for which total time of execution should be increased
and total call count should be incrementedtime - time to add to total time of execution for method with given namepublic static void reset()
public static void writeReport(java.lang.String filePath)
throws java.io.IOException
filePath - path of the file to which raport should be savedjava.io.IOException - when file with given path can't be opened for write