diff options
author | mostynb@opera.com <mostynb@opera.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-09 21:47:01 +0000 |
---|---|---|
committer | mostynb@opera.com <mostynb@opera.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-09 21:47:01 +0000 |
commit | a1e8742047026225fb3281af6bd358bab417ce35 (patch) | |
tree | 3f2c5313c6748fc8e2a74f540b0586ef09b42df2 /base | |
parent | e0926017a82074944ac9fac85f2319699e503e3a (diff) | |
download | chromium_src-a1e8742047026225fb3281af6bd358bab417ce35.zip chromium_src-a1e8742047026225fb3281af6bd358bab417ce35.tar.gz chromium_src-a1e8742047026225fb3281af6bd358bab417ce35.tar.bz2 |
make it possible to disable internal tracing in unofficial builds
Add a tracing_like_official_build gyp setting, which works similarly to
the logging_like_official_build setting.
Review URL: https://chromiumcodereview.appspot.com/18333010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/debug/trace_event.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/base/debug/trace_event.h b/base/debug/trace_event.h index c162b39..619b0ab 100644 --- a/base/debug/trace_event.h +++ b/base/debug/trace_event.h @@ -228,8 +228,17 @@ INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val, \ arg2_name, arg2_val) -// Same as TRACE_EVENT except that they are not included in official builds. -#ifdef OFFICIAL_BUILD +// UNSHIPPED_TRACE_EVENT* are like TRACE_EVENT* except that they are not +// included in official builds. + +#if OFFICIAL_BUILD +#undef TRACING_IS_OFFICIAL_BUILD +#define TRACING_IS_OFFICIAL_BUILD 1 +#elif !defined(TRACING_IS_OFFICIAL_BUILD) +#define TRACING_IS_OFFICIAL_BUILD 0 +#endif + +#if TRACING_IS_OFFICIAL_BUILD #define UNSHIPPED_TRACE_EVENT0(category_group, name) (void)0 #define UNSHIPPED_TRACE_EVENT1(category_group, name, arg1_name, arg1_val) \ (void)0 |