con / duct

A helper to run a command, capture stdout/stderr and details about running
MIT License
1 stars 1 forks source link

Collect first sample right after running the command #22

Closed yarikoptic closed 3 weeks ago

yarikoptic commented 1 month ago

So we have some information recorded . ATM there is also might be a bug that we do not aggregate / report anything even if recorded a sample. E.g. here sleeping for 200 ms, with sampling interval of 100 ms we get no final report whatsoever

$> duct --sample-interval 0.1 -p duct-out_ sleep 0.2
{"Command": "sleep", "System": {"uid": "yoh", "memory_total": 135060111360, "cpu_total": 16}, "ENV": [{}], "GPU": []}
(dev3) 3 12140.....................................:Mon 06 May 2024 08:41:31 AM EDT:.
smaug:/tmp
$> cat duct-out_info.json                           
{"Command": "sleep", "System": {"uid": "yoh", "memory_total": 135060111360, "cpu_total": 16}, "ENV": [{}], "GPU": []}%