Skip to content

add record option: --period <n>, that write an output file every <n> seconds#827

Open
wugifer wants to merge 3 commits into
benfred:masterfrom
wugifer:master
Open

add record option: --period <n>, that write an output file every <n> seconds#827
wugifer wants to merge 3 commits into
benfred:masterfrom
wugifer:master

Conversation

@wugifer
Copy link
Copy Markdown

@wugifer wugifer commented Mar 12, 2026

add record option: --period , that write an output file every seconds

below is the result:

20260312-py-spy.exe record --output output.svg --period 60 --pid 6980
py-spy> Sampling process 100 times a second. Press Control-C to exit.

Wrote period output to 'output-0.svg' (4 samples)
Wrote period output to 'output-1.svg' (2 samples)
Wrote period output to 'output-2.svg' (2 samples)
Wrote period output to 'output-3.svg' (1 samples)
Wrote period output to 'output-4.svg' (2 samples)
Wrote period output to 'output-5.svg' (3 samples)
Wrote period output to 'output-6.svg' (6 samples)
Wrote period output to 'output-7.svg' (2 samples)
Wrote period output to 'output-8.svg' (2 samples)
Wrote period output to 'output-9.svg' (4 samples)
Wrote period output to 'output-10.svg' (3 samples)
Wrote period output to 'output-11.svg' (1 samples)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant