mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
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:
parent
ead4d90a14
commit
61a619937b
2 changed files with 7 additions and 1 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue