Cygprofile: Telemetry benchmarking support.

The Clank orderfile is being improved as part of an effort to improve
Clank memory usage [1]. One step in this effort is to give telemetry
benchmarks more control over instrumentation profiling.

In this CL I extend the devtools RequestMemoryDump command to also
tell instrumentation support to dump the current profile. This only
happens if chrome is compiled with instrumentation turned on
(use_order_profiling=true). The instrumentation dump is done at the
same time as the memory dump is handled on the client side.

[1] https://docs.google.com/document/d/1dAt_puAX4SyqXDOdglxe6ku9GwnyBiOMjHAsDNwN0HY/edit#

Bug: 843561
Change-Id: I6d08e1cd24dc6f16ca12f8fa519ab9725d3ed914
Reviewed-on: https://chromium-review.googlesource.com/1087959
Commit-Queue: Matthew Cary <mattcary@chromium.org>
Reviewed-by: agrieve <agrieve@chromium.org>
Reviewed-by: Primiano Tucci <primiano@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Benoit L <lizeb@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#569210}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f25fc5924e8c1ad91493607d18d19af218aa7580
1 file changed