How can I reduce my Idle Wake Ups app?

Mavericks is crazy that there are too many “awakenings of awakening” in my application. I know that this is due to timers and the way OS X tries to make my application more energy efficient. How can I debug these idle spills? Or what are the likely causes?

+5
source share
2 answers

Possible causes are typical reasons expected from:

  • Disabling Timers
  • Threads blocked on I / O (including network and IPC) wake up
  • Streams are blocked when the gateways skip.
  • Fake awakenings (but they are too rare to cause your problem).

If you run tools, you can try System Trace and System Usage tools to diagnose when your threads are waking up.

+2
source
+1
source

Source: https://habr.com/ru/post/1204792/


All Articles