Intel® Advisor Help
To build an application enabled for trace collection:
Define the TBB_USE_THREADING_TOOLS macro and link against the tbb library. This macro activates the required instrumentations in the flow_graph.h header. The Intel® oneAPI Threading Building Blocks (oneTBB) library supports flow graph and algorithm profiling. All features other than set_name extensions are available as non-preview features.
Refer to the OS-specific topics for instructions on how to build an application depending on your operating system.