Sun can now use mallinfo()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4546 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-11-04 21:05:21 +00:00
parent cae3783c0f
commit a95078dc24
2 changed files with 0 additions and 10 deletions

View File

@ -76,13 +76,8 @@ static TimeRecord getTimeRecord() {
Result.UserTime = RU.ru_utime.tv_sec + RU.ru_utime.tv_usec/1000000.0;
Result.SystemTime = RU.ru_stime.tv_sec + RU.ru_stime.tv_usec/1000000.0;
#ifndef __sparc__
struct mallinfo MI = mallinfo();
Result.MemUsed = MI.uordblks;
#else
Result.MemUsed = 0;
#endif
return Result;
}

View File

@ -76,13 +76,8 @@ static TimeRecord getTimeRecord() {
Result.UserTime = RU.ru_utime.tv_sec + RU.ru_utime.tv_usec/1000000.0;
Result.SystemTime = RU.ru_stime.tv_sec + RU.ru_stime.tv_usec/1000000.0;
#ifndef __sparc__
struct mallinfo MI = mallinfo();
Result.MemUsed = MI.uordblks;
#else
Result.MemUsed = 0;
#endif
return Result;
}