c++ – Visual Studio 2022 Build Insights trace file empty


I’m trying to analyse our build and see if anything can be sped up and using Build Insights including “Collect template instantiation”.
This works for small portions of the solution, but it seems that once there are too many files and projects included, the build succeeds, but I get as output

========== C++ Build Insights ==========
Starting collection…
Collecting data…
Finishing data collection…
Preparing data for analysis…
Warning: The trace collected during this session is empty. The trace contains data only if the MSVC toolset is being used, and only if code compilation occurred and was not skipped by up-to-date checks. A rebuild may be needed to generate data for the trace.
========== C++ Build Insights: failure occurred during data collection ==========

Doing the exact same thing on a smaller subproject does work and gives me an ETL file which I can view the include files and template instantiations.

How can I figure out what is causing this to fail, and more importantly, how do I fix this?

Leave a Reply

Your email address will not be published. Required fields are marked *