Skip to content

Update GCMinor profile markers to remove object group information and move calculation of tenuring allocation rate to the browser - #5440

Merged
julienw merged 3 commits into
firefox-devtools:mainfrom
jonco3:main
May 16, 2025
Merged

Update GCMinor profile markers to remove object group information and move calculation of tenuring allocation rate to the browser#5440
julienw merged 3 commits into
firefox-devtools:mainfrom
jonco3:main

Conversation

@jonco3

Copy link
Copy Markdown
Contributor

As per commit messages, this removes handling of object group data that has not been present in profile data for years and updates tenuring allocation information so it's calculated in the browser rather than in the profiler. This change only affects GCMinor markers.

This data relates to ObjectsGroups, a feature that was removed in December 2020
in bug 1673553. Since then this data has not been present in profiles.
… of the
profile data. Remove the calculation from the profiler.
Remove the cell count allocation rate as it's not that useful, leaving the byte
count rate only.
The corresponding browser change is: https://bugzilla.mozilla.org/show_bug.cgi?id=1963597
@codecov

codecovBot commented May 1, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.03%. Comparing base (8b83c7a) to head (9a6ede2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #5440 +/- ##
==========================================
- Coverage 86.03% 86.03% -0.01% 
==========================================
Files 312 312 Lines 30365 30354 -11 Branches 8299 8293 -6 ==========================================
- Hits 26126 26115 -11 + Misses 3645 3644 -1 - Partials 594 595 +1 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

);
}
if (evictTimeMS) {
if (nursery.strings_tenured && nursery.strings_deduplicated) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What's the plan for the older profiles that don't have these values?
I think you told me that it's OK they don't show the data because the calculation was kind of wrong anyway, but can you please confirm that?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Older profiles will not show this field, but they already didn't show this since a change in December 2021 broke this calculation.

With this change new profiles will show the field and old profiles will be unaffected (i.e. they still won't have the field).

@julienwjulienw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you!

@julienw
julienw merged commit ea9787b into firefox-devtools:mainMay 16, 2025
@julienwjulienw mentioned this pull request May 16, 2025
julienw added a commit that referenced this pull request May 16, 2025
Changes:
[Jon Coppeard] Update GCMinor profile markers to remove object group information and move calculation of tenuring allocation rate to the browser (#5440)
Sign up for freeto 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.

2 participants

@jonco3@julienw