Skip to content
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

Add extra UMA and traces to adblock loading code #33532

Closed
atuchin-m opened this issue Oct 10, 2023 · 1 comment · Fixed by brave/brave-core#20585
Closed

Add extra UMA and traces to adblock loading code #33532

atuchin-m opened this issue Oct 10, 2023 · 1 comment · Fixed by brave/brave-core#20585
Assignees
Labels
dev-concern feature/shields/adblock Blocking ads & trackers with Shields OS/Android Fixes related to Android browser functionality OS/Desktop perf QA/No release-notes/exclude

Comments

@atuchin-m
Copy link
Contributor

To debug and prevent perf issues we need to add extra instrumentation to loading & parsing adblock code.

@atuchin-m
Copy link
Contributor Author

How to debug see the new traces:

  1. Run browser with --trace-startup="brave.adblock" --trace-startup-file=/tmp/trace.json --trace-startup-duration=10
  2. Go to https://ui.perfetto.dev/ and open /tmp/trace.json
  3. Search for the events.

An example of verifying brave/brave-core#20585:
Search for MakeEngineWithRules, check the durations. We could see that we don't parse the default list again.
Screenshot 2023-10-18 at 19 08 30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-concern feature/shields/adblock Blocking ads & trackers with Shields OS/Android Fixes related to Android browser functionality OS/Desktop perf QA/No release-notes/exclude
Projects
None yet
2 participants