Package org.eclipse.core.runtime
Class PerformanceStats.PerformanceListener
java.lang.Object
org.eclipse.core.runtime.PerformanceStats.PerformanceListener
- Enclosing class:
- PerformanceStats
A performance listener is periodically notified after performance events occur
or after events fail.
This class is intended to be subclassed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
eventFailed
(PerformanceStats event, long duration) Notifies than an event exceeded the maximum duration for that event type.void
eventsOccurred
(PerformanceStats[] event) Notifies that an event occurred.
-
Constructor Details
-
PerformanceListener
protected PerformanceListener()Creates a new listener.
-
-
Method Details
-
eventFailed
Notifies than an event exceeded the maximum duration for that event type.This default implementation does nothing. Subclasses may override.
- Parameters:
event
- The event that failedduration
- The duration of the failed event, in milliseconds
-
eventsOccurred
Notifies that an event occurred. Notification might not occur in the same thread or near the time of the actual event.This default implementation does nothing. Subclasses may override.
- Parameters:
event
- The event that occurred
-