clang time-trace 'InstantiateFunction' problem #4741
Unanswered
leaflinfeng
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I cannot reproduce this with a debugger. Can you share the call to clang? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was using clang time-trace to analyze the compilation time of our project. Some cpp file does only include 'json.hpp' indirectly, without using any json class. But I found that many nlohmann json's related 'InstantiateFunction' in the time-trace events, and the cumulative time is very high. I wonder why? And how to avoid this? thx 🙏
The minimum cpp demo :
clang time-trace :
Beta Was this translation helpful? Give feedback.
All reactions