p-e-w / hegemon

A modular system monitor written in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow stream providers to carry updatable state

p-e-w opened this issue · comments

In CPUStreamProvider the streams for each core currently have to retrieve the full CPU statistics whenever value is called.

This work duplication could be reduced if stream providers were themselves invoked once per update cycle. The statistics could be retrieved by the provider then, and shared by all individual streams belonging to it.