summaryrefslogtreecommitdiffstats
path: root/base/location.h
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-28 21:41:50 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-28 21:41:50 +0000
commit6b26b96010bb329642eeb56c2da56e9340cbe847 (patch)
tree4a96ac4da4f82990a0ac4bcb2a33c4a41d56bed1 /base/location.h
parentb1799be90161b0fd41e78851d9d7e130a202adbf (diff)
downloadchromium_src-6b26b96010bb329642eeb56c2da56e9340cbe847.zip
chromium_src-6b26b96010bb329642eeb56c2da56e9340cbe847.tar.gz
chromium_src-6b26b96010bb329642eeb56c2da56e9340cbe847.tar.bz2
Revert 107793 - Fully enable about:tracking by default
Support is now controlled by the flag: --enable-tracking and the default is always on. To turn it off, use: --enable-tracking=0 All profiler code is compiled now in release and official builds (in addition to debug, where it was already active), but most entry points can be disabled (turned into no-ops) by a single const bool setting atop tracked_objects.cc (in case folks want to revert the perf-impact of this change). Transition to faster Now() service on Windows for the profiler use only. The TimeTicks::Now() function on Window uses locking to get a 64 bit time value. This CL transitions times used for profiling to more directly use a 32 bit Time interface, which is actually what drives the 64 bit TimeTicks. By using the smaller value, we avoid the need for locks, or even atomic operations for the most part in the tracking system. On linux, we just down-sample the standard TimeTicks to 32 bits for consistency (clean ability to snapshot asyncronously without atomics... but I should verify that such is helpful to performance). I've also put in yet more cleanup and refactoring. r=rtenneti bug=101856 Review URL: http://codereview.chromium.org/8391019 TBR=jar@chromium.org Review URL: http://codereview.chromium.org/8400073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107799 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/location.h')
-rw-r--r--base/location.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/location.h b/base/location.h
index 523bfaf..42b3a92 100644
--- a/base/location.h
+++ b/base/location.h
@@ -10,6 +10,12 @@
#include "base/base_export.h"
#include "base/values.h"
+#ifndef NDEBUG
+#ifndef TRACK_ALL_TASK_OBJECTS
+#define TRACK_ALL_TASK_OBJECTS
+#endif // TRACK_ALL_TASK_OBJECTS
+#endif // NDEBUG
+
namespace tracked_objects {
// Location provides basic info where of an object was constructed, or was