projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for reading Aarch64 core dumps.
[binutils-gdb.git]
/
gold
/
timer.h
diff --git
a/gold/timer.h
b/gold/timer.h
index ea360c2f21d60f4c1f28108d2d1ec782503fad77..fca5b1252ff7b6b8d91ab1bd9fc885ac5f1ec22e 100644
(file)
--- a/
gold/timer.h
+++ b/
gold/timer.h
@@
-1,6
+1,6
@@
// timer.h -- helper class for time accounting -*- C++ -*-
// timer.h -- helper class for time accounting -*- C++ -*-
-// Copyright
2009
Free Software Foundation, Inc.
+// Copyright
(C) 2009-2014
Free Software Foundation, Inc.
// Written by Rafael Avila de Espindola <espindola@google.com>.
// This file is part of gold.
// Written by Rafael Avila de Espindola <espindola@google.com>.
// This file is part of gold.
@@
-48,21
+48,32
@@
class Timer
TimeStats
get_elapsed_time();
TimeStats
get_elapsed_time();
- // Start couting the time.
+ // Return the stats for pass N (0 <= N <= 2).
+ TimeStats
+ get_pass_time(int n);
+
+ // Start counting the time.
void
start();
void
start();
+ // Record the time used by pass N (0 <= N <= 2).
+ void
+ stamp(int n);
+
private:
// This class cannot be copied.
Timer(const Timer&);
Timer& operator=(const Timer&);
private:
// This class cannot be copied.
Timer(const Timer&);
Timer& operator=(const Timer&);
- // Write the current time infor
tam
ion.
+ // Write the current time infor
mat
ion.
static void
static void
- get_time(TimeStats
*
now);
+ get_time(TimeStats
*
now);
// The time of the last call to start.
TimeStats start_time_;
// The time of the last call to start.
TimeStats start_time_;
+
+ // Times for each pass.
+ TimeStats pass_times_[3];
};
}
};
}