forked from OSchip/llvm-project
parent
6a9307866c
commit
5981c63e6e
|
@ -89,7 +89,7 @@ struct TimeRecord {
|
|||
static TimeRecord getTimeRecord(bool Start) {
|
||||
struct rusage RU;
|
||||
struct timeval T;
|
||||
long MemUsed;
|
||||
long MemUsed = 0;
|
||||
if (Start) {
|
||||
MemUsed = getMemUsage();
|
||||
if (getrusage(RUSAGE_SELF, &RU))
|
||||
|
|
|
@ -89,7 +89,7 @@ struct TimeRecord {
|
|||
static TimeRecord getTimeRecord(bool Start) {
|
||||
struct rusage RU;
|
||||
struct timeval T;
|
||||
long MemUsed;
|
||||
long MemUsed = 0;
|
||||
if (Start) {
|
||||
MemUsed = getMemUsage();
|
||||
if (getrusage(RUSAGE_SELF, &RU))
|
||||
|
|
Loading…
Reference in New Issue