mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-14 04:01:48 +00:00
Store GPU accuracy bits info.
This commit is contained in:
parent
c251690722
commit
1a4889116e
@ -141,6 +141,7 @@ struct GpuCtxData
|
|||||||
Vector<GpuEvent*> timeline;
|
Vector<GpuEvent*> timeline;
|
||||||
Vector<GpuEvent*> stack;
|
Vector<GpuEvent*> stack;
|
||||||
Vector<GpuEvent*> queue;
|
Vector<GpuEvent*> queue;
|
||||||
|
uint8_t accuracyBits;
|
||||||
bool showFull;
|
bool showFull;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -348,6 +348,7 @@ View::View( FileRead& f )
|
|||||||
{
|
{
|
||||||
auto ctx = m_slab.AllocInit<GpuCtxData>();
|
auto ctx = m_slab.AllocInit<GpuCtxData>();
|
||||||
f.Read( &ctx->thread, sizeof( ctx->thread ) );
|
f.Read( &ctx->thread, sizeof( ctx->thread ) );
|
||||||
|
f.Read( &ctx->accuracyBits, sizeof( ctx->accuracyBits ) );
|
||||||
ReadTimeline( f, ctx->timeline );
|
ReadTimeline( f, ctx->timeline );
|
||||||
ctx->showFull = true;
|
ctx->showFull = true;
|
||||||
m_gpuData.push_back( ctx );
|
m_gpuData.push_back( ctx );
|
||||||
@ -831,6 +832,7 @@ void View::ProcessGpuNewContext( const QueueGpuNewContext& ev )
|
|||||||
auto gpu = m_slab.AllocInit<GpuCtxData>();
|
auto gpu = m_slab.AllocInit<GpuCtxData>();
|
||||||
gpu->timeDiff = int64_t( ev.cputime * m_timerMul - ev.gputime );
|
gpu->timeDiff = int64_t( ev.cputime * m_timerMul - ev.gputime );
|
||||||
gpu->thread = ev.thread;
|
gpu->thread = ev.thread;
|
||||||
|
gpu->accuracyBits = ev.accuracyBits;
|
||||||
gpu->showFull = true;
|
gpu->showFull = true;
|
||||||
m_gpuData.push_back( gpu );
|
m_gpuData.push_back( gpu );
|
||||||
}
|
}
|
||||||
@ -3759,6 +3761,7 @@ void View::Write( FileWrite& f )
|
|||||||
for( auto& ctx : m_gpuData )
|
for( auto& ctx : m_gpuData )
|
||||||
{
|
{
|
||||||
f.Write( &ctx->thread, sizeof( ctx->thread ) );
|
f.Write( &ctx->thread, sizeof( ctx->thread ) );
|
||||||
|
f.Write( &ctx->accuracyBits, sizeof( ctx->accuracyBits ) );
|
||||||
WriteTimeline( f, ctx->timeline );
|
WriteTimeline( f, ctx->timeline );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user