-
Notifications
You must be signed in to change notification settings - Fork 118
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 support for bpftrace #56
Conversation
I'll investigate why Windows is failing. I now have a Virtualbox setup for Windows after all that num-format system locale business... |
Think I got all the comments. Let me know what you think. |
Ah, @brendangregg just responded in brendangregg/FlameGraph#201 and pointed out that they're actually adding direct support for the |
Ok, so pull out all the bpftrace-related stuff, but keep our trait / architecture / documentation stuff? (means I don't have to re-write the parser :)) |
Apparently perl scripts won't just run in travis' windows environment; so instead of running stackcollapse-bfptrace.pl in the test, let's just use it's pre-computed output.
Since hopefully inferno will eventually have as many binary applications as the original perl version (one for each "frontend" such as perf and bpftrace), this is an initial attempt at creating an abstraction that will make writing all those very similar applications easier. Also - Unrelated to the above, this commit incorporates a suggested change to the test in bptrace.rs.
…dows problem by telling git not to mess with the line endings of our test data
* Documentation * Rename `collapse_with` to `collapse_file` * Make sure git leaves the line-endings of all our data files alone * Prefer `use super::foo` to `use crate::foo` * Keep separate modules for each `Frontend` implementation * Rename `PerfOptions` back to `Options` * Remane `Perf` constructor to `with_options` (and change arg back to `opt`) * Eliminate `Bpftrace::new` * Other minor changes
a23f61c
to
0ef871c
Compare
I hope I just did that right. I still don't understand git very well. |
Looks perfect! I'm not sure you needed to do a force-push or rebase, but it's fine either way :) Let's see what Travis says, and then merge. Sorry for all the effort you had to go through 😅 |
Codecov Report
@@ Coverage Diff @@
## master #56 +/- ##
=========================================
- Coverage 76.48% 75.78% -0.7%
=========================================
Files 13 14 +1
Lines 1199 1210 +11
=========================================
Hits 917 917
- Misses 282 293 +11
Continue to review full report at Codecov.
|
Hopefully this does the trick. Git is still quite confusing to me. Thanks for the help!