Index: src/platform-freebsd.cc |
diff --git a/src/platform-freebsd.cc b/src/platform-freebsd.cc |
index edea9309140760e0cbf7046fb074d6b74ee10e3c..9d9f1b795a4b91848f5fe7d0369b7185761b2d25 100644 |
--- a/src/platform-freebsd.cc |
+++ b/src/platform-freebsd.cc |
@@ -252,15 +252,12 @@ PosixMemoryMappedFile::~PosixMemoryMappedFile() { |
} |
-#ifdef ENABLE_LOGGING_AND_PROFILING |
static unsigned StringToLong(char* buffer) { |
return static_cast<unsigned>(strtol(buffer, NULL, 16)); // NOLINT |
} |
-#endif |
void OS::LogSharedLibraryAddresses() { |
-#ifdef ENABLE_LOGGING_AND_PROFILING |
static const int MAP_LENGTH = 1024; |
int fd = open("/proc/self/maps", O_RDONLY); |
if (fd < 0) return; |
@@ -297,7 +294,6 @@ void OS::LogSharedLibraryAddresses() { |
LOG(i::Isolate::Current(), SharedLibraryEvent(start_of_path, start, end)); |
} |
close(fd); |
-#endif |
} |
@@ -574,8 +570,6 @@ Semaphore* OS::CreateSemaphore(int count) { |
} |
-#ifdef ENABLE_LOGGING_AND_PROFILING |
- |
static pthread_t GetThreadID() { |
pthread_t thread_id = pthread_self(); |
return thread_id; |
@@ -803,6 +797,5 @@ void Sampler::Stop() { |
SetActive(false); |
} |
-#endif // ENABLE_LOGGING_AND_PROFILING |
} } // namespace v8::internal |