5cb978edde
if he comes back. In the mean time, fix build of chromium by adding the required -I/usr/local/includes to gyp glue where needed.
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
$OpenBSD: patch-base_profiler_cc,v 1.1 2010/12/13 09:51:45 espie Exp $
|
|
--- base/profiler.cc.orig Tue Mar 30 07:28:44 2010
|
|
+++ base/profiler.cc Sun Nov 28 00:11:29 2010
|
|
@@ -5,7 +5,7 @@
|
|
#include "base/profiler.h"
|
|
#include "base/string_util.h"
|
|
|
|
-#if defined(USE_TCMALLOC) && defined(OS_LINUX)
|
|
+#if defined(USE_TCMALLOC) && defined(OS_NIX)
|
|
#include "third_party/tcmalloc/chromium/src/google/profiler.h"
|
|
#endif
|
|
|
|
@@ -24,7 +24,7 @@ namespace base {
|
|
void Profiler::StartRecording() {
|
|
#ifdef QUANTIFY
|
|
QuantifyStartRecordingData();
|
|
-#elif defined(USE_TCMALLOC) && defined(OS_LINUX)
|
|
+#elif defined(USE_TCMALLOC) && defined(OS_NIX)
|
|
ProfilerStart("chrome-profile");
|
|
#endif
|
|
}
|
|
@@ -32,13 +32,13 @@ void Profiler::StartRecording() {
|
|
void Profiler::StopRecording() {
|
|
#ifdef QUANTIFY
|
|
QuantifyStopRecordingData();
|
|
-#elif defined(USE_TCMALLOC) && defined(OS_LINUX)
|
|
+#elif defined(USE_TCMALLOC) && defined(OS_NIX)
|
|
ProfilerStop();
|
|
#endif
|
|
}
|
|
|
|
void Profiler::Flush() {
|
|
-#if defined(USE_TCMALLOC) && defined(OS_LINUX)
|
|
+#if defined(USE_TCMALLOC) && defined(OS_NIX)
|
|
ProfilerFlush();
|
|
#endif
|
|
}
|