X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..HEAD:/tools/CodeProfiling.cpp diff --git a/tools/CodeProfiling.cpp b/tools/CodeProfiling.cpp index 28f0d0a..302b5f9 100644 --- a/tools/CodeProfiling.cpp +++ b/tools/CodeProfiling.cpp @@ -33,7 +33,7 @@ #include #endif -#if OS(LINUX) +#if OS(LINUX) || OS(DARWIN) #include #endif @@ -92,7 +92,6 @@ void CodeProfiling::sample(void* pc, void** framePointer) void CodeProfiling::notifyAllocator(WTF::MetaAllocator* allocator) { -#if !OS(WINCE) // Check for JSC_CODE_PROFILING. const char* codeProfilingMode = getenv("JSC_CODE_PROFILING"); if (!codeProfilingMode) @@ -119,7 +118,6 @@ void CodeProfiling::notifyAllocator(WTF::MetaAllocator* allocator) ASSERT(!s_tracker); s_tracker = new WTF::MetaAllocatorTracker(); allocator->trackAllocations(s_tracker); -#endif } void* CodeProfiling::getOwnerUIDForPC(void* address)