Building an Application for Trace Collection
- Define the required marco for your version of the Threading Building Blocks (TBB):
- For TBB 2019 or higher, define theTBB_USE_THREADING_TOOLSmacro and link against thetbblibrary. This macro activates the required instrumentations in theflow_graph.hheader. Thetbblibrary supports flow graph and algorithm profiling. All features other thanset_nameextensions are available as non-preview features.
- For TBB lower than 2019, define theTBB_PREVIEW_FLOW_GRAPH_TRACEmacro and link againsttbb_previewortbb_preview_debuglibrary. This macro activates the required instrumentation in theflow_graph.hheader. Thetbb_previewandtbb_preview_debuglibraries offer support for preview features not yet supported in the main library. The instrumentation needed by the Flow Graph Analyzer is supported as a Preview feature in TBB 4.3 and higher versions of the libraries.
- Compile using TBB 4.3 or higher.