[tracing] Early initialize TracingController for startup tracing
commit38862bdd5e19afb69b67741cfca68d5a40f8dd37
authorprimiano <primiano@chromium.org>
Wed, 16 Sep 2015 12:29:04 +0000 (16 05:29 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 16 Sep 2015 12:29:46 +0000 (16 12:29 +0000)
treecff132b3f074fce40c7dc7889762458f63cbef5e
parent7e132058d54b5dfa054dd5bab8290cc76f00c1f8
[tracing] Early initialize TracingController for startup tracing

TracingController is required for memory-infra in tracing.
When startup tracing is used in single-process mode, the
TracingController is enabled only on EndStartupTracing(), which
is too late to get any memory-infra dumps in the trace.
This trivial change just anticipates the initialization of
TracingController.
In multi-process mode the TracingController would be initialized
anyways when receiving the first ChildSupportsTracing message.

BUG=532064,524057
TEST=chrome --no-sandbox --single-process --trace-startup=disabled-by-default-memory-infra --trace-startup-duration=4 --trace-startup-file=x.json

Review URL: https://codereview.chromium.org/1345163002

Cr-Commit-Position: refs/heads/master@{#349102}
content/browser/browser_main_loop.cc