Collect and transmit source thread information.

This commit is contained in:
Bartosz Taudul 2017-09-22 01:11:53 +02:00
parent b0f94f6b45
commit a557a3fb30
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,7 @@
#include <stdint.h>
#include "TracyProfiler.hpp"
#include "TracyThread.hpp"
namespace tracy
{
@ -12,7 +13,7 @@ class ScopedZone
{
public:
ScopedZone( const char* file, const char* function, uint32_t line )
: m_id( Profiler::ZoneBegin( QueueZoneBegin { GetTime(), (uint64_t)file, (uint64_t)function, line } ) )
: m_id( Profiler::ZoneBegin( QueueZoneBegin { GetTime(), (uint64_t)file, (uint64_t)function, line, GetThreadHandle() } ) )
{
}

View File

@ -23,6 +23,7 @@ struct QueueZoneBegin
uint64_t filename; // ptr
uint64_t function; // ptr
uint32_t line;
uint64_t thread;
};
struct QueueZoneEnd