对 RUNNING_IN_VALGRIND 的控制不够,只应在 --tool=memcheck 选项下启用
作者: stefvanvlierberghe创建于 2020年1月23日更新于 2026年2月8日
标签alk-wants-this-soon
gperftools-2.7 当在 valgrind 中使用 --tool=callgrind 或 --tool=none 时, tcmalloc 库仍然禁用对 malloc 扩展的函数调用,尽管使用这些工具时, valgrind 并未拦截 malloc 调用。
内容来源: gperftools/gperftools