Maoni0 / realmon

A monitoring tool that tells you when GCs happen in a process and some characteristics about these GCs
MIT License
281 stars 25 forks source link

Add basic support for console redirection #38

Closed onyxmaster closed 2 years ago

onyxmaster commented 2 years ago

This is done to allow running the tool in the background non-interactively to collect logs with something like nohup dotnet-gcmon -n some-name > some-name-gc.log &, or, even better nohup dotnet-gcmon -n some-name | systemd-cat -t dotnet-gcmon &.

onyxmaster commented 2 years ago

Hey @Maoni0, could you please take a look at this? This is really useful for background non-interactive monitoring.

Maoni0 commented 2 years ago

sorry! I was oof and totally missed this PR. looks good! I'll merge. thanks very much!