com.ibm.java.diagnostics.healthcenter.api.profiling

Interface ProfilingData

  • All Superinterfaces:
    HealthCenterData, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter


    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 Detail

      • PROFILEDATA

        static final java.lang.String PROFILEDATA
        Used to get only Profiling Data when comparing against NotificationListener.getUserData()
        See Also:
        Constant Field Values
    • Method Detail

      • 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
© Copyright 2012, 2016 IBM Corporation.