mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Add a list of pending thread hints.
This commit is contained in:
parent
28a9750f8a
commit
bdacfe7c37
@ -6872,6 +6872,7 @@ void Worker::ProcessThreadGroupHint( const QueueThreadGroupHint& ev )
|
|||||||
auto td = RetrieveThread( ev.thread );
|
auto td = RetrieveThread( ev.thread );
|
||||||
assert( td );
|
assert( td );
|
||||||
td->groupHint = ev.groupHint;
|
td->groupHint = ev.groupHint;
|
||||||
|
m_pendingThreadHints.emplace_back( ev.thread );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Worker::ProcessFiberEnter( const QueueFiberEnter& ev )
|
void Worker::ProcessFiberEnter( const QueueFiberEnter& ev )
|
||||||
|
@ -678,6 +678,9 @@ public:
|
|||||||
|
|
||||||
StringLocation StoreString(const char* str, size_t sz);
|
StringLocation StoreString(const char* str, size_t sz);
|
||||||
|
|
||||||
|
std::vector<uint32_t>& GetPendingThreadHints() { return m_pendingThreadHints; }
|
||||||
|
void ClearPendingThreadHints() { m_pendingThreadHints.clear(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Network();
|
void Network();
|
||||||
void Exec();
|
void Exec();
|
||||||
@ -1097,6 +1100,8 @@ private:
|
|||||||
unordered_flat_map<uint64_t, PowerData> m_powerData;
|
unordered_flat_map<uint64_t, PowerData> m_powerData;
|
||||||
|
|
||||||
Vector<InlineStackData> m_inlineStack;
|
Vector<InlineStackData> m_inlineStack;
|
||||||
|
|
||||||
|
std::vector<uint32_t> m_pendingThreadHints;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user