Download Caliper (version 2.0.1 or later) from GitHub.
Build and install Caliper, then use it to instrument programs of your choice as described in the Caliper documentation: