1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Properly use zone stack when inserting new zones.

CPU zones stack was also moved to thread data struct.
This commit is contained in:
Bartosz Taudul
2017-11-19 01:16:21 +01:00
parent 65a62d9611
commit b3e0d2660d
3 changed files with 18 additions and 36 deletions
-4
View File
@@ -89,9 +89,6 @@ private:
ThreadData* NoticeThread( uint64_t thread );
void NewZone( ZoneEvent* zone, uint64_t thread );
void UpdateZone( ZoneEvent* zone );
void InsertZone( ZoneEvent* zone, Vector<ZoneEvent*>& vec );
void InsertLockEvent( LockMap& lockmap, LockEvent* lev, uint64_t thread );
void UpdateLockCount( LockMap& lockmap, size_t pos );
@@ -187,7 +184,6 @@ private:
std::vector<float> m_mbps;
// not used for vis - no need to lock
flat_hash_map<uint64_t, std::vector<ZoneEvent*>, power_of_two_std_hash<uint64_t>> m_zoneStack;
flat_hash_set<uint64_t, power_of_two_std_hash<uint64_t>> m_pendingStrings;
flat_hash_set<uint64_t, power_of_two_std_hash<uint64_t>> m_pendingThreads;
flat_hash_set<uint64_t, power_of_two_std_hash<uint64_t>> m_pendingSourceLocation;