> For the complete documentation index, see [llms.txt](https://explore-vineeth.gitbook.io/mywiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://explore-vineeth.gitbook.io/mywiki/how-to/tracing-+-profiling/perf.md).

# Perf

### Call graph&#x20;

{% code title="Record perf data with -g " %}

```bash
perf record -g program options 
```

{% endcode %}

{% code title="Convert the reported data into txt" %}

```bash
perf report  --stdio --header > perf_report.txt 
```

{% endcode %}

### Profile using firefox

Firefox has an inbuilt profile scheme ( <https://profiler.firefox.com/> )

{% code title="Record the program" %}

```bash
perf record -g program options
```

{% endcode %}

{% code title="Convert reported data" %}

```bash
perf script -F +pid > test.perf 
```

{% endcode %}

Upload the above profile data to the  website
