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

Unified Diff: base/debug/trace_event.h

Issue 8470001: TraceEvent fixes for thread name changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 9 years, 1 month 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 | « no previous file | base/debug/trace_event.cc » ('j') | base/debug/trace_event.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/trace_event.h
diff --git a/base/debug/trace_event.h b/base/debug/trace_event.h
index 2a6c1376ea4a404add1fd4b2886fa338de3478d4..164c233a8f0142ac72c1e47049df90aafcd923b2 100644
--- a/base/debug/trace_event.h
+++ b/base/debug/trace_event.h
@@ -48,8 +48,8 @@
// To avoid this issue with the |name| and |arg_name| parameters, use the
// TRACE_EVENT_COPY_XXX overloads of the macros at additional runtime overhead.
// Notes: The category must always be in a long-lived char* (i.e. static const).
-// The |arg_values|, when used, are always deep copied with the _COPY
jbates 2011/11/08 18:44:38 The old comment is true I think, see the use of ba
joth 2011/11/09 13:17:58 Oh so they are. I think I was stood on my head whe
-// macros.
+// The |arg_values|, when used, are NOT deep copied with the _COPY
+// macros unless the TRACE_STR_COPY marco is also use as described below.
//
// When are string argument values copied:
// const char* arg_values are only referenced by default:
@@ -103,7 +103,6 @@
#include "base/callback.h"
#include "base/hash_tables.h"
#include "base/memory/ref_counted_memory.h"
-#include "base/memory/singleton.h"
#include "base/string_util.h"
#include "base/third_party/dynamic_annotations/dynamic_annotations.h"
#include "base/timer.h"
@@ -325,6 +324,9 @@
INTERNAL_TRACE_EVENT_UID(begin_event_id), threshold); \
}
+template <typename Type>
+struct StaticMemorySingletonTraits;
nduca 2011/11/09 04:02:24 is this needed?
joth 2011/11/09 13:17:58 yep, used on line 668. This allows singleton.h to
+
namespace base {
class RefCountedString;
« no previous file with comments | « no previous file | base/debug/trace_event.cc » ('j') | base/debug/trace_event.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698