mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add ___tracy_init_thread function
This function needs to be called for each non-main thread before calling the `___tracy_alloc_` functions. Alternative way to achieve this could be initializing the allocator transparently in the `___tracy_alloc_*` calls.
This commit is contained in:
@@ -1477,6 +1477,9 @@ couleur=black!5,
|
||||
logo=\bcbombe
|
||||
]{Important}
|
||||
Since you are directly calling the profiler functions here, you will need to take care of manually disabling the code, if the \texttt{TRACY\_ENABLE} macro is not defined.
|
||||
|
||||
Additionally, make sure you have called \texttt{\_\_\_tracy\_init\_thread} before calling the
|
||||
\textttt{alloc} functions for the first time on a new non-main thread.
|
||||
\end{bclogo}
|
||||
|
||||
\subsubsection{Memory profiling}
|
||||
|
||||
Reference in New Issue
Block a user