Interface ICpuTimeProvider


public interface ICpuTimeProvider
Interface that analyses should implement if they provide information on the amount of time a certain TID spends on the CPU. This will cause this analysis to be picked up at creation and added to the model for the host. NOTE to developers: this interface is used with the composite host model but won't be necessary anymore once the analyses populate the model directly.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    getCpuTime(int tid, long start, long end)
    Get the amount of time a thread was active on the CPU (any CPU) during a period.
    Get the list of host IDs this provider is for
  • Method Details

    • getCpuTime

      long getCpuTime(int tid, long start, long end)
      Get the amount of time a thread was active on the CPU (any CPU) during a period.
      Parameters:
      tid - The ID of the thread
      start - The start of the period for which to get the time on CPU
      end - The end of the period for which to get the time on CPU
      Returns:
      The time spent on the CPU by the thread in that duration or IHostModel.TIME_UNKNOWN if it is not available
    • getHostIds

      Collection<String> getHostIds()
      Get the list of host IDs this provider is for
      Returns:
      The list of host IDs