summaryrefslogtreecommitdiffstats
path: root/base/tracked_objects.h
diff options
context:
space:
mode:
authorrlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-10 20:39:23 +0000
committerrlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-10 20:39:23 +0000
commit61b53f971c0c44895e4eda15205d0d61211a1f91 (patch)
treed2740af2b6d6ddc9ec09f357d074323c77e33632 /base/tracked_objects.h
parentfc93e2fead585ef8feb334a2861a9727464ae93d (diff)
downloadchromium_src-61b53f971c0c44895e4eda15205d0d61211a1f91.zip
chromium_src-61b53f971c0c44895e4eda15205d0d61211a1f91.tar.gz
chromium_src-61b53f971c0c44895e4eda15205d0d61211a1f91.tar.bz2
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
Diffstat (limited to 'base/tracked_objects.h')
-rw-r--r--base/tracked_objects.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/base/tracked_objects.h b/base/tracked_objects.h
index c0674cc..a108388 100644
--- a/base/tracked_objects.h
+++ b/base/tracked_objects.h
@@ -705,30 +705,6 @@ class BASE_EXPORT DataCollector {
DISALLOW_COPY_AND_ASSIGN(DataCollector);
};
-//------------------------------------------------------------------------------
-// Provide simple way to to start global tracking, and to tear down tracking
-// when done. The design has evolved to *not* do any teardown (and just leak
-// all allocated data structures). As a result, we don't have any code in this
-// destructor, and perhaps this whole class should go away.
-
-class BASE_EXPORT AutoTracking {
- public:
- AutoTracking() {
- ThreadData::Initialize();
- }
-
- ~AutoTracking() {
- // TODO(jar): Consider emitting a CSV dump of the data at this point. This
- // should be called after the message loops have all terminated (or at least
- // the main message loop is gone), so there is little chance for additional
- // tasks to be Run.
- }
-
- private:
-
- DISALLOW_COPY_AND_ASSIGN(AutoTracking);
-};
-
} // namespace tracked_objects
#endif // BASE_TRACKED_OBJECTS_H_