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

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

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
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 #include "chrome/browser/task_profiler/auto_tracking.h"
6 #include "chrome/browser/task_profiler/task_profiler_data_serializer.h"
7
8 namespace task_profiler {
9
10 AutoTracking::~AutoTracking() {
11 if (!output_file_path_.empty()) {
12 TaskProfilerDataSerializer output;
13 output.WriteToFile(output_file_path_);
14 }
15 }
16
17 void AutoTracking::set_output_file_path(const FilePath &path) {
18 output_file_path_ = path;
19 }
20
21 } // namespace task_profiler
OLDNEW
« no previous file with comments | « chrome/browser/task_profiler/auto_tracking.h ('k') | chrome/browser/task_profiler/task_profiler_data_serializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698