doc: describe the new 4th column of the profiler output, and its compatibility with tcc & multithreading; describe better the stib comp parameter (#24358)

This commit is contained in:
Eliyaan (Nopana) 2025-04-30 07:20:12 +02:00 committed by GitHub
parent ead4d90a14
commit 61a619937b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -5532,7 +5532,9 @@ The generated profile.txt file will have lines with 4 columns:
1. How many times a function was called.
2. How much time in total a function took (in ms).
3. How much time on average, a call to a function took (in ns).
4. The name of the v function.
4. How much time a function took (in ms), on its own, without the calls inside it.
It is reliable for multithreaded programs, when tcc is not used.
5. The name of the v function.
You can sort on column 3 (average time per function) using:
`sort -n -k3 profile.txt|tail`