* doc/timevar.texi: Change node and section name to 'Profiling of
program phases'.
In the code snippets, tweak the #includes and use GNU coding style.
* doc/gnulib.texi: Include timevar.texi.
+2018-09-30 Bruno Haible <bruno@clisp.org>
+
+ timevar: Include documentation in gnulib manual.
+ * doc/timevar.texi: Change node and section name to 'Profiling of
+ program phases'.
+ In the code snippets, tweak the #includes and use GNU coding style.
+ * doc/gnulib.texi: Include timevar.texi.
+
2018-09-27 Akim Demaille <akim@lrde.epita.fr>
timevar: import from Bison.
* Quoting::
* error and progname::
* gcd::
+* Profiling of program phases::
* Library version handling::
* Supporting Relocation::
* func::
@include gcd.texi
+@include timevar.texi
+
@include check-version.texi
@include relocatable-maint.texi
-@node timevar
-@section timevar
+@node Profiling of program phases
+@section Profiling of program phases
-A simple self-profiling module based on timers.
+The module @samp{timevar} provides a simple self-profiling facility,
+based on timers.
@smallexample
Execution times (seconds)
#include <config.h>
#include "timevar.h"
+#include <stdio.h>
#include "read.h"
#include "work.h"
#include "output.h"
-int main (void)
+int
+main (void)
@{
timevar_enabled = true;
timevar_init ();
@smallexample
#include <config.h>
-#include <work.h>
+#include "work.h"
-void work (void)
+void
+work (void)
@{
timevar_push (tv_work_phase1);
work1 ();