-
Notifications
You must be signed in to change notification settings - Fork 2
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
Treat syscalls as nodes #112
Conversation
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you check if it doesn't mess up the inlining? It shouldn't since the syscalls are always leaves in the tree, but it's worth verifying
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
c690afe
to
1086f92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you check if it doesn't mess up the inlining? It shouldn't since the syscalls are always leaves in the tree, but it's worth verifying
Yup, when I was testing I did it for both inlining and non-inlining, and compared to the same artifacts using code from main, nothing looked out of place or suspicious
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
I am aware the review increased in size notably, sorry for that (also I tend to put review changes into one commit, which now I realized may be a pain to review in such big reviews). Please let me know if you want me to split it to smaller ones. sorry. |
crates/cairo-profiler/src/trace_reader/function_trace_builder/syscall_trace.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder/syscall_trace.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder/syscall_trace.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
crates/cairo-profiler/src/trace_reader/function_trace_builder.rs
Outdated
Show resolved
Hide resolved
bdee013
to
67ed200
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM logic wise, just nitpicks. Really good job!
Closes #88
Introduced changes
Checklist
CHANGELOG.md
Minimal example: