memlog is a small cross-platform .NET console tool for logging process memory and CPU usage to CSV.
It runs on Windows, Linux, and macOS as long as the target .NET runtime is available.
dotnet build MemLog.slnxdotnet run --project src -- <process_name> [options]Examples:
dotnet run --project src -- chrome
dotnet run --project src -- notepad
dotnet run --project src -- dotnet -i 2 -d 60 --summary
dotnet run --project src -- nginx -o nginx_log.csv -i 10| Option | Description |
|---|---|
-i, --interval SECONDS |
Polling interval, in seconds. Default: 5. |
-o, --output FILE |
Output CSV file. Default: auto-named. |
-d, --duration SECONDS |
Stop after N seconds. |
--no-header |
Skip the CSV header row. |
--summary |
Print min/max/average statistics on exit. |
-h, --help |
Show help. |
CPU is reported as percent of total host CPU capacity, normalized by processor count.
Process names are matched as case-insensitive substrings. On Windows, inspect process names with:
Get-Process | Where-Object ProcessName -like "*name*"On Linux/macOS, inspect process names with:
ps aux | grep <name>