MetanoKid / cpp-build-analyzer

Analyzes MSVC C++ compilations with C++ Build Insights SDK
GNU General Public License v3.0
80 stars 2 forks source link

! for some reason some template names are not found #54

Open mihaisebea opened 4 years ago

mihaisebea commented 4 years ago

Unfortunately is not easy to create a simple reproducible case. It seems that SpecializationID is 0. I will try to look more into this.

MetanoKid commented 3 years ago

Hi Mihai, thank you for another fix!

I guess the PR can be approved, but I'd like to have some more info on the issue before merging it. Can you please answer these questions?

Thanks 👍

mihaisebea commented 3 years ago

Hi @MetanoKid I used Visual Studio 2019 16.7.2 Seems the default is indeed 10ms but I have templates that take well over 500ms.

As far as i'm debugging this, in this function:

void TemplateInstantiationsAnalyzer::OnTemplateInstantiation(const CppBI::Activities::TemplateInstantiation& templateInstantiation)
{

there are plenty instantiations that have PrimaryTemplateSymbolKey and SpecializationSymbolKey 0 (zero) And this is what the event looks like. image