(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.
(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.
(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |