1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add small section for docker on Ubuntu

This commit is contained in:
Grégoire Roussel 2023-11-20 18:27:54 +01:00
parent 897aec5b06
commit c1863d0c67

View File

@ -581,6 +581,16 @@ The best way to run Tracy is on bare metal. Avoid profiling applications in virt
\item Call stack sampling might lack time stamps. While you can use such a reduced data set to perform statistical analysis, you won't be able to limit the time range or see the sampling zones on the timeline. \item Call stack sampling might lack time stamps. While you can use such a reduced data set to perform statistical analysis, you won't be able to limit the time range or see the sampling zones on the timeline.
\end{itemize} \end{itemize}
\paragraph{Docker on Linux}
Although the basic features will work without them, you'll have to grant elevated access rights to the container running your client. Here is a sample configuration that \textit{may} enable the CPU sampling features\footnote{Tested on Ubuntu 22.04.3, docker 24.0.4}.
\begin{itemize}
\texttt{--privileged}
\texttt{--mount "type=bind,source=/sys/kernel/debug,target=/sys/kernel/debug,readonly"}
\texttt{--user 0:0}
\texttt{--pid=host}
\end{itemize}
\subsubsection{Changing network port} \subsubsection{Changing network port}
By default, the client and server communicate on the network using port 8086. The profiling session utilizes the TCP protocol, and the client sends presence announcement broadcasts over UDP. By default, the client and server communicate on the network using port 8086. The profiling session utilizes the TCP protocol, and the client sends presence announcement broadcasts over UDP.