mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Document how to generate debugging symbols.
This commit is contained in:
parent
f8f10f4776
commit
2f01014a95
@ -346,6 +346,19 @@ Depth & x86 & x64 \\ \hline
|
|||||||
\label{CallstackTimes}
|
\label{CallstackTimes}
|
||||||
\end{table}
|
\end{table}
|
||||||
|
|
||||||
|
\begin{bclogo}[
|
||||||
|
noborder=true,
|
||||||
|
couleur=black!5,
|
||||||
|
logo=\bcattention
|
||||||
|
]{Debugging symbols}
|
||||||
|
To have proper call stack information, the profiled application must be compiled with debugging symbols enabled. You can achieve that in the following way:
|
||||||
|
|
||||||
|
\begin{itemize}
|
||||||
|
\item On MSVC open the project properties and go to \emph{Linker\textrightarrow Debugging\textrightarrow Generate Debug Info}, where the \emph{Generate Debug Information} option should be selected.
|
||||||
|
\item On gcc or clang, link the executable with an additional option \texttt{-rdynamic} (or \texttt{-{}-export-dynamic}, if you are passing parameters directly to the linker).
|
||||||
|
\end{itemize}
|
||||||
|
\end{bclogo}
|
||||||
|
|
||||||
\section{Practical considerations}
|
\section{Practical considerations}
|
||||||
|
|
||||||
Tracy's time measurement precision is not infinite. It's only as good as the system-provided timers are.
|
Tracy's time measurement precision is not infinite. It's only as good as the system-provided timers are.
|
||||||
|
Loading…
Reference in New Issue
Block a user