Identify inefficient precompiled headers in C++

127 views Asked by At

We have precompiled headers, list of headers in pch.h and I'd like refine that list because it seems inefficient. I'm using CMake+MSVC to compile our project. We have single pch.h file and multiple targets (both shared and static)

I'm using vcperf to profile the compilation time and follow these steps https://devblogs.microsoft.com/cppblog/faster-cpp-builds-simplified-a-new-metric-for-time/

What would be efficient strategy to spot ineffective headers in my pch.h list? Is vcperf emiting some data that could be interpreted so that I can understand that some header can be kicked out of my pch.h file?

0

There are 0 answers