Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memlog

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.

Build

dotnet build MemLog.slnx

Run

dotnet 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

Options

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>

About

Cross-platform .NET console tool for logging process memory and CPU usage to CSV.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages