mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00

This adds an about:memory branch, "ipc-channels", which counts cross-process IPC channels (ProcessLink, IPC::Channel) broken down by the top-level IPDL actor name; these use OS resources which may be limited (file descriptors on Linux and Mac). Intra-process use of IPC (ThreadLink) is not counted. The maximum channel count for each actor type is reported in another branch, "ipc-channels-peak". This might be useful if there are conditions that cause transient fd exhaustion, for example. This patch also works around a problem where MessageChannel was trying to register reporters too early in child processes, and failing. MozReview-Commit-ID: CGEwny2ipcu --HG-- extra : rebase_source : ad526f03bbef891f4474225a8e36a7ed9e3acdab