https://github.com/astrofrog/process-log
A utility to log the CPU and memory usage of all processes over time. Experimental!
https://github.com/astrofrog/process-log
Last synced: 26 days ago
JSON representation
A utility to log the CPU and memory usage of all processes over time. Experimental!
- Host: GitHub
- URL: https://github.com/astrofrog/process-log
- Owner: astrofrog
- License: bsd-2-clause
- Created: 2015-08-13T12:51:47.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-13T13:03:38.000Z (almost 11 years ago)
- Last Synced: 2026-05-24T07:42:13.251Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# process-log
A utility to save the CPU and memory usage of all processes over time. This is
experimental and still in development. The idea is to be able to later go back
and check whether any processes are systematically using CPU even when inactive
(rather than checking ``top`` continuously).
To use:
python process-log.py
Control-C to stop for now. This samples processes every 20 seconds and writes
them all to an SQLite database named ``process-log.db`` which contains the
date, process name and PID, CPU usage (in percent), as well as the real and
virtual memory in MB.
The CPU usage is the average since the last sample, so it will not miss
'spikes' in CPU - rather they will be averaged.
I will add a querying/plotting script next.