Index: chrome/browser/task_profiler/auto_tracking.cc |
diff --git a/chrome/browser/task_profiler/auto_tracking.cc b/chrome/browser/task_profiler/auto_tracking.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..866f2603e27f5f3e07f0f954f1f9450ba8b331ad |
--- /dev/null |
+++ b/chrome/browser/task_profiler/auto_tracking.cc |
@@ -0,0 +1,17 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/task_profiler/auto_tracking.h" |
+#include "chrome/browser/task_profiler/task_profiler_data_serializer.h" |
+ |
+namespace task_profiler { |
+ |
+AutoTracking::~AutoTracking() { |
+ if (!output_file_path_.empty()) { |
+ TaskProfilerDataSerializer output; |
+ output.WriteToFile(output_file_path_); |
+ } |
+} |
+ |
+} // namespace task_profiler |