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 );
|
||||
assert( td );
|
||||
td->groupHint = ev.groupHint;
|
||||
m_pendingThreadHints.emplace_back( ev.thread );
|
||||
}
|
||||
|
||||
void Worker::ProcessFiberEnter( const QueueFiberEnter& ev )
|
||||
|
@ -678,6 +678,9 @@ public:
|
||||
|
||||
StringLocation StoreString(const char* str, size_t sz);
|
||||
|
||||
std::vector<uint32_t>& GetPendingThreadHints() { return m_pendingThreadHints; }
|
||||
void ClearPendingThreadHints() { m_pendingThreadHints.clear(); }
|
||||
|
||||
private:
|
||||
void Network();
|
||||
void Exec();
|
||||
@ -1097,6 +1100,8 @@ private:
|
||||
unordered_flat_map<uint64_t, PowerData> m_powerData;
|
||||
|
||||
Vector<InlineStackData> m_inlineStack;
|
||||
|
||||
std::vector<uint32_t> m_pendingThreadHints;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user