mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Use consistent names.
This commit is contained in:
parent
48da593ab2
commit
0100266234
@ -54,8 +54,8 @@ public:
|
||||
auto& tail = token->get_tail_index();
|
||||
auto item = token->enqueue_begin<moodycamel::CanAlloc>( magic );
|
||||
item->hdr.type = QueueType::GpuNewContext;
|
||||
item->gpuNewContext.cputime = tcpu;
|
||||
item->gpuNewContext.gputime = tgpu;
|
||||
item->gpuNewContext.cpuTime = tcpu;
|
||||
item->gpuNewContext.gpuTime = tgpu;
|
||||
item->gpuNewContext.thread = GetThreadHandle();
|
||||
item->gpuNewContext.context = m_context;
|
||||
item->gpuNewContext.accuracyBits = bits;
|
||||
|
@ -136,8 +136,8 @@ struct QueueMessage
|
||||
|
||||
struct QueueGpuNewContext
|
||||
{
|
||||
int64_t cputime;
|
||||
int64_t gputime;
|
||||
int64_t cpuTime;
|
||||
int64_t gpuTime;
|
||||
uint64_t thread;
|
||||
uint16_t context;
|
||||
uint8_t accuracyBits;
|
||||
|
@ -844,7 +844,7 @@ void View::ProcessGpuNewContext( const QueueGpuNewContext& ev )
|
||||
assert( m_gpuCtxMap.find( ev.context ) == m_gpuCtxMap.end() );
|
||||
|
||||
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->accuracyBits = ev.accuracyBits;
|
||||
gpu->count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user