aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/statistics.py
Commit message (Collapse)AuthorAgeFilesLines
* Run black on all first party python codeTomasz Kramkowski2025-08-061-16/+28
|
* statistics: Improve Python3 compatibilityKevin O'Connor2021-12-151-1/+1
| | | | | | Reported by @vladimir-poleh . Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Add Python2 module wrappers and use Python3 module namingKevin O'Connor2021-10-041-1/+1
| | | | | | | Add wrappers for some common Python modules so that the code can run on both Python2 and Python3. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* statistics: Export the OS and process load in a get_status() methodKevin O'Connor2021-04-091-17/+45
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* statistics: Exit loop as soon as MemAvailable foundKevin O'Connor2020-03-221-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* statistics: Add system statsKevin O'Connor2020-03-221-2/+18
| | | | | | | Report os load, process cpu time, and system available memory to each statistics report. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Convert printer_state("ready") to an event handlerKevin O'Connor2019-01-081-7/+7
| | | | | | | Convert all users of the printer_state("ready") handler to register a "klippy:ready" event handler instead. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* statistics: Move stats handling to new "extras" moduleKevin O'Connor2018-09-021-0/+29
Move the generation of statistics to its own module. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>