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

Implement callstack serialization.

This commit is contained in:
Bartosz Taudul
2021-10-10 16:14:17 +02:00
parent a421083e58
commit 5ccf369919
4 changed files with 42 additions and 6 deletions
+2 -2
View File
@@ -182,10 +182,10 @@ static tracy_force_inline void SendLuaCallstack( lua_State* L, uint32_t depth )
}
assert( dst - ptr == spaceNeeded + 2 );
TracyLfqPrepare( QueueType::CallstackAlloc );
TracyQueuePrepare( QueueType::CallstackAlloc );
MemWrite( &item->callstackAllocFat.ptr, (uint64_t)ptr );
MemWrite( &item->callstackAllocFat.nativePtr, (uint64_t)Callstack( depth ) );
TracyLfqCommit;
TracyQueueCommit( callstackAllocFatThread );
}
static inline int LuaZoneBeginS( lua_State* L )