---
name: "papi_cost"
section: "1"
platform: "linux"
package: "papi-tools"
version: "7.1.0-5+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/papi_cost"
---

# papi\_cost(1)

papi\_cost utility. file papi\_cost.c

## NAME

papi\_cost - papi\_cost utility.

file papi\_cost.c

## NAME

papi\_cost - computes execution time costs for basic PAPI operations.

## Synopsis

papi\_cost \[-dhps\] \[-b bins\] \[-t threshold\]

## Description

papi\_cost is a PAPI utility program that computes the min / max / mean / std. deviation of execution times for PAPI start/stop pairs and for PAPI reads. This information provides the basic operating cost to a user's program for collecting hardware counter data. Command line options control display capabilities.

## Options

- •

  \-b \< bins \> Define the number of bins into which the results are partitioned for display. The default is 100.

- •

  \-d Display a graphical distribution of costs in a vertical histogram.

- •

  \-h Display help information about this utility.

- •

  \-p Display 25/50/75 perecentile results for making boxplots.

- •

  \-s Show the number of iterations in each of the first 10 standard deviations above the mean.

- •

  \-t \< threshold \> Set the threshold for the number of iterations to measure costs. The default is 1,000,000.

## Bugs

There are no known bugs in this utility. If you find a bug, it should be reported to the PAPI Mailing List at ptools-perfapi@icl.utk.edu.
