<commit_before># Profiling

## perf
`perf` is a Linux profiling tool. It can be used to profile Goblint as follows:

1. Record profiling data from a Goblint run: `perf record ./goblint GOBLINT_ARGUMENTS`.
2. View recorded data: `perf report`.

    Following keys can be used for navigation:

    * Arrows for moving around.
    * `+` for expanding/collapsing one callstack level
    * `e` for expanding/collapsing all callstack levels

    Function names are mangled: they contain the top-level OCaml module name and function name (or just `fun` for lambdas).
    Due to inlining some callstack levels might be skipped, making it difficult to follow.<commit_msg>Document perf quit<commit_after># Profiling

## perf
`perf` is a Linux profiling tool. It can be used to profile Goblint as follows:

1. Record profiling data from a Goblint run: `perf record ./goblint GOBLINT_ARGUMENTS`.
2. View recorded data: `perf report`.

    Following keys can be used for navigation:

    * Arrows for moving around.
    * `+` for expanding/collapsing one callstack level.
    * `e` for expanding/collapsing all callstack levels.
    * `q` for quitting.

    Function names are mangled: they contain the top-level OCaml module name and function name (or just `fun` for lambdas).
    Due to inlining some callstack levels might be skipped, making it difficult to follow.
{'fraction_non_alphanumeric': 0.06789667896678966, 'fraction_numerical': 0.002952029520295203, 'mean_word_length': 3.7083333333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4533065', 'n_tokens_mistral': 394, 'n_tokens_neox': 369, 'n_words': 186}