mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 22:13:51 +00:00
Add per-thread time ranges to lock maps.
This commit is contained in:
parent
71e20e7e7f
commit
4d66317bc3
@ -252,6 +252,12 @@ struct GpuCtxData
|
|||||||
|
|
||||||
struct LockMap
|
struct LockMap
|
||||||
{
|
{
|
||||||
|
struct TimeRange
|
||||||
|
{
|
||||||
|
int64_t start = std::numeric_limits<int64_t>::max();
|
||||||
|
int64_t end = std::numeric_limits<int64_t>::min();
|
||||||
|
};
|
||||||
|
|
||||||
uint32_t srcloc;
|
uint32_t srcloc;
|
||||||
Vector<LockEvent*> timeline;
|
Vector<LockEvent*> timeline;
|
||||||
flat_hash_map<uint64_t, uint8_t, nohash<uint64_t>> threadMap;
|
flat_hash_map<uint64_t, uint8_t, nohash<uint64_t>> threadMap;
|
||||||
@ -260,6 +266,8 @@ struct LockMap
|
|||||||
int64_t timeAnnounce;
|
int64_t timeAnnounce;
|
||||||
int64_t timeTerminate;
|
int64_t timeTerminate;
|
||||||
bool valid;
|
bool valid;
|
||||||
|
|
||||||
|
TimeRange range[64];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct LockHighlight
|
struct LockHighlight
|
||||||
|
Loading…
x
Reference in New Issue
Block a user