-
Notifications
You must be signed in to change notification settings - Fork 872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable chromium metrics providers #26294
base: master
Are you sure you want to change the base?
Conversation
A test build to check crash reporting: https://ci.brave.com/job/test-brave-browser-build-macos-arm64/713/ |
// This object is created by the metrics service before threads, but it | ||
// needs the UserPerformanceTuningManager to exist. At this point it's | ||
// instantiated, but still needs to be initialized. | ||
performance_manager::MetricsProviderDesktop::GetInstance()->Initialize(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we chromium_src MetricsProviderDesktop to make Initialize()
a noop, instead of this patch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue is GetInstance() == nullptr
, not with Initialize()
.
We can try to use chromium_src
for this file to replace MetricsProviderDesktop
to someFake MetricsProviderDesktop
For brave/brave-browser#41947
Chromium collects a lot of metrics to send via UMA/UKM.
We don't need them, because we don't send them anyway.
Disabling this helps to save some CPU and memory.
TODO:
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: