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

Unified Diff: base/debug/trace_event_impl.cc

Issue 9223005: Remove pointer mangling API from trace_event.h and use an addTraceEvent flag instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: using unused parameters Created 8 years, 11 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 | « base/debug/trace_event_impl.h ('k') | webkit/glue/webkitplatformsupport_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/trace_event_impl.cc
diff --git a/base/debug/trace_event_impl.cc b/base/debug/trace_event_impl.cc
index a591bacfcd12db4d9011fa8a7cf83205afadfc6b..223e04bc3b0f21c34df0d600ad91e35fadf4daa7 100644
--- a/base/debug/trace_event_impl.cc
+++ b/base/debug/trace_event_impl.cc
@@ -595,6 +595,10 @@ int TraceLog::AddTraceEvent(char phase,
return -1;
}
}
+
+ if (flags & TRACE_EVENT_FLAG_MANGLE_ID)
+ id ^= process_id_hash_;
+
ret_begin_id = static_cast<int>(logged_events_.size());
logged_events_.push_back(
TraceEvent(thread_id,
« no previous file with comments | « base/debug/trace_event_impl.h ('k') | webkit/glue/webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698