tikv / pprof-rs

A Rust CPU profiler implemented with the help of backtrace-rs
Apache License 2.0
1.29k stars 99 forks source link

Restart syscalls interrupted by SIGPROF when possible #167

Closed funbringer closed 1 year ago

funbringer commented 1 year ago

This is more convenient, because one would no longer need to check for EINTR in certain places. Of course, there's a bunch of syscalls like epoll which may still return EINTR, but at least pprof will be less likely to break sloppy code.

YangKeao commented 1 year ago

Good job! Please add the sign-off :heart:.

funbringer commented 1 year ago

Done! Thank you for the quick reply.