There are currently two implementations of heap profiling in Chrome. I'd like to remove the older one [--enable-heap-profiling] and replace it with the newer one [--memlog].
This work is tracked in: https://bugs.chromium.org/p/chromium/issues/detail?id=758739
I recently discovered that --enable-heap-profiling works for Android Webview [because it's implemented in base], but --memlog is not, because it's implemented in chrome/, which isn't compiled for Android webview. While this feature has historically not been used, I've been informed that the WebView team intends to use it in the future to study memory usage.
My current plan is to move the logic from chrome/ to components/services/heap_profiling. But I will still need to hook up the control logic for Android WebView. I'm not familiar with the process architecture and control flow for Android WebView. Is there documentation/design docs somewhere?
Comment 1 by erikc...@chromium.org
, Mar 30 2018