diff options
author | callum_linden <none@none> | 2016-04-21 16:13:39 -0700 |
---|---|---|
committer | callum_linden <none@none> | 2016-04-21 16:13:39 -0700 |
commit | b50df60aa180e904aa0733bb60cef91cf9df6ff6 (patch) | |
tree | 9535bc96318d1afbf985cb930bab1dfe1fe28faf /indra/llcommon/llallocator.cpp | |
parent | cfba9a9dca8e31da2a792a2e70944a47359c9a21 (diff) |
DRTVWR-418 remove vestiges of TCMALLOC and GooglePerfTools from the viewer
Diffstat (limited to 'indra/llcommon/llallocator.cpp')
-rwxr-xr-x | indra/llcommon/llallocator.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/indra/llcommon/llallocator.cpp b/indra/llcommon/llallocator.cpp index 34fc28d8cc..ac97fb71dd 100755 --- a/indra/llcommon/llallocator.cpp +++ b/indra/llcommon/llallocator.cpp @@ -27,47 +27,6 @@ #include "linden_common.h" #include "llallocator.h" -#if (LL_USE_TCMALLOC && LL_USE_HEAP_PROFILER) - -#include "google/heap-profiler.h" -#include "google/commandlineflags_public.h" - -DECLARE_bool(heap_profile_use_stack_trace); -//DECLARE_double(tcmalloc_release_rate); - -void LLAllocator::setProfilingEnabled(bool should_enable) -{ - // NULL disables dumping to disk - static char const * const PREFIX = NULL; - if(should_enable) - { - HeapProfilerSetUseStackTrace(false); - HeapProfilerStart(PREFIX); - } - else - { - HeapProfilerStop(); - } -} - -// static -bool LLAllocator::isProfiling() -{ - return IsHeapProfilerRunning(); -} - -std::string LLAllocator::getRawProfile() -{ - // *TODO - fix google-perftools to accept an buffer to avoid this - // malloc-copy-free cycle. - char * buffer = GetHeapProfile(); - std::string ret = buffer; - free(buffer); - return ret; -} - -#else // LL_USE_TCMALLOC - // // stub implementations for when tcmalloc is disabled // @@ -87,8 +46,6 @@ std::string LLAllocator::getRawProfile() return std::string(); } -#endif // LL_USE_TCMALLOC - LLAllocatorHeapProfile const & LLAllocator::getProfile() { mProf.mLines.clear(); |