mirror of
https://github.com/bellard/quickjs.git
synced 2025-05-29 01:49:18 +08:00
There is an option to define how many samples to use with the definition of compile time macro "PROFILE_CALLS_SAMPLE" the default value is 10. The code is guarded by a compile time macro "CONFIG_PROFILE_CALLS", to build execute "make CONFIG_PROFILE_CALLS=1". When using the added option "-p" we can repeat it up to 3 times: - "-p" -> Only update calls count and omit functions with 0 calls - "-p -p" -> Update calls count and sampled time_spent and omit functions with 0 calls - "-p -p -p" -> Like the above but showing functions with 0 calls. The output format: =[ code_line call_count acumulated_time_spent average_time_spent function_name ] [454 2 1 6 xfillArr]
The main documentation is in doc/quickjs.pdf or doc/quickjs.html.
Languages
C
94.1%
JavaScript
5.3%
Makefile
0.5%
Shell
0.1%