mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Track progress of loading plots.
This commit is contained in:
parent
85fb87a2f0
commit
6ef2d2d9a3
@ -627,8 +627,10 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
|||||||
if( eventMask & EventType::Plots )
|
if( eventMask & EventType::Plots )
|
||||||
{
|
{
|
||||||
m_data.plots.reserve( sz );
|
m_data.plots.reserve( sz );
|
||||||
|
s_loadProgress.subTotal.store( sz, std::memory_order_relaxed );
|
||||||
for( uint64_t i=0; i<sz; i++ )
|
for( uint64_t i=0; i<sz; i++ )
|
||||||
{
|
{
|
||||||
|
s_loadProgress.subProgress.store( i, std::memory_order_relaxed );
|
||||||
auto pd = m_slab.AllocInit<PlotData>();
|
auto pd = m_slab.AllocInit<PlotData>();
|
||||||
pd->type = PlotType::User;
|
pd->type = PlotType::User;
|
||||||
f.Read( pd->name );
|
f.Read( pd->name );
|
||||||
|
Loading…
Reference in New Issue
Block a user