Y
Hacker News
new
|
ask
|
show
|
jobs
by
nyanpasu64
660 days ago
How do you gather profiling information for kernel function calls from a user program?
1 comments
qsantos
660 days ago
I'll write an article on the flamegraphs specifically, but to get the data, just follow Julia's article!
https://jvns.ca/blog/2017/03/19/getting-started-with-ftrace/
link
ismaildonmez
660 days ago
Could you clarify how are you testing the speed of the first example where you are not writing anything to stdout? Thanks.
link
qsantos
660 days ago
For the first Rust program, where I just write to memory, I just use the time utility when running the program from zsh. Then, I divide the number of bytes written by the number of seconds elapsed. That's why it's not an infinite loop ;)
link
ismaildonmez
660 days ago
Thanks!
link
https://jvns.ca/blog/2017/03/19/getting-started-with-ftrace/