astrofrog / psrecord

Record the CPU and memory activity of a process :chart_with_upwards_trend:
BSD 2-Clause "Simplified" License
591 stars 76 forks source link

Provide an option to log unix timestamp as well #34

Open tonythomas01 opened 6 years ago

tonythomas01 commented 6 years ago

Currently, the intervals configuration are set to log every x seconds and the output starts from 1 making it fit for most cases.

It would be great to have another configuration flag that would log results with the current unix timestamp. I can send a PR from my fork actually if people are interested in this.

astrofrog commented 6 years ago

Sounds good to me!

bugcy013 commented 6 years ago

Hi Guys,

very good feature. I am waiting for this feature.

+1

-Dhanasekaran.

jgehrcke commented 5 years ago

Apart from logging the unix timestamp, it's also a good idea I think to log a timestamp coming from a monotonic time source (see e.g. https://github.com/jgehrcke/goeffel#timestamps).