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

Side by Side Diff: base/debug/leak_tracker.h

Issue 234803002: disable more stacktrace usage in debug uclibc builds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make sure glibc/uclibc macros are defined Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | base/logging.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_DEBUG_LEAK_TRACKER_H_ 5 #ifndef BASE_DEBUG_LEAK_TRACKER_H_
6 #define BASE_DEBUG_LEAK_TRACKER_H_ 6 #define BASE_DEBUG_LEAK_TRACKER_H_
7 7
8 // Only enable leak tracking in debug builds. 8 #include "build/build_config.h"
9 #ifndef NDEBUG 9
10 // Only enable leak tracking in non-uClibc debug builds.
11 #if !defined(NDEBUG) && !defined(__UCLIBC__)
10 #define ENABLE_LEAK_TRACKER 12 #define ENABLE_LEAK_TRACKER
11 #endif 13 #endif
12 14
13 #ifdef ENABLE_LEAK_TRACKER 15 #ifdef ENABLE_LEAK_TRACKER
14 #include "base/containers/linked_list.h" 16 #include "base/containers/linked_list.h"
15 #include "base/debug/stack_trace.h" 17 #include "base/debug/stack_trace.h"
16 #include "base/logging.h" 18 #include "base/logging.h"
17 #endif // ENABLE_LEAK_TRACKER 19 #endif // ENABLE_LEAK_TRACKER
18 20
19 // LeakTracker is a helper to verify that all instances of a class 21 // LeakTracker is a helper to verify that all instances of a class
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 129
128 StackTrace allocation_stack_; 130 StackTrace allocation_stack_;
129 }; 131 };
130 132
131 #endif // ENABLE_LEAK_TRACKER 133 #endif // ENABLE_LEAK_TRACKER
132 134
133 } // namespace debug 135 } // namespace debug
134 } // namespace base 136 } // namespace base
135 137
136 #endif // BASE_DEBUG_LEAK_TRACKER_H_ 138 #endif // BASE_DEBUG_LEAK_TRACKER_H_
OLDNEW
« no previous file with comments | « no previous file | base/logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698