If I run Valgrind cachegrind, will the results with one or more threads be different? Or Valgrind just sequentializes the program and only reports the work of one thread?
Valgrind serializes all threads in an indeterminate fashion and analyses the sequential code flow. You will receive results about all your code, but the results may not be representative of an actual production run of the same code. (For example, many concurrency-related bugs will not manifest in a program that's run under Valgrind.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With