Liking cljdoc? Tell your friends :D

puppetlabs.trapperkeeper.services.status.cpu-monitor


calculate-usageclj

(calculate-usage process-time prev-process-time uptime-diff)

Given 'before' and 'after' values for processing time, and a delta of time that expired between the two values, compute the percentage of CPU used.

Given 'before' and 'after' values for processing time, and a delta of time
that expired between the two values, compute the percentage of CPU used.
sourceraw docstring

cpu-multiplierclj

source

CpuUsageSnapshotclj

source

gc-bean-namesclj

source

get-collection-timeclj

(get-collection-time)

Compute the total time spent on Garbage Collection since the process was started, by summing GC collection times from the JMX GC beans.

Compute the total time spent on Garbage Collection since the process was
started, by summing GC collection times from the JMX GC beans.
sourceraw docstring

get-cpu-valuesclj

(get-cpu-values last-snapshot)

Inputs: [last-snapshot :- CpuUsageSnapshot] Returns: CpuUsageSnapshot

Given a recent snapshot of CPU Usage data, compute the CPU usage percentage since the snapshot, and return an updated snapshot.

Inputs: [last-snapshot :- CpuUsageSnapshot]
Returns: CpuUsageSnapshot

Given a recent snapshot of CPU Usage data, compute the CPU usage percentage
since the snapshot, and return an updated snapshot.
sourceraw docstring

get-process-cpu-timeclj

(get-process-cpu-time)

Get the total CPU time spent by the process since startup.

Get the total CPU time spent by the process since startup.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close