kOTF is a C++ execution trace generation library. It is inspired by ParaTools' OTF, but it is more flexible. And more importantly, it is convenient, thread-safe where needed, and has low overhead, so it can be actually used to generate traces.
Use it to get more insight than a simple profiler provides, and with more control than an automatic instrumentation, the tool would provide (although an automatic instrumentation tool is in the works too).