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.

Visualize gc-events in UI

See original GitHub issue

From https://github.com/nearform/node-clinic-doctor/pull/42

@mcollina There is no visualization, you can look at the docs if you would like to see it. The problem with gc-stats is that it doesn’t expose all events. I just exposes some always and others only sometimes. It is a bit confusing. The trace_events shows all the events.

Using the trace_events is not currently possible because there I no way of synchronizing the trace_events clock with another clock. The V8 team is currently working on this: https://github.com/nodejs/node/issues/17349

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
mcollinacommented, Jan 3, 2018

This is already implemented and it does not need a special build of V8, you should be able to implement it straight away.

0reactions
mcollinacommented, Aug 13, 2018

These events are interesting also for the CPU diagram, but I wouldn’t highlight there. Some of the spikes are caused by the GC. Il giorno lun 13 ago 2018 alle 15:08 Matteo Collina < matteo.collina@gmail.com> ha scritto:

I think the data about memory collected might be available somewhere. Il giorno lun 13 ago 2018 alle 12:56 Alan Slater notifications@github.com ha scritto:

Great, and I see it’s defined in format/trace-event-decoder.js.

They have start/finish times and durations but no data on amounts of memory recovered or equivalent - so presumably we’d just want to somehow:

a) highlight the time periods during which a GC event was in progess b) maybe also allow the user to see what type of GC event it was at any given point.

It looks like the possible types are:

‘V8.GCScavenger’ // appears to be by far the most common ‘V8.GCMarkSweepCompact’ // aggregated from GCFinalizeMC and GCIncrementalMarkingStart ‘V8.GCCompactor’ // is marked “purpose unknown” ‘V8.GCFinalizeMCReduceMemory’ // is marked “purpose unknown” ‘V8.GCPhantomHandleProcessingCallback’ // is marked “purpose unknown”

Are these GC event time intervals interesting/relevant to any charts other than Memory? For example I think they could be useful for understanding some event loop anomalies judging based on an earlier discussion with Dave.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nearform/node-clinic-doctor/issues/46#issuecomment-412481006, or mute the thread https://github.com/notifications/unsubscribe-auth/AADL41I46KEg1WK3j_PC1T-TkV71zPwyks5uQVtIgaJpZM4Q4QC5 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Event Analytics designs, themes, templates and ... - Dribbble
Event Analytics. Inspirational designs, illustrations, and graphic elements from the world's best designers. Want more inspiration?
Read more >
Event / Schedule UI Ideas - Pinterest
Apr 23, 2021 - Explore Davis Tran's board "Event / Schedule UI Ideas" on Pinterest. See more ideas about event schedule, dashboard design,...
Read more >
Exercise: Open Lists from a Data Visualization
In this section of the exercise, you will map an event handler to the Visualization Clicked event. The event handler will open the...
Read more >
UI events - Android Developers
UI events are actions that should be handled in the UI layer, either by the UI or by the ViewModel. The most common...
Read more >
Event Visualizer - Heap
With the Event Visualizer, anyone can find, name, and manage a complete set of user events, without touching your codebase.
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