diff --git a/lib/Support/Timer.cpp b/lib/Support/Timer.cpp index 4de5baa51ad..30fa9bebc54 100644 --- a/lib/Support/Timer.cpp +++ b/lib/Support/Timer.cpp @@ -75,9 +75,7 @@ static TimeRecord getTimeRecord() { Result.Elapsed = T.tv_sec + T.tv_usec/1000000.0; 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; - - struct mallinfo MI = mallinfo(); - Result.MemUsed = MI.uordblks; + Result.MemUsed = mallinfo().uordblks; return Result; } diff --git a/support/lib/Support/Timer.cpp b/support/lib/Support/Timer.cpp index 4de5baa51ad..30fa9bebc54 100644 --- a/support/lib/Support/Timer.cpp +++ b/support/lib/Support/Timer.cpp @@ -75,9 +75,7 @@ static TimeRecord getTimeRecord() { Result.Elapsed = T.tv_sec + T.tv_usec/1000000.0; 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; - - struct mallinfo MI = mallinfo(); - Result.MemUsed = MI.uordblks; + Result.MemUsed = mallinfo().uordblks; return Result; }