mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Directly store values.
This commit is contained in:
parent
8d854b1c8f
commit
63e4f6fa04
@ -2035,7 +2035,9 @@ void Worker::ReadTimeline( FileRead& f, Vector<ZoneEvent*>& vec, uint16_t thread
|
|||||||
#ifndef TRACY_NO_STATISTICS
|
#ifndef TRACY_NO_STATISTICS
|
||||||
auto it = m_data.sourceLocationZones.find( zone->srcloc );
|
auto it = m_data.sourceLocationZones.find( zone->srcloc );
|
||||||
assert( it != m_data.sourceLocationZones.end() );
|
assert( it != m_data.sourceLocationZones.end() );
|
||||||
it->second.zones.push_back( ZoneThreadData { zone, thread } );
|
auto& ztd = it->second.zones.push_next();
|
||||||
|
ztd.zone = zone;
|
||||||
|
ztd.thread = thread;
|
||||||
|
|
||||||
if( zone->end >= 0 )
|
if( zone->end >= 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user