mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +00:00
Use short ptr for message data.
This commit is contained in:
parent
52062f96d0
commit
72efbe28ed
@ -5506,7 +5506,7 @@ void Worker::Write( FileWrite& f )
|
|||||||
f.Write( &sz, sizeof( sz ) );
|
f.Write( &sz, sizeof( sz ) );
|
||||||
for( auto& v : m_data.messages )
|
for( auto& v : m_data.messages )
|
||||||
{
|
{
|
||||||
const auto ptr = (uint64_t)v;
|
const auto ptr = (uint64_t)(MessageData*)v;
|
||||||
f.Write( &ptr, sizeof( ptr ) );
|
f.Write( &ptr, sizeof( ptr ) );
|
||||||
WriteTimeOffset( f, refTime, v->time );
|
WriteTimeOffset( f, refTime, v->time );
|
||||||
f.Write( &v->ref, sizeof( v->ref ) );
|
f.Write( &v->ref, sizeof( v->ref ) );
|
||||||
|
@ -161,7 +161,7 @@ private:
|
|||||||
StringDiscovery<FrameData*> frames;
|
StringDiscovery<FrameData*> frames;
|
||||||
FrameData* framesBase;
|
FrameData* framesBase;
|
||||||
Vector<GpuCtxData*> gpuData;
|
Vector<GpuCtxData*> gpuData;
|
||||||
Vector<MessageData*> messages;
|
Vector<short_ptr<MessageData>> messages;
|
||||||
StringDiscovery<PlotData*> plots;
|
StringDiscovery<PlotData*> plots;
|
||||||
Vector<ThreadData*> threads;
|
Vector<ThreadData*> threads;
|
||||||
MemData memory;
|
MemData memory;
|
||||||
@ -326,7 +326,7 @@ public:
|
|||||||
std::pair<int, int> GetFrameRange( const FrameData& fd, int64_t from, int64_t to );
|
std::pair<int, int> GetFrameRange( const FrameData& fd, int64_t from, int64_t to );
|
||||||
|
|
||||||
const flat_hash_map<uint32_t, LockMap*, nohash<uint32_t>>& GetLockMap() const { return m_data.lockMap; }
|
const flat_hash_map<uint32_t, LockMap*, nohash<uint32_t>>& GetLockMap() const { return m_data.lockMap; }
|
||||||
const Vector<MessageData*>& GetMessages() const { return m_data.messages; }
|
const Vector<short_ptr<MessageData>>& GetMessages() const { return m_data.messages; }
|
||||||
const Vector<GpuCtxData*>& GetGpuData() const { return m_data.gpuData; }
|
const Vector<GpuCtxData*>& GetGpuData() const { return m_data.gpuData; }
|
||||||
const Vector<PlotData*>& GetPlots() const { return m_data.plots.Data(); }
|
const Vector<PlotData*>& GetPlots() const { return m_data.plots.Data(); }
|
||||||
const Vector<ThreadData*>& GetThreadData() const { return m_data.threads; }
|
const Vector<ThreadData*>& GetThreadData() const { return m_data.threads; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user