Using
valgrind --tool=callgrind
on Linux
.....I would like to pass canned messages into my process. However for the first eg 90% of the messages I would like to process as normal, with no grinding, in order to build up a map. Then I would like to activate valgrind/callgrind only for the last 10% messages.
Is this possible?
Maybe there is a way to increment a counter in my C++ code and when it reaches a certain threshold, activate valgrind/callgrind.
Your feedback is much appreciated.