Application CPU usage

I found it’s possible to tell amount of cpu usage of the audio stuff in Juce with AudioDeviceManager::getCpuUsage but is it not possible to tell the cpu usage of the whole application?

I’ve never written anything to get that info. It’d require some OS hackery…