Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: chrome/browser/task_profiler/auto_tracking.h

Issue 9125015: Implement profiler log writing at shutdown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update for review comments Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/task_profiler/auto_tracking.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_TASK_PROFILER_AUTO_TRACKING_H_
6 #define CHROME_BROWSER_TASK_PROFILER_AUTO_TRACKING_H_
7 #pragma once
8
9 #include "base/file_path.h"
10 #include "base/tracked_objects.h"
11
12 //------------------------------------------------------------------------------
13 // Provide simple way to to start global tracking, and to tear down tracking
14 // when done. The design has evolved to *not* do any teardown (and just leak
15 // all allocated data structures). This class is currently used to ensure
16 // that the profiler data is output during shutdown, if this feature has been
17 // requested.
18
19 namespace task_profiler {
20
21 class AutoTracking {
22 public:
23 AutoTracking() {
24 tracked_objects::ThreadData::Initialize();
25 }
26
27 ~AutoTracking();
28
29 void set_output_file_path(const FilePath &path);
30
31 private:
32 FilePath output_file_path_;
33
34 DISALLOW_COPY_AND_ASSIGN(AutoTracking);
35 };
36
37 } // namespace task_profiler
38
39 #endif // CHROME_BROWSER_TASK_PROFILER_AUTO_TRACKING_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/task_profiler/auto_tracking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698