question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Marker tooltip and sidebar should make it clear when a stack comes from another thread

See original GitHub issue

Markers can include one stack (under ‘data’), but that stack could possibly come from another thread than where the marker is recorded. The new Markers 2.0 API will make it even easier to do this, so this may become more frequent…

It would be great to show that clearly wherever the stack is displayed, e.g., instead of just “Stack:” we could show something like “Stack from thread ‘name’ (id):”.

Tech note: This information is already present in the Gecko Profile coming from Firefox, in marker.data.stack.tid, e.g. here’s a marker under the main thread (which has tid 930480) :

 [
  12792,
  717.3943,
  717.8658,
  1,
  1,
  { "stack":
    { "processType": "default",
      "name": "",
      "processName": "Parent Process",
      "registerTime": null,
      "unregisterTime": null,
      "samples": {"schema": {"stack": 0, "time": 1, "eventDelay": 2}, "data": [[43656, 717.9065]]},
      "markers": {"schema": {"name": 0, "startTime": 1, "endTime": 2, "phase": 3, "category": 4, "data": 5}, "data": []},
      "pid": 902252,
      "tid": 918636
    },
    "type": "Text",
    "name": "Thread 'QuotaManager IO' created by thread 918636"
  }
 ]

Notice that the marker’s stack’s tid is 918636. That other thread may or may not be present in this profile. Ideally the front-end should try to use the thread’s name if known.

I don’t think this marker.data.stack.tid is currently preserved during processing (I couldn’t find it when downloading a profile json), so I guess this is unfortunately lost for old profiles. Maybe a first step would be to preserve it, so that new profiles will have this information ready for a later step, where the information will be shown as I suggested at the top.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
canovacommented, Oct 21, 2020

@nibble0101 as discussed in Matrix, let’s keep this issue for other applicants since you are working on one already 😃

This is still up for grabs!

0reactions
anap226commented, Nov 4, 2020

Yes @julienw, I am !! Thanks for reopening.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create new Tooltip on not JavaFX Application Thread
is there a way how to create javafx.scene.control.Tooltip in thread which is not "JavaFX Application Thread"? For JavaFX 2.2 - No.
Read more >
Missing feature? Current topic "Yes/No" found marker - Meta Stack ...
This seems like something that you can easily do on your end using bookmarks, and organizing them into folders or separate windows with...
Read more >
Performance Tools Newsletter (H1 2021) - The Mozilla Blog
Capturing a stack is important when you need to know the cause of an event. This will show up on the marker tooltips...
Read more >
Newbie Questions Thread : r/TerraInvicta - Reddit
Is there a way to force events, or certain types of events to still pop up notifications rather than go into the sidebar?...
Read more >
Alpha 12 - Downloads / Releases - Saleae - Logic 2
Reply here or create another thread. ... Protocol bubbles now have a tooltip that displays their content when the content would not ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found