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

Side by Side Diff: tools/gn/trace.h

Issue 1492813002: tools/gn: forward declare some base types in trace.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | tools/gn/trace.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TOOLS_GN_TRACE_H_ 5 #ifndef TOOLS_GN_TRACE_H_
6 #define TOOLS_GN_TRACE_H_ 6 #define TOOLS_GN_TRACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h"
11 #include "base/files/file_path.h"
12 #include "base/macros.h" 10 #include "base/macros.h"
13 #include "base/threading/platform_thread.h" 11 #include "base/threading/platform_thread.h"
14 #include "base/time/time.h" 12 #include "base/time/time.h"
15 13
16 class Label; 14 class Label;
17 15
16 namespace base {
17 class CommandLine;
18 class FilePath;
19 }
20
18 class TraceItem { 21 class TraceItem {
19 public: 22 public:
20 enum Type { 23 enum Type {
21 TRACE_SETUP, 24 TRACE_SETUP,
22 TRACE_FILE_LOAD, 25 TRACE_FILE_LOAD,
23 TRACE_FILE_PARSE, 26 TRACE_FILE_PARSE,
24 TRACE_FILE_EXECUTE, 27 TRACE_FILE_EXECUTE,
25 TRACE_FILE_WRITE, 28 TRACE_FILE_WRITE,
26 TRACE_SCRIPT_EXECUTE, 29 TRACE_SCRIPT_EXECUTE,
27 TRACE_DEFINE_TARGET, 30 TRACE_DEFINE_TARGET,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void AddTrace(TraceItem* item); 92 void AddTrace(TraceItem* item);
90 93
91 // Returns a summary of the current traces, or the empty string if tracing is 94 // Returns a summary of the current traces, or the empty string if tracing is
92 // not enabled. 95 // not enabled.
93 std::string SummarizeTraces(); 96 std::string SummarizeTraces();
94 97
95 // Saves the current traces to the given filename in JSON format. 98 // Saves the current traces to the given filename in JSON format.
96 void SaveTraces(const base::FilePath& file_name); 99 void SaveTraces(const base::FilePath& file_name);
97 100
98 #endif // TOOLS_GN_TRACE_H_ 101 #endif // TOOLS_GN_TRACE_H_
OLDNEW
« no previous file with comments | « no previous file | tools/gn/trace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698