mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Collect and transmit source thread information.
This commit is contained in:
parent
b0f94f6b45
commit
a557a3fb30
@ -4,6 +4,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "TracyProfiler.hpp"
|
#include "TracyProfiler.hpp"
|
||||||
|
#include "TracyThread.hpp"
|
||||||
|
|
||||||
namespace tracy
|
namespace tracy
|
||||||
{
|
{
|
||||||
@ -12,7 +13,7 @@ class ScopedZone
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ScopedZone( const char* file, const char* function, uint32_t line )
|
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() } ) )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ struct QueueZoneBegin
|
|||||||
uint64_t filename; // ptr
|
uint64_t filename; // ptr
|
||||||
uint64_t function; // ptr
|
uint64_t function; // ptr
|
||||||
uint32_t line;
|
uint32_t line;
|
||||||
|
uint64_t thread;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct QueueZoneEnd
|
struct QueueZoneEnd
|
||||||
|
Loading…
Reference in New Issue
Block a user