ProfileListener
as a listener for profiling data reports. The listener is immediately updated on the current set of operations and the number of scheduler threads. The listener can be marked as unable to be removed by {@link #removeListener removeListener} or shutdown by {@link #shutdown}; if these operations are performed on a listener that does not allow them, they are silently ignored.
@param listener the {@code ProfileListener} to add
@param canRemove {@code true} if this listener can be removed or shut down by the {@code ProfileCollector}. This parameter should usually be set to {@code true}.
|
|