-
Notifications
You must be signed in to change notification settings - Fork 410
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
Import dhat profiles #3128
Import dhat profiles #3128
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3128 +/- ##
==========================================
+ Coverage 88.76% 88.81% +0.04%
==========================================
Files 255 256 +1
Lines 20808 20930 +122
Branches 5331 5346 +15
==========================================
+ Hits 18470 18588 +118
- Misses 2162 2166 +4
Partials 176 176
Continue to review full report at Codecov.
|
I forgot to remove the |
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.
Thanks for this addition, this looks very useful!
When I try the deploy preview, I get a hang quite easily, by clicking here and there in the tracks, here is a profile I got from my local dev: https://share.firefox.dev/2O2mN1c
Also I don't see anything in the tracks, is that expected?
Otherwise this looks reasonable, I left a few comments with mostly questions and comments. I'm not approving mainly because of the 2 above problems, but the code looks fine otherwise.
Thanks!
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.
marking as "request changes" just for the sake of having the correct status in the list of PR.
Thanks. I still need to look at the feedback, but I've been busy with the 0.2 release on ICU4X. I still plan on looking at this when I get a bit of time. |
I accidentally clobbered a Gecko build, so I took the time to finally get back to addressing the review on this 😅 |
@gregtatum have you seen this comment when you handled the review comments?
This still seems to happen. Thanks! |
I think I missed your hang comment. I'm not reproducing, and I'm a bit unclear on the STR. I'm clicking around but things seem fine:
This is expected, as there is no timeline data. It's only the summary. |
Thanks a lot for addressing the issue of reusing the thread object! Regarding the hang, this is happening when I click around in the timeline, mostly when I click on the tracks to select them, but I got it also when I clicked always in the same track. The console says: I'd be happy merging this and you can handle this issue in a separate PR, especially that you'll be one of the only users of the feautre ;-) Up to you. |
const newSelectedCallNode = | ||
newSelectedStack === null | ||
newSelectedStack === null || newSelectedStack === undefined |
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.
thanks for the fix !!
curious that it wasn't deterministic and only happened sometimes...
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.
Yeah, I think the real fix would be to check how the sample index is being generated, as it should be a null
if there are no samples.
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.
However, that was a lot more work with more call sites, this fix was expedient.
* Support dhat imports (see #3128 for more information) * Remove mentions of the old add-on * A few fixes in the tooltips dimensioning * Prepare support for network requests cancellations
Edit: This is now ready to review. Please ignore the first commit, as it's from #3222. Also note the code diff size is from snapshot churn. I flagged both of you for review since I don't know your workload, but I only need one person to do the review.
It adds support for importing dhat memory profiles, specifically from dhat-rs. The file format is part of the valgrind tools. We're using this tool as part of our memory benchmarks for ICU4X, and I would like to be able to link to profiles if possible. I couldn't really figure out how to read the built in viewer, which is a bit awkward.
Here is a profile to test with:
dhat-heap.json.zip
Here is a deploy preview