mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Allow access to timeline items stored in the controller.
This is similar to the previously existing Vis() access function.
This commit is contained in:
parent
9355a14657
commit
1736fb387a
@ -1,6 +1,7 @@
|
||||
#ifndef __TRACYTIMELINECONTROLLER_HPP__
|
||||
#define __TRACYTIMELINECONTROLLER_HPP__
|
||||
|
||||
#include <assert.h>
|
||||
#include <vector>
|
||||
|
||||
#include "../public/common/TracyForceInline.hpp"
|
||||
@ -42,6 +43,13 @@ public:
|
||||
void AdjustThreadHeight( VisData& vis, int oldOffset, int& offset );
|
||||
float AdjustThreadPosition( VisData& vis, float wy, int& offset );
|
||||
|
||||
tracy_force_inline TimelineItem& GetItem( const void* data )
|
||||
{
|
||||
auto it = m_itemMap.find( data );
|
||||
assert( it != m_itemMap.end() );
|
||||
return *it->second;
|
||||
}
|
||||
|
||||
tracy_force_inline VisData& Vis( const void* ptr )
|
||||
{
|
||||
auto it = m_visData.find( ptr );
|
||||
|
Loading…
Reference in New Issue
Block a user