$treeview $search $mathjax $extrastylesheet
librsync  2.3.0
$projectbrief
$projectbrief
$searchbox

stats.c File Reference

stats reporting functions. More...

Go to the source code of this file.

Functions

int rs_log_stats (rs_stats_t const *stats)
 Write statistics into the current log as text.
char * rs_format_stats (rs_stats_t const *stats, char *buf, size_t size)
 Return a human-readable representation of statistics.

Detailed Description

stats reporting functions.

Todo:
Other things to show in statistics: number of input and output bytes, number of times we blocked waiting for input or output, number of blocks.

Definition in file stats.c.


Function Documentation

int rs_log_stats ( rs_stats_t const *  stats  ) 

Write statistics into the current log as text.

See also:
api_stats
api_trace

Definition at line 31 of file stats.c.

char* rs_format_stats ( rs_stats_t const *  stats,
char *  buf,
size_t  size 
)

Return a human-readable representation of statistics.

The string is truncated if it does not fit. 100 characters should be sufficient space.

Parameters:
stats Statistics from an encoding or decoding operation.
buf Buffer to receive result.
size Size of buffer.
Returns:
buf.
See also:
api_stats

Definition at line 40 of file stats.c.