<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/59642>59642</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] Wrong information displayed with `--enable-check-profile`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            bug,
            clang-tidy,
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          carlosgalvezp
      </td>
    </tr>
</table>

<pre>
    Hi,

I'm investigating a performance regression - clang-tidy takes now around 7 minutes (!) to process one of our .cpp files. If I enable `--enable-check-profile`, it says that it took in total around 18 seconds, with the most expensive check taking 1.48 seconds, which is clearly not true, so I can't really tell where the performance regression comes from.

Thus `--enable-check-profile` should be fixed to display accurate information.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8Uk1vpDoQ_DXm0gKB-RoOHPIyGr25P-mdjd2AN8ZG7mYms79-BUk22cPmwoehqrqqSxHZySP2ov5H1OdEbTyH2GsVXaBJuRv-XJMhmEf_rxXyWeRnkT-9Xa9CtgtYf0NiOym2fgIFK8YxxEV5jRBxikhkg4cUtFN-StmaB7B6QQIf7qBi2LyBFhbrN0YCIU9CFkJ2wAHWGDQSQfAIYYSwRcj0usJoHVIG1xGugF4NDkE0eZq-Pad6Rv2SrjHs_4kmF_IZLAOpBwHPivcXDuEFrAcOrNzHGMUJCHXwhnbI3fIMPCMsgRjwdUVP9oZw0O8edsNFVv0Jmq2ewRJohyq6B_jAwHHD_SMFuIJWXsiWIaJy7gGMzsF9xoiH1l_i02FBgjGGJfu6gv_mjb61DjSHzRkYEEb7imZP1VhanXqA0nqLihGsPyTZBv_Onpi-NF3ZqQT7ommLpsqrMk_mvlOjGXUuzaluu6LOKy1z3ZpG666TZhwT28tcykLKomjKss6z7jR0RYkdKl3qtlOiynFR1mXO3ZYsxCmxRBv2dddUMnFqQEdHGaUctklIubdOys_2_D7yeIcDu5_U5yT2O2U6bBOJKneWmD5F2LI7Sv6FqD7D_zH46WsAH-mgedv_d-EmW3T9zLySKJ-EvAh5mSzP25DpsAh52cXfbzvqB2oW8nKMTEJeDse_AgAA__-m5Sic">