\doxysubsection{stats.\+c File Reference}
\label{stats_8c}\index{stats.c@{stats.c}}


stats reporting functions.  


Include dependency graph for stats.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{stats_8c__incl}
\end{center}
\end{figure}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{stats_8c_a11879526851c210cb64d3e9d9ca5b02d}{rs\+\_\+log\+\_\+stats}} (\mbox{\hyperlink{librsync_8h_a576eccd11a2696cb46140d5e43c83d7e}{rs\+\_\+stats\+\_\+t}} const $\ast$stats)
\begin{DoxyCompactList}\small\item\em Write statistics into the current log as text. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{stats_8c_a332af674f9c874d885d2bd492dcfaeae}{rs\+\_\+format\+\_\+stats}} (\mbox{\hyperlink{librsync_8h_a576eccd11a2696cb46140d5e43c83d7e}{rs\+\_\+stats\+\_\+t}} const $\ast$stats, char $\ast$buf, size\+\_\+t size)
\begin{DoxyCompactList}\small\item\em Return a human-\/readable representation of statistics. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsubsection{Detailed Description}
stats reporting functions. 

\begin{DoxyRefDesc}{Todo}
\item[\mbox{\hyperlink{todo__todo000015}{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. \end{DoxyRefDesc}


Definition in file \mbox{\hyperlink{stats_8c_source}{stats.\+c}}.



\doxysubsubsection{Function Documentation}
\mbox{\label{stats_8c_a11879526851c210cb64d3e9d9ca5b02d}} 
\index{stats.c@{stats.c}!rs\_log\_stats@{rs\_log\_stats}}
\index{rs\_log\_stats@{rs\_log\_stats}!stats.c@{stats.c}}
\doxyparagraph{\texorpdfstring{rs\_log\_stats()}{rs\_log\_stats()}}
{\footnotesize\ttfamily int rs\+\_\+log\+\_\+stats (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{librsync_8h_a576eccd11a2696cb46140d5e43c83d7e}{rs\+\_\+stats\+\_\+t}} const $\ast$}]{stats }\end{DoxyParamCaption})}



Write statistics into the current log as text. 

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{api_stats}{Stats}} 

\mbox{\hyperlink{api_trace}{Trace output}} 
\end{DoxySeeAlso}


Definition at line \mbox{\hyperlink{stats_8c_source_l00031}{31}} of file \mbox{\hyperlink{stats_8c_source}{stats.\+c}}.

\mbox{\label{stats_8c_a332af674f9c874d885d2bd492dcfaeae}} 
\index{stats.c@{stats.c}!rs\_format\_stats@{rs\_format\_stats}}
\index{rs\_format\_stats@{rs\_format\_stats}!stats.c@{stats.c}}
\doxyparagraph{\texorpdfstring{rs\_format\_stats()}{rs\_format\_stats()}}
{\footnotesize\ttfamily char $\ast$ rs\+\_\+format\+\_\+stats (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{librsync_8h_a576eccd11a2696cb46140d5e43c83d7e}{rs\+\_\+stats\+\_\+t}} const $\ast$}]{stats,  }\item[{char $\ast$}]{buf,  }\item[{size\+\_\+t}]{size }\end{DoxyParamCaption})}



Return a human-\/readable representation of statistics. 

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


\begin{DoxyParams}{Parameters}
{\em stats} & Statistics from an encoding or decoding operation.\\
\hline
{\em buf} & Buffer to receive result.\\
\hline
{\em size} & Size of buffer.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily buf}.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{api_stats}{Stats}} 
\end{DoxySeeAlso}


Definition at line \mbox{\hyperlink{stats_8c_source_l00040}{40}} of file \mbox{\hyperlink{stats_8c_source}{stats.\+c}}.

