diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-08-22 08:56:53 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-09-03 22:57:23 -0400 |
| commit | d83b96faeb02d7a3574e63880141d6b23f31ced1 (patch) | |
| tree | b6cd2feca3513dccba012b9da2ac230e94d09ac0 /docs/man/libnng.3.adoc | |
| parent | 1b2a93503e0ed108f7c4add4bcf4b201a363bb80 (diff) | |
| download | nng-d83b96faeb02d7a3574e63880141d6b23f31ced1.tar.gz nng-d83b96faeb02d7a3574e63880141d6b23f31ced1.tar.bz2 nng-d83b96faeb02d7a3574e63880141d6b23f31ced1.zip | |
fixes #4 Statistics support
This introduces new public APIs for obtaining statistics,
and adds some generic stats for dialers, listeners, pipes, and
sockets. Also added are stats for inproc and pairv1 protocol.
The other protocols and transports will have stats added
incrementally as time goes on.
A simple test program, and man pages are provided for this.
Start by looking at nng_stat(5).
Statistics does have some impact, and they can be disabled by
using the advanced NNG_ENABLE_STATS (setting it to OFF, it's
ON by default) if you need to build a minimized configuration.
Diffstat (limited to 'docs/man/libnng.3.adoc')
| -rw-r--r-- | docs/man/libnng.3.adoc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/man/libnng.3.adoc b/docs/man/libnng.3.adoc index 3e3037f9..299b73ef 100644 --- a/docs/man/libnng.3.adoc +++ b/docs/man/libnng.3.adoc @@ -222,6 +222,25 @@ concurrent applications. |<<nng_ctx_setopt.3#,nng_ctx_setopt()>>|set context option |=== +=== Statistics + +The following functions provide access to statistics which can be used +to observe program behaviors and as an aid in troubleshooting. + +|=== +|<<nng_stat_child.3#,nng_stat_child()>>|get child statistic +|<<nng_stat_desc.3#,nng_stat_name()>>|get statistic description +|<<nng_stat_name.3#,nng_stat_name()>>|get statistic name +|<<nng_stat_next.3#,nng_stat_next()>>|get next statistic +|<<nng_stat_string.3#,nng_stat_string()>>|get statistic string value +|<<nng_stat_timestamp.3#,nng_stat_timestamp()>>|get statistic timestamp +|<<nng_stat_type.3#,nng_stat_type()>>|get statistic type +|<<nng_stat_unit.3#,nng_stat_unit()>>|get statistic unit +|<<nng_stat_value.3#,nng_stat_valueg()>>|get statistic value +|<<nng_stats_free.3#,nng_stats_free()>>|free statistics +|<<nng_stats_get.3#,nng_stats_get()>>|get statistics +|=== + === URL Object Common functionality is supplied for parsing and handling |
