Index: chrome/browser/task_profiler/task_profiler_data_serializer.h |
diff --git a/chrome/browser/task_profiler/task_profiler_data_serializer.h b/chrome/browser/task_profiler/task_profiler_data_serializer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ed8685f933bbfe0417b4fdb188bcf5262ddc1ac7 |
--- /dev/null |
+++ b/chrome/browser/task_profiler/task_profiler_data_serializer.h |
@@ -0,0 +1,22 @@ |
+// 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. |
+ |
+#ifndef CHROME_BROWSER_TASK_PROFILER_TASK_PROFILER_DATA_SERIALIZER_H_ |
+#define CHROME_BROWSER_TASK_PROFILER_TASK_PROFILER_DATA_SERIALIZER_H_ |
+#pragma once |
+ |
+class FilePath; |
+ |
+namespace task_profiler { |
+ |
+// This class collects task profiler data and serializes it to a file. The file |
+// format is compatible with the about:profiler UI. |
+class TaskProfilerDataSerializer { |
+ public: |
+ bool WriteToFile(const FilePath &path); |
+}; |
+ |
+} // namespace task_profiler |
+ |
+#endif // CHROME_BROWSER_TASK_PROFILER_TASK_PROFILER_DATA_SERIALIZER_H_ |