summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2018-10-11 17:54:35 +0200
committerAkim Demaille <akim.demaille@gmail.com>2018-10-13 06:48:59 +0200
commitda905beac4579a2e3292bbdf4592a513d12a2e80 (patch)
treeb880a656a15ea62a6ed312608d50cccd804c86b6 /modules
parentf7a6286e04209da1bc7b1820002b6a5c32638369 (diff)
downloadgnulib-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/timevar5
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