After using callgrind to profile my code, I see that __printf_fp() is the function with more value in the self column. What is this function and when is it called?

Thank you!

有帮助吗?

解决方案

__printf_pf() belongs to the libstdc++ library. It is mainly called by any printf related function (ostream, ofstream, etc). However, when it is called depends on the compiler and compiler's version as pointed out here: C++ output stream floating point call chain

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top