mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42: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.
|
That will produce a profile.txt file, which you can then analyze.
|
||||||
|
|
||||||
The generated profile.txt file will have lines with 4 columns:
|
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)
|
1. How many times a function was called.
|
||||||
c) how much time on average, a call to a function took (in ns)
|
2. How much time in total a function took (in ms).
|
||||||
d) the name of the v function
|
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:
|
You can sort on column 3 (average time per function) using:
|
||||||
`sort -n -k3 profile.txt|tail`
|
`sort -n -k3 profile.txt|tail`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue