Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an example of the pstats macro to README (closes #21) #25

Merged
merged 3 commits into from
Apr 27, 2022

Conversation

bicycle1885
Copy link
Member

It also slightly shortens comments following each measurement, which improves visibility in narrow window and on printed paper.

@chriselrod
Copy link
Contributor

Perhaps add an example showing specifying options? It is CPU dependent. The default settings always cause warnings for me, so I always do something like

@pstats "cpu-cycles,(instructions,branch-instructions,branch-misses),(task-clock,context-switches,cpu-migrations,page-faults),(L1-dcache-load-misses,L1-dcache-loads,L1-icache-load-misses),(cache-misses,cache-references),(dTLB-load-misses,dTLB-loads)" begin
    rand(mt, 1_000_000)
end

@bicycle1885
Copy link
Member Author

Thank you, @chriselrod. I added an example to specify events to README.
I'm going to merge this because it's not a big deal anyway.

@bicycle1885 bicycle1885 merged commit c72c379 into master Apr 27, 2022
@bicycle1885 bicycle1885 deleted the readme branch April 27, 2022 04:44
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.

2 participants