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

Unified Diff: third_party/tcmalloc/chromium/src/profiler.cc

Issue 14321006: Adds TCMalloc support for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dai's comments Created 7 years, 7 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
Index: third_party/tcmalloc/chromium/src/profiler.cc
diff --git a/third_party/tcmalloc/chromium/src/profiler.cc b/third_party/tcmalloc/chromium/src/profiler.cc
index dfb6aab52f4a9d7aa0e6e9c9a0a596c24e322efd..bd30d0e57ef507f13e0429195cf4bb856e245e84 100644
--- a/third_party/tcmalloc/chromium/src/profiler.cc
+++ b/third_party/tcmalloc/chromium/src/profiler.cc
@@ -50,6 +50,8 @@
#elif defined(HAVE_CYGWIN_SIGNAL_H)
#include <cygwin/signal.h>
typedef ucontext ucontext_t;
+#elif defined(__ANDROID__)
+#include <unwind.h>
Dai Mikurube (NOT FULLTIME) 2013/05/08 14:53:25 Is <unwind.h> really used?
bulach 2013/05/08 16:09:10 Done.
#else
typedef int ucontext_t; // just to quiet the compiler, mostly
#endif

Powered by Google App Engine
This is Rietveld 408576698