Ticket #50 (new enhancement)

Opened 3 years ago

Last modified 3 years ago

Darwin needs CPU usage collector

Reported by: chris Owned by:
Priority: major Milestone:
Component: OSX Version:
Keywords: Cc:

Description

Add collection of CPU stats for OS X / Darwin.

Change History

Changed 3 years ago by chris

One possibility is to pass the output from 'top'. Try the command:

/usr/bin/top -l2 -n0

This will give CPU usage as percentages. You need to parse the second part of the top output to get the updated instantaneous snapshot.

Note: See TracTickets for help on using tickets.