docs: fix html rendering of the list of columns, in the description of the #profiling section

This commit is contained in:
Delyan Angelov 2024-10-16 15:18:53 +03:00
parent a64dfc776b
commit 3326392ce2
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -5380,10 +5380,11 @@ V has good support for profiling your programs: `v -profile profile.txt run file
That will produce a profile.txt file, which you can then analyze.
The generated profile.txt file will have lines with 4 columns:
a) how many times a function was called
b) how much time in total a function took (in ms)
c) how much time on average, a call to a function took (in ns)
d) the name of the v function
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.
You can sort on column 3 (average time per function) using:
`sort -n -k3 profile.txt|tail`