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

Unified Diff: tools/gn/trace.h

Issue 2424233002: [gn] Add trace entries for loading and blocking on imports (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/import_manager.cc ('k') | tools/gn/trace.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/trace.h
diff --git a/tools/gn/trace.h b/tools/gn/trace.h
index de8ab09d490770bd78dfb1faa42db4dfd88a6cea..d2116410bd59446582cc67f61eaf98f57fcbd6ef 100644
--- a/tools/gn/trace.h
+++ b/tools/gn/trace.h
@@ -26,10 +26,12 @@ class TraceItem {
TRACE_FILE_PARSE,
TRACE_FILE_EXECUTE,
TRACE_FILE_WRITE,
+ TRACE_IMPORT_LOAD,
+ TRACE_IMPORT_BLOCK,
TRACE_SCRIPT_EXECUTE,
TRACE_DEFINE_TARGET,
TRACE_ON_RESOLVED,
- TRACE_CHECK_HEADER, // One file.
+ TRACE_CHECK_HEADER, // One file.
TRACE_CHECK_HEADERS, // All files.
};
@@ -88,6 +90,9 @@ class ScopedTrace {
// Call to turn tracing on. It's off by default.
void EnableTracing();
+// Returns whether tracing is enabled.
+bool TracingEnabled();
+
// Adds a trace event to the log. Takes ownership of the pointer.
void AddTrace(TraceItem* item);
« no previous file with comments | « tools/gn/import_manager.cc ('k') | tools/gn/trace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698