Implement profiler log writing at shutdown
Add a flag to enable writing profile data during shutdown
(--profiling-output-file=$FILE).
Add TaskProfilerDataSerializer. This class is responsible for
collecting and outputing profiler data. Currently, the collection part
is very simple, since ThreadData::ToValue() is static. It should become
more substantial when we add support for multi-process profiler dumps.
This class has to be located outside of base/ because it needs to access
Chrome-specific functions (ie. for fetching the userAgent).
Move AutoTracking class to the chrome/browser/task_profiler directory.
It needs to access the TaskProfilerDataSerializer, but components in
base/ should not have access to this Chrome-specific class.
BUG=107265, 109459
TEST=
Review URL: http://codereview.chromium.org/9125015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121515 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 61b53f971c0c44895e4eda15205d0d61211a1f91
1 file changed