mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Small reformat
This commit is contained in:
parent
d30a2d6854
commit
31eeb843c7
@ -513,7 +513,7 @@ public:
|
|||||||
static tracy_force_inline void MemAllocCallstack( const void* ptr, size_t size, int depth, bool secure )
|
static tracy_force_inline void MemAllocCallstack( const void* ptr, size_t size, int depth, bool secure )
|
||||||
{
|
{
|
||||||
if( secure && !ProfilerAvailable() ) return;
|
if( secure && !ProfilerAvailable() ) return;
|
||||||
if (depth > 0 && has_callstack()) {
|
if( depth > 0 && has_callstack() ) {
|
||||||
auto& profiler = GetProfiler();
|
auto& profiler = GetProfiler();
|
||||||
# ifdef TRACY_ON_DEMAND
|
# ifdef TRACY_ON_DEMAND
|
||||||
if( !profiler.IsConnected() ) return;
|
if( !profiler.IsConnected() ) return;
|
||||||
@ -539,7 +539,7 @@ public:
|
|||||||
MemFree( ptr, secure );
|
MemFree( ptr, secure );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (depth > 0 && has_callstack()) {
|
if( depth > 0 && has_callstack() ) {
|
||||||
auto& profiler = GetProfiler();
|
auto& profiler = GetProfiler();
|
||||||
# ifdef TRACY_ON_DEMAND
|
# ifdef TRACY_ON_DEMAND
|
||||||
if( !profiler.IsConnected() ) return;
|
if( !profiler.IsConnected() ) return;
|
||||||
@ -588,7 +588,7 @@ public:
|
|||||||
static tracy_force_inline void MemAllocCallstackNamed( const void* ptr, size_t size, int depth, bool secure, const char* name )
|
static tracy_force_inline void MemAllocCallstackNamed( const void* ptr, size_t size, int depth, bool secure, const char* name )
|
||||||
{
|
{
|
||||||
if( secure && !ProfilerAvailable() ) return;
|
if( secure && !ProfilerAvailable() ) return;
|
||||||
if (depth > 0 && has_callstack()) {
|
if( depth > 0 && has_callstack() ) {
|
||||||
auto& profiler = GetProfiler();
|
auto& profiler = GetProfiler();
|
||||||
# ifdef TRACY_ON_DEMAND
|
# ifdef TRACY_ON_DEMAND
|
||||||
if( !profiler.IsConnected() ) return;
|
if( !profiler.IsConnected() ) return;
|
||||||
@ -610,7 +610,7 @@ public:
|
|||||||
static tracy_force_inline void MemFreeCallstackNamed( const void* ptr, int depth, bool secure, const char* name )
|
static tracy_force_inline void MemFreeCallstackNamed( const void* ptr, int depth, bool secure, const char* name )
|
||||||
{
|
{
|
||||||
if( secure && !ProfilerAvailable() ) return;
|
if( secure && !ProfilerAvailable() ) return;
|
||||||
if (depth > 0 && has_callstack()) {
|
if( depth > 0 && has_callstack() ) {
|
||||||
auto& profiler = GetProfiler();
|
auto& profiler = GetProfiler();
|
||||||
# ifdef TRACY_ON_DEMAND
|
# ifdef TRACY_ON_DEMAND
|
||||||
if( !profiler.IsConnected() ) return;
|
if( !profiler.IsConnected() ) return;
|
||||||
@ -645,7 +645,7 @@ public:
|
|||||||
static tracy_force_inline void MemDiscardCallstack( const char* name, bool secure, int depth )
|
static tracy_force_inline void MemDiscardCallstack( const char* name, bool secure, int depth )
|
||||||
{
|
{
|
||||||
if( secure && !ProfilerAvailable() ) return;
|
if( secure && !ProfilerAvailable() ) return;
|
||||||
if (depth > 0 && has_callstack()) {
|
if( depth > 0 && has_callstack() ) {
|
||||||
# ifdef TRACY_ON_DEMAND
|
# ifdef TRACY_ON_DEMAND
|
||||||
if( !GetProfiler().IsConnected() ) return;
|
if( !GetProfiler().IsConnected() ) return;
|
||||||
# endif
|
# endif
|
||||||
@ -664,7 +664,7 @@ public:
|
|||||||
|
|
||||||
static tracy_force_inline void SendCallstack( int depth )
|
static tracy_force_inline void SendCallstack( int depth )
|
||||||
{
|
{
|
||||||
if (depth > 0 && has_callstack()) {
|
if( depth > 0 && has_callstack() ) {
|
||||||
auto ptr = Callstack( depth );
|
auto ptr = Callstack( depth );
|
||||||
TracyQueuePrepare( QueueType::Callstack );
|
TracyQueuePrepare( QueueType::Callstack );
|
||||||
MemWrite( &item->callstackFat.ptr, (uint64_t)ptr );
|
MemWrite( &item->callstackFat.ptr, (uint64_t)ptr );
|
||||||
@ -904,7 +904,7 @@ private:
|
|||||||
|
|
||||||
static tracy_force_inline void SendCallstackSerial( void* ptr )
|
static tracy_force_inline void SendCallstackSerial( void* ptr )
|
||||||
{
|
{
|
||||||
if (has_callstack()) {
|
if ( has_callstack() ) {
|
||||||
auto item = GetProfiler().m_serialQueue.prepare_next();
|
auto item = GetProfiler().m_serialQueue.prepare_next();
|
||||||
MemWrite( &item->hdr.type, QueueType::CallstackSerial );
|
MemWrite( &item->hdr.type, QueueType::CallstackSerial );
|
||||||
MemWrite( &item->callstackFat.ptr, (uint64_t)ptr );
|
MemWrite( &item->callstackFat.ptr, (uint64_t)ptr );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user