Sort lock map.

It is displayed in UI, so order is important.
This commit is contained in:
Bartosz Taudul 2017-10-24 22:30:43 +02:00
parent 03289175ab
commit 339c177ee8

View File

@ -2,6 +2,7 @@
#define __TRACYVIEW_HPP__
#include <atomic>
#include <map>
#include <mutex>
#include <string>
#include <thread>
@ -225,7 +226,7 @@ private:
std::unordered_map<uint64_t, std::string> m_threadNames;
std::unordered_set<const char*, charutil::Hasher, charutil::Comparator> m_customStrings;
std::unordered_map<uint64_t, QueueSourceLocation> m_sourceLocation;
std::unordered_map<uint32_t, LockMap> m_lockMap;
std::map<uint32_t, LockMap> m_lockMap;
uint64_t m_zonesCnt;
std::mutex m_mbpslock;