con / duct

A helper to run a command, capture stdout/stderr and details about running
https://pypi.org/project/con-duct/
MIT License
4 stars 2 forks source link

idea: --timestamp-outputs or --json-outputs #213

Open yarikoptic opened 4 weeks ago

yarikoptic commented 4 weeks ago

For debugging it might be useful to know when output was produced. ATM I could pipe output to ts to get stdout annotated. But that would not anyhow help with stderr. Hence I thought it might have been nice to be able to store outputs with

It is useful e.g. to see when command actually output something after "thinking hard". We could then also improve plotting graph with annotation on when tool was producing any stdout and/or stderr output on the timeline of resources consumption.

Sure thing, with buffering all those timings might be "approximate".