diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-12-31 22:17:59 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-12-31 22:17:59 +0000 |
commit | e0e1985b3b71f21cd1d6c1e4924abf0f5b499a73 (patch) | |
tree | dfb6c861a55e580ec358d2f6c96865d694f0d402 /lib/Support/Unix/Process.inc | |
parent | 5cec34754d540faac87fc0173fce42005c76b7d9 (diff) |
Remove an unused function in the old Process interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix/Process.inc')
-rw-r--r-- | lib/Support/Unix/Process.inc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/Support/Unix/Process.inc b/lib/Support/Unix/Process.inc index b83f5079ce..e96d37ce56 100644 --- a/lib/Support/Unix/Process.inc +++ b/lib/Support/Unix/Process.inc @@ -92,26 +92,6 @@ size_t Process::GetMallocUsage() { #endif } -size_t -Process::GetTotalMemoryUsage() -{ -#if defined(HAVE_MALLINFO) - struct mallinfo mi = ::mallinfo(); - return mi.uordblks + mi.hblkhd; -#elif defined(HAVE_MALLOC_ZONE_STATISTICS) && defined(HAVE_MALLOC_MALLOC_H) - malloc_statistics_t Stats; - malloc_zone_statistics(malloc_default_zone(), &Stats); - return Stats.size_allocated; // darwin -#elif defined(HAVE_GETRUSAGE) && !defined(__HAIKU__) - struct rusage usage; - ::getrusage(RUSAGE_SELF, &usage); - return usage.ru_maxrss; -#else -#warning Cannot get total memory size on this platform - return 0; -#endif -} - void Process::GetTimeUsage(TimeValue& elapsed, TimeValue& user_time, TimeValue& sys_time) |