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

Unified Diff: base/test/trace_event_analyzer.h

Issue 277883002: Add cpu count to trace metadata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 6 years, 7 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
Index: base/test/trace_event_analyzer.h
diff --git a/base/test/trace_event_analyzer.h b/base/test/trace_event_analyzer.h
index a5227a0eeba2a1b9cd4cfc231cc41e877303cbd2..2d3692d281aff2fe16296cc4a5e5ac0c2ffd8430 100644
--- a/base/test/trace_event_analyzer.h
+++ b/base/test/trace_event_analyzer.h
@@ -563,6 +563,8 @@ class TraceAnalyzer {
static TraceAnalyzer* Create(const std::string& json_events)
WARN_UNUSED_RESULT;
+ void SetIgnoreMetadataEvents(bool ignore) { ignore_metadata_events_ = true; }
+
// Associate BEGIN and END events with each other. This allows Query(OTHER_*)
// to access the associated event and enables Query(EVENT_DURATION).
// An end event will match the most recent begin event with the same name,
@@ -630,6 +632,7 @@ class TraceAnalyzer {
std::map<TraceEvent::ProcessThreadID, std::string> thread_names_;
std::vector<TraceEvent> raw_events_;
+ bool ignore_metadata_events_;
bool allow_assocation_changes_;
DISALLOW_COPY_AND_ASSIGN(TraceAnalyzer);

Powered by Google App Engine
This is Rietveld 408576698