From 4caf9df8b070140ee62218d3ea678f9732c1b8a7 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 20 Feb 2018 18:33:19 +0000 Subject: Build man page and reference for eos-profile Documenting CLI tools that we ship should be part of the API reference. --- docs/reference/endless/Makefile.am | 30 +++++++++++- docs/reference/endless/endless-docs.xml | 5 ++ docs/reference/endless/eos-profile.xml | 83 +++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 1 deletion(-) create mode 100644 docs/reference/endless/eos-profile.xml (limited to 'docs') diff --git a/docs/reference/endless/Makefile.am b/docs/reference/endless/Makefile.am index c5143ef..3fa85a6 100644 --- a/docs/reference/endless/Makefile.am +++ b/docs/reference/endless/Makefile.am @@ -73,7 +73,9 @@ HTML_IMAGES= # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE). # e.g. content_files=running.sgml building.sgml changes-2.0.sgml -content_files= +content_files=\ + eos-profile.xml \ + $(NULL) # SGML files where gtk-doc abbrevations (#GtkWidget) are expanded # These files must be listed here *and* in content_files @@ -106,3 +108,29 @@ TESTS_ENVIRONMENT = \ export BUILDDIR=$(abs_builddir); TESTS = $(GTKDOC_CHECK) endif + +man_MANS = + +if ENABLE_MAN + +man_MANS += \ + eos-profile.1 \ + $(NULL) + +XSLTPROC_FLAGS = \ + --nonet \ + --stringparam man.output.quietly 1 \ + --stringparam funcsynopsis.style ansi \ + --stringparam man.th.extra1.suppress 1 \ + --stringparam man.authors.section.enabled 0 \ + --stringparam man.copyright.section.enabled 1 \ + $(NULL) + +.xml.1: + $(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< + +endif + +CLEANFILES ?= +CLEANFILES += $(man_MANS) +EXTRA_DIST += $(man_MANS) diff --git a/docs/reference/endless/endless-docs.xml b/docs/reference/endless/endless-docs.xml index 35a741f..f88da92 100644 --- a/docs/reference/endless/endless-docs.xml +++ b/docs/reference/endless/endless-docs.xml @@ -28,6 +28,11 @@ + + Tools + + + Object Hierarchy diff --git a/docs/reference/endless/eos-profile.xml b/docs/reference/endless/eos-profile.xml new file mode 100644 index 0000000..dc3b09f --- /dev/null +++ b/docs/reference/endless/eos-profile.xml @@ -0,0 +1,83 @@ + + + eos-profile + Endless + + + Developer + Emmanuele + Bassi + Endless + + + + + + eos-profile + 1 + User Commands + + + + eos-profile + Inspect profiling data + + + + + eos-profile + help + + + eos-profile + show + FILE + + + eos-profile + convert + FILE + + + eos-profile + diff + FILE + + + + + Description + + eos-profile is a tool for inspecting, converting, and + comparing profile data files generated by the Endless SDK. + + + + + Commands + + + + + Prints out a list of the profiling probes for the given file, + as well as the various timing information associated to each + probe, and their location in the source. + + + + + + Converts a profile data file into other formats, like JSON. + + + + + + Compares two or more profile data files, and prints out the + timing information for each probe in each file. + + + + + + -- cgit v1.2.3