astrofrog / astrofrog/psrecord

Empty results when psrecord starts a command

Open
#24 2 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
680
Forks
79
PR merge metrics
No merged PRs in 30d

Description

`psrecord --plot 0.png --interval 0.1 "python -m timeit '2 * 2'"`

[![does not work][1]][1]

There's workaround with bash which works:
`python -m timeit '2 * 2' & psrecord --plot 1.png --interval 0.1 $!`

[![works][2]][2]

[1]: https://i.stack.imgur.com/eigfA.png
[2]: https://i.stack.imgur.com/4dw3V.png

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported `psrecord --plot 0.png --interval 0.1 "python -m timeit '2 * 2'"` command and compare its behavior with the working bash workaround. Trace how psrecord launches and monitors a command; done means direct command startup produces a non-empty CPU and memory plot like the workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.