diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2018-10-11 17:54:35 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2018-10-13 06:48:59 +0200 |
commit | da905beac4579a2e3292bbdf4592a513d12a2e80 (patch) | |
tree | b880a656a15ea62a6ed312608d50cccd804c86b6 /modules | |
parent | f7a6286e04209da1bc7b1820002b6a5c32638369 (diff) | |
download | gnulib-da905beac4579a2e3292bbdf4592a513d12a2e80.tar.gz |
timevar: expect that getrusage is available
Don't keep both times and getrusage as backend: both are guaranteed by
gnulib, a single one suffices. Using getrusage is open to possibly
tracking other types of resources in the future.
* modules/timevar (Depends-on): Add getrusage.
(configure.ac): Remove gl_TIMEVAR.
(Files): Remove m4/timevar.m4.
* m4/timevar.m4: Remove, rely on gnulib for getrusage.
* lib/timevar.h (timevar_enabled): Clarify documentation.
* lib/timevar.c: Remove all the code about times.
Remove all the CPP guards about getrusage: expect it to be present
(courtesy of gnulib).
Diffstat (limited to 'modules')
-rw-r--r-- | modules/timevar | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/timevar b/modules/timevar index f82b7e90a0..354d1d211f 100644 --- a/modules/timevar +++ b/modules/timevar @@ -4,9 +4,9 @@ A simple self-profiling module based on timers. Files: lib/timevar.h lib/timevar.c -m4/timevar.m4 Depends-on: +getrusage gettext-h stdlib sys_time @@ -14,9 +14,6 @@ sys_times times xalloc -configure.ac: -gl_TIMEVAR - Makefile.am: lib_SOURCES += timevar.c timevar.def |