mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
docs: fix html rendering of the list of columns, in the description of the #profiling section
This commit is contained in:
parent
a64dfc776b
commit
3326392ce2
1 changed files with 5 additions and 4 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue