Add two new profiling modes for OOP HP.

kAllRenderers will profile all renderers. This allows a user to easily debug
renderer-based memory issues. Adding this mode also allows the removal of some
testing code that had the same effect.

kManual allows the user to manually specify the processes to profile via
chrome://memory-internals. If the user starts profiling a process while in
another mode, the mode will change to kManual for simplicity.

This CL renames the function ShouldProfileProcessType to
ShouldProfileNonRendererProcessType. This CL fixes a bug in
BackgroundProfilingTrigger whereby renderers would never be profiled, since
ShouldProfileProcessType() was incorrectly being used. This logic is no longer
necessary since BackgroundProfilingTrigger queries for all profiled processes by
pid.

Bug: 
Change-Id: Ibeca2346f1629292ca17678081cf0aec68a85ab3
Reviewed-on: https://chromium-review.googlesource.com/818181
Commit-Queue: Erik Chen <[email protected]>
Reviewed-by: Albert J. Wong <[email protected]>
Reviewed-by: Brett Wilson <[email protected]>
Cr-Commit-Position: refs/heads/master@{#523275}
15 files changed