ProcCpu (Sigar API)
Date: 2009-07-09

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.sigar
Class ProcCpu

    java.lang.Object
      org.hyperic.sigar.ProcCpu

All Implemented Interfaces:
  java.io.Serializable

Direct Known Subclasses:
  MultiProcCpu

    public class ProcCpu

extends java.lang.Object
implements java.io.Serializable

ProcCpu sigar class.

See Also:
  Serialized Form

Constructor Summary
`ProcCpu()`

Method Summary
`void` | `gather(Sigar sigar, long pid)`
`long` | `getLastTime()` Get the last_time.
`double` | `getPercent()` Get the Process cpu usage.
`long` | `getStartTime()` Get the Time process was started in seconds.
`long` | `getSys()` Get the Process cpu kernel time.
`long` | `getTotal()` Get the Process cpu time (sum of User and Sys).
`long` | `getUser()` Get the Process cpu user time.
`java.util.Map` | `toMap()`
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ProcCpu

    public ProcCpu()

Method Detail

### gather

    public void gather(Sigar sigar,
                       long pid)
                throws SigarException

  Throws:
    `SigarException`

### getPercent

    public double getPercent()

  Get the Process cpu usage.

  Supported Platforms: All.

  Returns:
    Process cpu usage

### getLastTime

    public long getLastTime()

  Get the last_time.

  Supported Platforms: All.

  Returns:
    last_time

### getStartTime

    public long getStartTime()

  Get the Time process was started in seconds.

  Supported Platforms: All.

  Returns:
    Time process was started in seconds

### getUser

    public long getUser()

  Get the Process cpu user time.

  Supported Platforms: All.

  Returns:
    Process cpu user time

### getSys

    public long getSys()

  Get the Process cpu kernel time.

  Supported Platforms: All.

  Returns:
    Process cpu kernel time

### getTotal

    public long getTotal()

  Get the Process cpu time (sum of User and Sys).

  Supported Platforms: All.

  Returns:
    Process cpu time (sum of User and Sys)

### toMap

    public java.util.Map toMap()

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright ? 2004-2009 Hyperic. All Rights Reserved.