SWDEV-474179: Fixing hang issue for perfetto and missing records for trace period

Change-Id: I8926565720873d7dd730c5518f60ac6521e3bbf5
Αυτή η υποβολή περιλαμβάνεται σε:
Giovanni LB
2024-07-17 14:54:40 -03:00
υποβλήθηκε από Gopesh Bhardwaj
γονέας 637abbf8d7
υποβολή 95ed584e6d
8 αρχεία άλλαξαν με 25 προσθήκες και 25 διαγραφές
@@ -109,7 +109,7 @@ class ROCProfiler_Singleton {
const Agent::DeviceInfo& GetDeviceInfo(uint64_t gpu_id);
rocprofiler_timestamp_t timestamp_ns();
private:
rocprofiler_session_id_t current_session_id_{0};
std::atomic<rocprofiler_session_id_t> current_session_id_{rocprofiler_session_id_t{0}};
std::mutex session_map_lock_;
std::map<uint64_t, Session*> sessions_;
std::atomic<uint64_t> records_counter_{0};