You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Be able to update stats at a frequency that makes sense for the stat in question. So for example, uptime would really only be useful every minute, rather than every second. As would say battery life. No need to poll frequently in those cases
The point being, that by having stat dependent timers, you could reduce CPU usage (less work on every update)
Related to this, some things could even be updated based on notifications only, which would be even better. For example, IOGetSystemLoadAdvisory() (yet to be added), has this note:
"You may more efficiently read the SystemLoadAdvisory level using notify_get_state() instead of IOGetSystemLoadAdvisory. The results are identical. notify_get_state() requires that you pass the token argument received by registering for SystemLoadAdvisory notifications."
The text was updated successfully, but these errors were encountered: