]> Savannah Git Hosting - gnulib.git/commit
timevar: expect that getrusage is available
authorAkim Demaille <akim.demaille@gmail.com>
Thu, 11 Oct 2018 15:54:35 +0000 (17:54 +0200)
committerAkim Demaille <akim.demaille@gmail.com>
Sat, 13 Oct 2018 04:48:59 +0000 (06:48 +0200)
commitda905beac4579a2e3292bbdf4592a513d12a2e80
treeb880a656a15ea62a6ed312608d50cccd804c86b6
parentf7a6286e04209da1bc7b1820002b6a5c32638369
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).
ChangeLog
lib/timevar.c
lib/timevar.h
m4/timevar.m4 [deleted file]
modules/timevar