mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Update manual.
This commit is contained in:
parent
99613291fb
commit
e524f4a050
@ -1520,21 +1520,89 @@ The new file contains the same data as the old one, but in the updated internal
|
||||
|
||||
\subsubsection{Archival mode}
|
||||
|
||||
The update utility supports optional higher level of data compression, enabled by passing the \texttt{-{}-hc} parameter. It can reduce the trace size down to \numrange{70}{40}\% the original size, at a considerable time cost. Even better compression level can be achieved by passing the \texttt{-{}-extreme} parameter, but the compression process will be \emph{very} slow. Refer to table~\ref{compressiontimes} for a guidance about compression ratio vs compression time.
|
||||
The update utility supports optional higher levels of data compression, which reduce disk size of traces, at the cost of increased compression times. With the default settings, the output files have a reasonable size and are quick to save and load. A list of available compression modes, parameters that enable them, and compression results is available in table~\ref{compressiontimes} and figures~\ref{savesize} and~\ref{savetime}.
|
||||
|
||||
\begin{table}[h]
|
||||
\centering
|
||||
\begin{tabular}[h]{c|c|c}
|
||||
\textbf{Mode} & \textbf{Compression ratio} & \textbf{Compression time} \\ \hline
|
||||
default & 34.36\% & 738.8 \si{\milli\second} \\
|
||||
\texttt{-{}-hc} & 21.17\% & 9.4 \si{\second} \\
|
||||
\texttt{-{}-extreme} & 20.76\% & 104.8 \si{\second}
|
||||
\begin{tabular}[h]{c|c|c|c|c}
|
||||
\textbf{Mode} & \textbf{Size} & \textbf{Ratio} & \textbf{Save time} & \textbf{Load time} \\ \hline
|
||||
\emph{default} & 162.48 MB & 17.19\% & 1.91 \si{\second} & 470 \si{\milli\second} \\
|
||||
\texttt{-{}-hc} & 77.33 MB & 8.18\% & 39.24 \si{\second} & 401 \si{\milli\second} \\
|
||||
\texttt{-{}-extreme} & 72.67 MB & 7.68\% & 4:30 & 406 \si{\milli\second} \\ \hline
|
||||
\texttt{-{}-zstd 1} & 63.17 MB & 6.68\% & 2.27 \si{\second} & 868 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 2} & 63.29 MB & 6.69\% & 2.31 \si{\second} & 884 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 3} & 62.94 MB & 6.65\% & 2.43 \si{\second} & 867 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 4} & 62.81 MB & 6.64\% & 2.44 \si{\second} & 855 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 5} & 61.04 MB & 6.45\% & 3.98 \si{\second} & 855 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 6} & 60.27 MB & 6.37\% & 4.19 \si{\second} & 827 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 7} & 61.53 MB & 6.5\% & 6.6 \si{\second} & 761 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 8} & 60.44 MB & 6.39\% & 7.84 \si{\second} & 746 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 9} & 59.58 MB & 6.3\% & 9.6 \si{\second} & 724 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 10} & 59.36 MB & 6.28\% & 10.29 \si{\second} & 706 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 11} & 59.2 MB & 6.26\% & 11.23 \si{\second} & 717 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 12} & 58.51 MB & 6.19\% & 15.43 \si{\second} & 695 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 13} & 56.16 MB & 5.94\% & 35.55 \si{\second} & 642 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 14} & 55.76 MB & 5.89\% & 37.74 \si{\second} & 627 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 15} & 54.65 MB & 5.78\% & 1:01 & 600 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 16} & 50.94 MB & 5.38\% & 1:34 & 537 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 17} & 50.18 MB & 5.30\% & 1:44 & 542 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 18} & 49.91 MB & 5.28\% & 2:17 & 554 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 19} & 46.99 MB & 4.97\% & 7:09 & 605 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 20} & 46.81 MB & 4.95\% & 7:08 & 608 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 21} & 45.77 MB & 4.84\% & 13:01 & 614 \si{\milli\second} \\
|
||||
\texttt{-{}-zstd 22} & 45.52 MB & 4.81\% & 15:11 & 621 \si{\milli\second}
|
||||
\end{tabular}
|
||||
\caption{Example compression times.}
|
||||
\caption{Compression results for an example trace. \\ Tests performed on Ryzen 9 3900X.}
|
||||
\label{compressiontimes}
|
||||
\end{table}
|
||||
|
||||
Note that trace files (even the ones created in high compression mode) are optimized for fast decompression. You still will be able to squeeze the data using normal compression methods. For example, 7-zip can compress traces to about \numrange{63}{35}\% of their uncompressed\footnote{Compressed internally.} size.
|
||||
\begin{figure}[h]
|
||||
\begin{minipage}[c]{.475\textwidth}
|
||||
\begin{figure}[H]
|
||||
\centering\begin{tikzpicture}
|
||||
\begin{axis}[xlabel=Mode,ylabel=Size (MB), legend pos=north west, width=\textwidth]
|
||||
\addplot[mark=x, red] plot coordinates {
|
||||
(1, 63.17) (2, 63.29) (3, 62.94) (4, 62.81) (5, 61.04) (6, 60.27) (7, 61.53) (8, 60.44) (9, 59.58) (10, 59.36) (11, 59.2) (12, 58.51) (13, 56.16) (14, 55.76) (15, 54.65) (16, 50.94) (17, 50.18) (18, 49.91) (19, 46.99) (20, 46.81) (21, 45.77) (22, 45.52)
|
||||
};
|
||||
\addlegendentry{zstd}
|
||||
\addplot[mark=o, blue] plot coordinates { (23, 162.48) };
|
||||
\addlegendentry{default}
|
||||
\addplot[mark=*, blue] plot coordinates { (24, 77.33) };
|
||||
\addlegendentry{hc}
|
||||
\addplot[mark=triangle*, blue] plot coordinates { (25, 72.67) };
|
||||
\addlegendentry{extreme}
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\caption{Plot of trace sizes for different compression modes (see table~\ref{compressiontimes}).}
|
||||
\label{savesize}
|
||||
\end{figure}
|
||||
\end{minipage}%
|
||||
\hspace{0.04\textwidth}%
|
||||
\begin{minipage}[c]{.475\textwidth}
|
||||
\begin{figure}[H]
|
||||
\centering\begin{tikzpicture}
|
||||
\begin{axis}[xlabel=Mode,ylabel=Time (s), legend pos=north west, width=\textwidth]
|
||||
\addplot[mark=x, red] plot coordinates {
|
||||
(1, 2.27) (2, 2.31) (3, 2.43) (4, 2.44) (5, 3.98) (6, 4.19) (7, 6.6) (8, 7.84) (9, 9.6) (10, 10.29) (11, 11.23) (12, 15.43) (13, 35.55) (14, 37.74) (15, 61) (16, 94) (17, 104) (18, 137)
|
||||
};
|
||||
\addlegendentry{zstd}
|
||||
\addplot[mark=o, blue] plot coordinates { (23, 1.91) };
|
||||
\addlegendentry{default}
|
||||
\addplot[mark=*, blue] plot coordinates { (24, 39.24) };
|
||||
\addlegendentry{hc}
|
||||
\addplot[mark=triangle*, blue] plot coordinates { (25, 270) };
|
||||
\addlegendentry{extreme}
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\caption{Plot of trace compression times for different compression modes (see table~\ref{compressiontimes}). Zstd modes 19-22 omitted.}
|
||||
\label{savetime}
|
||||
\end{figure}
|
||||
\end{minipage}
|
||||
\end{figure}
|
||||
|
||||
Trace files created using the \emph{default}, \emph{hc} and \emph{extreme} modes are optimized for fast decompression and can be further compressed using file compression utilities. For example, using 7-zip results in archives of the following sizes: 77.2 MB, 54.3 MB, 52.4 MB.
|
||||
|
||||
For archival purposes it is however much better to use the \emph{zstd} compression modes, which are faster, compress trace files more tightly, and are directly loadable by the profiler, without the intermediate decompression step.
|
||||
|
||||
\subsection{Instrumentation failures}
|
||||
\label{instrumentationfailures}
|
||||
@ -2509,6 +2577,7 @@ The following libraries are included with and used by the Tracy Profiler:
|
||||
\begin{itemize}
|
||||
\item getopt\_port -- \url{https://github.com/kimgr/getopt\_port}
|
||||
\item libbacktrace -- \url{https://github.com/ianlancetaylor/libbacktrace}
|
||||
\item Zstandard -- \url{https://github.com/facebook/zstd}
|
||||
\end{itemize}
|
||||
|
||||
\item 2-clause BSD license
|
||||
|
Loading…
x
Reference in New Issue
Block a user