Class CPUSample

java.lang.Object
org.bootchart.common.Sample
org.bootchart.common.CPUSample

public class CPUSample extends Sample
CPU statistics sample.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    The percentage of CPU time spent waiting on disk I/O.
    double
    System load.
    double
    User load.

    Fields inherited from class org.bootchart.common.Sample

    time, TIME_FORMAT
  • Constructor Summary

    Constructors
    Constructor
    Description
    CPUSample(Date time, double user, double sys, double io)
    Creates a new sample.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the string representation of the sample.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • user

      public double user
      User load.
    • sys

      public double sys
      System load.
    • io

      public double io
      The percentage of CPU time spent waiting on disk I/O.
  • Constructor Details

    • CPUSample

      public CPUSample(Date time, double user, double sys, double io)
      Creates a new sample.
      Parameters:
      time - sample time
      user - user load
      sys - system load
      io - IO wait
  • Method Details

    • toString

      public String toString()
      Returns the string representation of the sample.
      Overrides:
      toString in class Object
      Returns:
      string representation