| commit | 78f2c86235d5882a8dc84c85a1c1864062e5f3af | [log] [tgz] |
|---|---|---|
| author | Felipe Leme <felipeal@google.com> | Mon Dec 21 09:55:22 2015 -0800 |
| committer | Felipe Leme <felipeal@google.com> | Tue Jan 05 13:03:07 2016 -0800 |
| tree | 95bf3ed134a2967aecfccc8c9fe2938a1c1e5e8e | |
| parent | 3c09d20086d74b80d28b8046d2058b2bdbb79b4f [diff] |
Prints out how long it takes to generate each section.
It's done using a DurationReporter helper class that prints starts
counting when constructed and prints the duration when destructed.
Typical usage:
function do_something() {
DurationReporter duration_reporter(title);
// Do something.
}
Change-Id: I87134d9a1b003300384376c242a3c034a46244c4