Public repository of the QuickJS Javascript Engine.
Go to file
mingodad 204ee9d17b Add an option to output profiling/coverage info (basically function calls count and clock_t time spent).
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]
2023-06-06 14:13:10 +02:00
doc 2021-03-27 release 2021-03-27 11:17:31 +01:00
examples 2020-07-05 release 2020-09-06 19:07:30 +02:00
tests 2021-03-27 release 2021-03-27 11:17:31 +01:00
Changelog 2021-03-27 release 2021-03-27 11:17:31 +01:00
cutils.c 2020-09-06 release 2020-09-06 19:10:15 +02:00
cutils.h 2020-07-05 release 2020-09-06 19:07:30 +02:00
libbf.c 2021-03-27 release 2021-03-27 11:17:31 +01:00
libbf.h 2021-03-27 release 2021-03-27 11:17:31 +01:00
libregexp-opcode.h 2020-01-05 release 2020-09-06 18:53:08 +02:00
libregexp.c 2020-11-08 release 2020-11-08 14:30:56 +01:00
libregexp.h 2020-09-06 release 2020-09-06 19:10:15 +02:00
libunicode-table.h updated to Unicode 14.0.0 2022-03-06 19:00:24 +01:00
libunicode.c 2020-09-06 release 2020-09-06 19:10:15 +02:00
libunicode.h 2020-01-05 release 2020-09-06 18:53:08 +02:00
LICENSE 2021-03-27 release 2021-03-27 11:17:31 +01:00
list.h 2020-01-05 release 2020-09-06 18:53:08 +02:00
Makefile Add an option to output profiling/coverage info (basically function calls count and clock_t time spent). 2023-06-06 14:13:10 +02:00
qjs.c Add an option to output profiling/coverage info (basically function calls count and clock_t time spent). 2023-06-06 14:13:10 +02:00
qjsc.c 2021-03-27 release 2021-03-27 11:17:31 +01:00
qjscalc.js 2021-03-27 release 2021-03-27 11:17:31 +01:00
quickjs-atom.h 2020-11-08 release 2020-11-08 14:30:56 +01:00
quickjs-libc.c 2021-03-27 release 2021-03-27 11:17:31 +01:00
quickjs-libc.h 2020-09-06 release 2020-09-06 19:10:15 +02:00
quickjs-opcode.h 2020-11-08 release 2020-11-08 14:30:56 +01:00
quickjs.c Add an option to output profiling/coverage info (basically function calls count and clock_t time spent). 2023-06-06 14:13:10 +02:00
quickjs.h Add an option to output profiling/coverage info (basically function calls count and clock_t time spent). 2023-06-06 14:13:10 +02:00
readme.txt 2020-01-05 release 2020-09-06 18:53:08 +02:00
release.sh 2021-03-27 release 2021-03-27 11:17:31 +01:00
repl.js 2020-07-05 release 2020-09-06 19:07:30 +02:00
run-test262.c 2021-03-27 release 2021-03-27 11:17:31 +01:00
test262_errors.txt 2021-03-27 release 2021-03-27 11:17:31 +01:00
test262.conf updated test262.conf 2022-03-06 18:55:04 +01:00
test262o_errors.txt 2020-01-05 release 2020-09-06 18:53:08 +02:00
test262o.conf 2020-01-05 release 2020-09-06 18:53:08 +02:00
TODO 2021-03-27 release 2021-03-27 11:17:31 +01:00
unicode_download.sh updated to Unicode 14.0.0 2022-03-06 19:00:24 +01:00
unicode_gen_def.h updated to Unicode 14.0.0 2022-03-06 19:00:24 +01:00
unicode_gen.c 2020-01-05 release 2020-09-06 18:53:08 +02:00
VERSION 2021-03-27 release 2021-03-27 11:17:31 +01:00

The main documentation is in doc/quickjs.pdf or doc/quickjs.html.