pre-commit: add codespell (#25571)

This commit is contained in:
Adeeb Shihadeh
2022-08-30 11:20:55 -07:00
committed by GitHub
parent ff3ebbb13b
commit 6590fb2b93
48 changed files with 74 additions and 65 deletions

View File

@@ -5,8 +5,8 @@ System tools like top/htop can only show current cpu usage values, so I write th
Features:
Use psutil library to sample cpu usage(avergage for all cores) of openpilot processes, at a rate of 5 samples/sec.
Do cpu usage statistics periodically, 5 seconds as a cycle.
Caculate the average cpu usage within this cycle.
Caculate minumium/maximium/accumulated_average cpu usage as long term inspections.
Calculate the average cpu usage within this cycle.
Calculate minumium/maximum/accumulated_average cpu usage as long term inspections.
Monitor multiple processes simuteneously.
Sample usage:
root@localhost:/data/openpilot$ python selfdrive/debug/cpu_usage_stat.py boardd,ubloxd