Attention needed from Alex Mitra, Benoit Lize and Michael van Ouwerkerk
Chidera Olibie added 1 comment![Open in Gerrit]()
File android_webview/browser/metrics/memory_metrics_logger.cc
Line 61, Patchset 13: std::optional<uint64_t> malloc_pa_committed_bytes =Chidera Olibie .
resolvedSpoke to Benoit offline and I decided that Malloc PA allocated bytes is what we need for WebView. It tracks how much live objects exist at a time and would be useful in determining memory leaks and overall allocation growth for WebView.
"Size" tracks both allocated objects size and other metrics such as overhead, etc. The size metrics for malloc/partition is currently being overcounted, see b/524274622. So in addition to not being precise enough, it's also currently inaccurate.
I've removed the specific malloc/partition/allocator metrics. While allocator is the main partition, there's nothing stopping the team from adding other partitions in the future. So I'm sticking to malloc/partition which is the parent node for partition alloc allocations. However, this means I've had to add the allocated_objects_size scalar to the parent node.
cc: alex...@chromium.org, li...@chromium.org
Open in GerritRelated details
Attention is currently required from:
- Alex Mitra
- Benoit Lize
- Michael van Ouwerkerk
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I648a9c0e656055aecc90c1bb55c2fbaa805f8e4a
Gerrit-Change-Number: 7878789
Gerrit-PatchSet: 15
Gerrit-Comment-Date: Tue, 16 Jun 2026 11:00:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No