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

Fix code formatting

This commit is contained in:
Igor S. Gerasimov
2025-01-02 11:49:51 +01:00
parent 31eeb843c7
commit b9c7cd1738
3 changed files with 39 additions and 17 deletions
+6 -3
View File
@@ -35,7 +35,8 @@ public:
m_connectionId = GetProfiler().ConnectionId();
#endif
auto zoneQueue = QueueType::ZoneBegin;
if( depth > 0 && has_callstack() ) {
if( depth > 0 && has_callstack() )
{
GetProfiler().SendCallstack( depth );
zoneQueue = QueueType::ZoneBeginCallstack;
}
@@ -57,12 +58,14 @@ public:
m_connectionId = GetProfiler().ConnectionId();
#endif
auto zoneQueue = QueueType::ZoneBeginAllocSrcLoc;
if( depth > 0 && has_callstack() ) {
if( depth > 0 && has_callstack() )
{
GetProfiler().SendCallstack( depth );
zoneQueue = QueueType::ZoneBeginAllocSrcLocCallstack;
}
TracyQueuePrepare( zoneQueue );
const auto srcloc = Profiler::AllocSourceLocation( line, source, sourceSz, function, functionSz, name, nameSz, color );
const auto srcloc =
Profiler::AllocSourceLocation( line, source, sourceSz, function, functionSz, name, nameSz, color );
MemWrite( &item->zoneBegin.time, Profiler::GetTime() );
MemWrite( &item->zoneBegin.srcloc, srcloc );
TracyQueueCommit( zoneBeginThread );