I have a big program to run. Using valgrind it takes hours and hours to run. I heard that there is something where we can call valgrind for a specific function in the program. And rest of program will be executed normally(without valgrind env). Can anybody help me with this. I tried searching it over internet , May be I am missing the term to search.
相关问题
- localtime_r consuming some memory before program e
- Confusing output from Valgrind shows indirectly lo
- valgrind Error: Conditional jump or move depends o
- valgrind complaining about __mktime - is that my f
- Running Eclipse under Valgrind
相关文章
- Why doesn't valgrind detect a memory leak in m
- Is there anyway a valgrind message “Conditional ju
- new libstdc++ of gcc5.1 may allocate large heap me
- What is the difference between a direct and indire
- free(): invalid next size (normal) on fclose. But
- Sample example program to get the malloc consolida
- Eclipse CDT setup for valgrind + gdb
- Valgrind shows memory leak on empty program on Mac
Googling "valgrind profile specific function only" and go "I feel lucky"
More here
It all depends on what tool you're wanting to use. For callgrind (the profiler in valgrind) there is an option --toggle-collect=function to allow you to collect information inside a particular function and all its children.
However if the tool you're interested in is memcheck (for capturing leaks / memory errors) then there is no available command line option.