File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/BuildAnalyzer/Analyzers/BuildTimeline Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ CppBI::AnalysisControl BuildTimelineAnalyzer::OnStartActivity(const CppBI::Event
2727 CppBI::MatchEventInMemberFunction (eventStack.Back (), this , &BuildTimelineAnalyzer::OnInvocation) ||
2828 CppBI::MatchEventInMemberFunction (eventStack.Back (), this , &BuildTimelineAnalyzer::OnFrontEndFile) ||
2929 CppBI::MatchEventInMemberFunction (eventStack.Back (), this , &BuildTimelineAnalyzer::OnFunction) ||
30- CppBI::MatchEventStackInMemberFunction (eventStack, this , &BuildTimelineAnalyzer::OnTemplateInstantiation);
30+ CppBI::MatchEventStackInMemberFunction (eventStack, this , &BuildTimelineAnalyzer::OnTemplateInstantiation) ||
31+ CppBI::MatchEventStackInMemberFunction (eventStack, this , &BuildTimelineAnalyzer::OnThread);
3132
3233 return CppBI::AnalysisControl::CONTINUE;
3334}
@@ -113,6 +114,11 @@ void BuildTimelineAnalyzer::OnTemplateInstantiation(const CppBI::Activities::Tem
113114 result.first ->second .push_back (templateInstantiation.EventInstanceId ());
114115}
115116
117+ void BuildTimelineAnalyzer::OnThread (const CppBI::Activities::Activity& parent, const CppBI::Activities::Thread& thread)
118+ {
119+ m_buildTimeline.UpdateEntryName (thread.EventInstanceId (), std::string (parent.EventName ()) + std::string (thread.EventName ()));
120+ }
121+
116122// ----------------------------------------------------------------------------
117123
118124void BuildTimelineAnalyzer::OnSymbolNameEvent (const CppBI::SimpleEvents::SymbolName& event)
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ class BuildTimelineAnalyzer : public CppBI::IAnalyzer
3939 void OnFrontEndFile (const CppBI::Activities::FrontEndFile& frontEndFile);
4040 void OnFunction (const CppBI::Activities::Function& function);
4141 void OnTemplateInstantiation (const CppBI::Activities::TemplateInstantiation& templateInstantiation);
42+ void OnThread (const CppBI::Activities::Activity& parent, const CppBI::Activities::Thread& thread);
4243
4344 // specific event handling
4445 void OnSymbolNameEvent (const CppBI::SimpleEvents::SymbolName& event);
You can’t perform that action at this time.
0 commit comments