Skip to content

feat(chore): new Deck metrics#10100

Merged
Pessimistress merged 2 commits intomasterfrom
x/stats
Mar 18, 2026
Merged

feat(chore): new Deck metrics#10100
Pessimistress merged 2 commits intomasterfrom
x/stats

Conversation

@Pessimistress
Copy link
Copy Markdown
Collaborator

Change List

  • Add new metrics to Deck (see doc update)
  • Fix GPU memory reporting

@Pessimistress Pessimistress requested a review from ibgreen March 15, 2026 04:00
)();

if (stats) {
stats.get('Redraw Layers').add(visibleCount);
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was unreachable code

Comment thread modules/core/src/lib/deck.ts
@coveralls
Copy link
Copy Markdown

coveralls commented Mar 15, 2026

Coverage Status

coverage: 91.057% (+0.007%) from 91.05%
when pulling 3b9e4d3 on x/stats
into 4e55761 on master.

@Pessimistress Pessimistress marked this pull request as ready for review March 17, 2026 23:18
Comment thread modules/core/src/lib/deck.ts
metrics.cpuTimePerFrame = stats.get('CPU Time').getAverageTime();

const memoryStats = luma.stats.get('Memory Usage');
const memoryStats = luma.stats.get('GPU Time and Memory');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes...

Copying from the stats object using user facing strings is obviously fragile. If this is just for a one or two values it might be better for luma to provide a metrics api for those, or add more stable ids to the Stats,...

My idea was that the StatsWidget would show the various stats objects from deck and luma so that the user would have all the info available, not sure if that was implemented.

@Pessimistress Pessimistress merged commit ec090f3 into master Mar 18, 2026
5 checks passed
@Pessimistress Pessimistress deleted the x/stats branch March 18, 2026 04:44
@chrisgervang chrisgervang added this to the v9.3 milestone Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants