mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
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:
parent
cae3783c0f
commit
a95078dc24
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user