mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Remove spacing from source code.
This commit is contained in:
parent
19f3c5f5ff
commit
f540038d0d
@ -425,17 +425,17 @@ Tracy can monitor memory usage of your application. Knowledge about each perform
|
|||||||
To mark memory events, use the \texttt{TracyAlloc(ptr, size)} and \texttt{TracyFree(ptr)} macros. Typically you would do that in overloads of \texttt{operator new} and \texttt{operator delete}, for example:
|
To mark memory events, use the \texttt{TracyAlloc(ptr, size)} and \texttt{TracyFree(ptr)} macros. Typically you would do that in overloads of \texttt{operator new} and \texttt{operator delete}, for example:
|
||||||
|
|
||||||
\begin{lstlisting}
|
\begin{lstlisting}
|
||||||
void* operator new( std::size_t count )
|
void* operator new(std::size_t count)
|
||||||
{
|
{
|
||||||
auto ptr = malloc( count );
|
auto ptr = malloc(count);
|
||||||
TracyAlloc( ptr, count );
|
TracyAlloc(ptr, count);
|
||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void operator delete( void* ptr ) noexcept
|
void operator delete(void* ptr) noexcept
|
||||||
{
|
{
|
||||||
TracyFree( ptr );
|
TracyFree(ptr);
|
||||||
free( ptr );
|
free(ptr);
|
||||||
}
|
}
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user