Description[tracing] Send smaps file desciptor to child process for tracing
The child processes cannot open the /proc/self/smaps due to the
sandboxing. So, for tracing purpose the opened smaps file for child is
sent to the child process via IPC. This file is closed when tracing is
disabled.
Note: The smaps file descriptor is sent only when tracing is enabled
with "disabled-by-default-memory-infra" category and with a heavy dump
trace config.
See design doc: https://goo.gl/v7HgBC.
Security concerns:
Tracing can be enabled only by the user or an extension with "debugger"
permission. When the user has enabled tracing manually, it is assumed
that the renderers can be compromised. When tracing is enabled by a
"debugger" extension, the user sees a pop up on each tab that the
renderer is unsafe. See www.crbug.com/521686.
This CL also sends descriptor of /proc/pid/status file for the child,
so that the process can get its working set size.
BUG=461788
Patch Set 1 #Patch Set 2 : Nits. #Patch Set 3 : Rebase and cleanup #Patch Set 4 : Rebase. #Depends on Patchset: Messages
Total messages: 10 (4 generated)
|