mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Hide SendCallstackMemory().
This commit is contained in:
parent
8c46ad81d5
commit
909166daf7
@ -236,16 +236,6 @@ public:
|
|||||||
s_profiler.m_serialLock.unlock();
|
s_profiler.m_serialLock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
static tracy_force_inline void SendCallstackMemory( int depth )
|
|
||||||
{
|
|
||||||
#ifdef TRACY_HAS_CALLSTACK
|
|
||||||
auto ptr = Callstack( depth );
|
|
||||||
auto item = s_profiler.m_serialQueue.push_next();
|
|
||||||
MemWrite( &item->hdr.type, QueueType::CallstackMemory );
|
|
||||||
MemWrite( &item->callstackMemory.ptr, (uint64_t)ptr );
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool ShouldExit();
|
static bool ShouldExit();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -272,6 +262,16 @@ private:
|
|||||||
void CalibrateTimer();
|
void CalibrateTimer();
|
||||||
void CalibrateDelay();
|
void CalibrateDelay();
|
||||||
|
|
||||||
|
static tracy_force_inline void SendCallstackMemory( int depth )
|
||||||
|
{
|
||||||
|
#ifdef TRACY_HAS_CALLSTACK
|
||||||
|
auto ptr = Callstack( depth );
|
||||||
|
auto item = s_profiler.m_serialQueue.push_next();
|
||||||
|
MemWrite( &item->hdr.type, QueueType::CallstackMemory );
|
||||||
|
MemWrite( &item->callstackMemory.ptr, (uint64_t)ptr );
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
static tracy_force_inline void SendMemAlloc( QueueType type, const uint64_t thread, const void* ptr, size_t size )
|
static tracy_force_inline void SendMemAlloc( QueueType type, const uint64_t thread, const void* ptr, size_t size )
|
||||||
{
|
{
|
||||||
assert( type == QueueType::MemAlloc || type == QueueType::MemAllocCallstack );
|
assert( type == QueueType::MemAlloc || type == QueueType::MemAllocCallstack );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user