Start profiling @param event Profiling event, see Events @param interval Sampling interval, e.g. nanoseconds for Events.CPU @throws IllegalStateException If profiler is already running
(String event, long interval)
| 120 | * @throws IllegalStateException If profiler is already running |
| 121 | */ |
| 122 | @Override |
| 123 | public void start(String event, long interval) throws IllegalStateException { |
| 124 | if (event == null) { |
| 125 | throw new NullPointerException(); |
| 126 | } |
| 127 | start0(event, interval, true); |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Start or resume profiling without resetting collected data. |