Add a "Sample timestamp" field to the sample tooltip in timeline#5322
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5322 +/- ##
=======================================
Coverage 86.08% 86.08%
=======================================
Files 311 311
Lines 29678 29683 +5
Branches 8190 8192 +2
=======================================
+ Hits 25548 25553 +5
Misses 3548 3548
Partials 582 582 ☔ View full report in Codecov by Sentry. |
|
I worry that "Sample time" is ambiguous and might lead people to believe that it means "sample duration". How do you feel about these alternatives?
|
1e31ed5 to
b49933a
Compare
Yeah, you're right about it being ambiguous. I think I would prefer |
Sharing things between components is probably fine. But the reason @fqueze suggested adding this was to make it even more obvious "what" this tooltip belonged to. This way people will see "sample" at first and won't have to think what tooltip this is. I don't think removing "sample" and only leaving "at" solves this problem. |
|
Ah ok I see, it makes sense too. Then I think I'd mildly prefer |
b49933a to
264528a
Compare
|
Thanks, for the review. I merged your and Markus' suggestions and renamed it to
Hm, there could be multiple samples in a pixel and the way we choose these hovered samples could be different. But it's worth taking a look. |
yeah that might be just that. In the screenshot the different might look big but it may not be that big depending on the zoom level (I didn't do the math). |
Updates: [Julien Wajsberg] Some more small refactorings (#5320) [Markus Stange] Pass the correct sample index offset to getTimingsForCallNodeIndex for the flame graph tooltip. (#5328) [Nisarg Jhaveri] Update docs to include Android Studio/Simpleperf trace file support (#5309) [Markus Stange] Don't pass the preview filtered thread to getTimingsForPath/CallNodeIndex. (#5329) [Nazım Can Altınova] Add a "Sample timestamp" field to the sample tooltip in timeline (#5322) [Markus Stange] Reduce confusion between call tree summary strategy aware samples and regular samples (#5330) [Markus Stange] Rename this getCounter selector to getCounters. (#5337) [Markus Stange] Make sample indexes compatible between the unfiltered and (preview) filtered call tree summary strategy samples when using an allocation strat> [Markus Stange] Remove some code that uses the preview filtered thread (#5336) [Markus Stange] Remove getMarkerSchemaName special cases - look up marker schemas from data.type and nothing else (#5293) [Markus Stange] Remove the makeProfileSerializable step - make the raw in-memory profile match the format that's stored in the file (#5287) [Nicolas Chevobbe] Adapt FilterNavigatorBar to High Contrast Mode. (#5257) [Nicolas Chevobbe] Adapt Tracks to High Contrast Mode. (#5252) [Markus Stange] Adjust string index fields in markers when merging threads (#5344) [Theodoros Nikolaou] Localize title and aria label in ProfileName (#5345) [Julien Wajsberg] Adapt time-slice selection in High Contrast Mode. (#5259) [Markus Stange] Make stackTable (sub)category derived data (#5342) [Markus Stange] Compute cpuRatio values when computing the derived thread (#5288) [Nazım Can Altınova] Add a context menu item to open the JS scripts in DevTools debugger (#5295) Also thanks to our localizers: el: Jim Spentzos fr: Théo Chevalier it: Francesco Lodolo [:flod] zh-TW: Pin-guang Chen


Fixes #5319.
This also came up from a review comment here: #5298 (comment)
It sounds like a good idea to add the sample time to the sample tooltips. So 1) it will be more explicit that this is indeed a single sample. 2) It could be useful to know the precise time of a sample, so we can potentially compare different samples.
Apparently this component wasn't localized. So I filed #5321 for that. I'm not so sure if we should really localize it right now, because I think last time we discussed, we were saying that if we have
<label>: <value>data in a view and value itself is not localized, maybe we shouldn't localize the label either. But I'm open to suggestions. I think this can be done outside of this PR.Deploy preview / production
Example screenshot:
