Skip to content
A Parallelism Profiler with What-If analyses for Intel Threading Building Blocks (TBB) programs
C++ C Assembly HTML Shell Makefile Other
Branch: master
Clone or download
Adarsh Yoga
Latest commit f839361 Feb 13, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
tprof-tbb-lib update to remove step region info Feb 13, 2018 Update May 3, 2017 updated build file with meaningful message when performance counters … Jun 25, 2017
index.html Updated index.html with instructions to run on remote machine Jun 27, 2017

TaskProf is an tool for identifying performance bottlenecks in task-based parallel programs written in C++ using Intel Threading Building Blocks library. For details on how TaskProf works, please refer to our paper.


TaskProf relies on hardware support for performance counters. To check if the machine supports hardware performance counters,

dmesg | grep PMU

If the output is "Performance Events: Unsupported...", then the machine does not support performance counters and TaskProf cannot be executed on the machine.


Install perf. On Ubuntu the following command can be used to install perf.

sudo apt-get install linux-tools-common linux-tools-generic linux-tools-`uname -r`

Install TaskProf.



We demonstrate how to use TaskProf on the tree sum test program under the tests directory. To execute TaskProf on the tree sum test program:

cd <path_to_TaskProf>/tests/treesum

This generates the profile data from the execution of the program. Next execute TaskProf's post-processing program to generate the profile.


Note, TP_GENPROF is an environment variable already setup by the build script.

This generates the parallelism profile in the file ws_profile.csv. The first row of the profile describes what each column represents. The second row specifies the parallelism of the entire program and the percentage of work performed on the critical path by the main function. The rest of the rows specify the parallelism and the critical path percentage for each static spawn site in the program.

You can’t perform that action at this time.