Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stat dependent update frequency #22

Open
beltex opened this issue Feb 6, 2015 · 1 comment
Open

Stat dependent update frequency #22

beltex opened this issue Feb 6, 2015 · 1 comment

Comments

@beltex
Copy link
Owner

beltex commented Feb 6, 2015

  • Something that could be handy
  • 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)
  • Stat config seen in Allow for configurability of metrics #4 & .dshbrc file - for config #14, will help as well for this
@beltex
Copy link
Owner Author

beltex commented Feb 8, 2015

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."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant