Interface ProfilingData

All Superinterfaces:
HealthCenterData, NotificationBroadcaster, NotificationEmitter
All Known Implementing Classes:
ProfilingDataImpl

public interface ProfilingData extends HealthCenterData
This class represents all the profiling data that was processed by Health Center. This information includes, for example, which methods are run most often, and in which order.
  • Field Details

    • PROFILEDATA

      static final String PROFILEDATA
      Used to get only Profiling Data when comparing against NotificationListener.getUserData()
      See Also:
  • Method Details

    • getProfilingEvents

      MethodProfileData[] getProfilingEvents()
      Returns all the method profiling data processed by Health Center. NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
      Returns:
      an array of profiling events.
    • addProfilingListener

      void addProfilingListener(ProfilingEventListener listener)
      Add a listener for notification of when a profiling event occurs
      Parameters:
      implementation - of the ProfilingEventListener class
    • removeProfilingListener

      void removeProfilingListener(ProfilingEventListener listener)
      Remove one of registered listeners.
      Parameters:
      implementation - of the ProfilingEventListener class