|
From: Christoph B. <bar...@or...> - 2006-09-01 07:54:41
|
Hi, I am currently experimenting with callgrind. What is the correct way to achieve the following: Profile two different actions done in the same process and examine the profiles separately. Till now I would do: 1. Start the programm with --instr-atstart=no 2. Wait till programm flow reaches the desired state. 3. Start instrumenting: callgrind_control -i on 4. Start the first action. 5. Dump a profile: callgrind_control -d first 6. Start the second action. 7. Dump a profile: callgrind_control -d second 8. Stop instrumenting: callgrind_control -i off 9. Finish the programm. Is this correct? And how to get separate profiling sessions in kcachegrind? Does this work seamlessly with the -dump-every-bb option? Greetings Christoph Bartoschek |