benfred / py-spy

Sampling profiler for Python programs
MIT License
12.16k stars 401 forks source link

Can py-spy add timestamp automatically? #548

Open LukeLIN-web opened 1 year ago

LukeLIN-web commented 1 year ago

Current example is py-spy record -o profile.svg -- python microbatch_reddit_quiver_queue.py Can py-spy add timestamp automatically? So that I don't need to rename the files

Jongy commented 1 year ago

Try py-spy record -o profile_$(date).svg -- python microbatch_reddit_quiver_queue.py ?