aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-12-31 22:17:59 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-12-31 22:17:59 +0000
commite0e1985b3b71f21cd1d6c1e4924abf0f5b499a73 (patch)
treedfb6c861a55e580ec358d2f6c96865d694f0d402 /lib
parent5cec34754d540faac87fc0173fce42005c76b7d9 (diff)
downloadexternal_llvm-e0e1985b3b71f21cd1d6c1e4924abf0f5b499a73.zip
external_llvm-e0e1985b3b71f21cd1d6c1e4924abf0f5b499a73.tar.gz
external_llvm-e0e1985b3b71f21cd1d6c1e4924abf0f5b499a73.tar.bz2
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')
-rw-r--r--lib/Support/Unix/Process.inc20
-rw-r--r--lib/Support/Windows/Process.inc8
2 files changed, 0 insertions, 28 deletions
diff --git a/lib/Support/Unix/Process.inc b/lib/Support/Unix/Process.inc
index b83f507..e96d37c 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)
diff --git a/lib/Support/Windows/Process.inc b/lib/Support/Windows/Process.inc
index 9ad7917..d3a0c94 100644
--- a/lib/Support/Windows/Process.inc
+++ b/lib/Support/Windows/Process.inc
@@ -78,14 +78,6 @@ Process::GetMallocUsage()
return size;
}
-size_t
-Process::GetTotalMemoryUsage()
-{
- PROCESS_MEMORY_COUNTERS pmc;
- GetProcessMemoryInfo(GetCurrentProcess(), &pmc, sizeof(pmc));
- return pmc.PagefileUsage;
-}
-
void
Process::GetTimeUsage(
TimeValue& elapsed, TimeValue& user_time, TimeValue& sys_time)