mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Reserve space for thread map, list.
This commit is contained in:
parent
18fd928a9d
commit
db930f7f93
@ -645,6 +645,8 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
|
|||||||
lockmap.timeAnnounce = lockmap.timeTerminate = 0;
|
lockmap.timeAnnounce = lockmap.timeTerminate = 0;
|
||||||
}
|
}
|
||||||
f.Read( tsz );
|
f.Read( tsz );
|
||||||
|
lockmap.threadMap.reserve( tsz );
|
||||||
|
lockmap.threadList.reserve( tsz );
|
||||||
for( uint64_t i=0; i<tsz; i++ )
|
for( uint64_t i=0; i<tsz; i++ )
|
||||||
{
|
{
|
||||||
uint64_t t;
|
uint64_t t;
|
||||||
|
Loading…
Reference in New Issue
Block a user