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 @@ -29,7 +29,8 @@ CppBI::AnalysisControl BuildTimelineAnalyzer::OnStartActivity(const CppBI::Event
2929 CppBI::MatchEventInMemberFunction (eventStack.Back (), this , &BuildTimelineAnalyzer::OnInvocation) ||
3030 CppBI::MatchEventInMemberFunction (eventStack.Back (), this , &BuildTimelineAnalyzer::OnFrontEndFile) ||
3131 CppBI::MatchEventInMemberFunction (eventStack.Back (), this , &BuildTimelineAnalyzer::OnFunction) ||
32- CppBI::MatchEventStackInMemberFunction (eventStack, this , &BuildTimelineAnalyzer::OnTemplateInstantiation);
32+ CppBI::MatchEventStackInMemberFunction (eventStack, this , &BuildTimelineAnalyzer::OnTemplateInstantiation) ||
33+ CppBI::MatchEventStackInMemberFunction (eventStack, this , &BuildTimelineAnalyzer::OnThread);
3334
3435 return CppBI::AnalysisControl::CONTINUE;
3536}
@@ -152,6 +153,11 @@ void BuildTimelineAnalyzer::OnTemplateInstantiationFinished(const CppBI::Activit
152153 }
153154}
154155
156+ void BuildTimelineAnalyzer::OnThread (const CppBI::Activities::Activity& parent, const CppBI::Activities::Thread& thread)
157+ {
158+ m_buildTimeline.UpdateEntryName (thread.EventInstanceId (), std::string (parent.EventName ()) + std::string (thread.EventName ()));
159+ }
160+
155161// ----------------------------------------------------------------------------
156162
157163void BuildTimelineAnalyzer::OnSymbolNameEvent (const CppBI::SimpleEvents::SymbolName& event)
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ class BuildTimelineAnalyzer : public CppBI::IAnalyzer
4343 void OnFunctionFinished (const CppBI::Activities::Activity& parent, const CppBI::Activities::Function& function);
4444 void OnTemplateInstantiation (const CppBI::Activities::TemplateInstantiation& templateInstantiation);
4545 void OnTemplateInstantiationFinished (const CppBI::Activities::Activity& parent, const CppBI::Activities::TemplateInstantiation& templateInstantiation);
46+ void OnThread (const CppBI::Activities::Activity& parent, const CppBI::Activities::Thread& thread);
4647
4748 // specific event handling
4849 void OnSymbolNameEvent (const CppBI::SimpleEvents::SymbolName& event);
You can’t perform that action at this time.
0 commit comments