mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Adding thread statistics to prof.log
This commit is contained in:
parent
4f0fc571ef
commit
1058e11ffb
3 changed files with 52 additions and 1 deletions
|
@ -101,4 +101,21 @@ void Manager::Process()
|
|||
next_beat = network_time + HEART_BEAT_INTERVAL;
|
||||
}
|
||||
|
||||
const threading::Manager::msg_stats_list& threading::Manager::GetMsgThreadStats()
|
||||
{
|
||||
stats.clear();
|
||||
|
||||
for ( msg_thread_list::iterator i = msg_threads.begin(); i != msg_threads.end(); i++ )
|
||||
{
|
||||
MsgThread* t = *i;
|
||||
|
||||
MsgThread::Stats s;
|
||||
t->GetStats(&s);
|
||||
|
||||
stats.push_back(std::make_pair(t->Name(),s));
|
||||
}
|
||||
|
||||
return stats;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue