add profiling tools in debug mode

This commit is contained in:
ValKmjolnir
2023-08-06 20:02:12 +08:00
parent 70a8be8e4c
commit 044ccb4bc6
8 changed files with 250 additions and 113 deletions

View File

@@ -235,7 +235,7 @@ void vm::run(
const bool detail) {
verbose = detail;
init(gen.strs(), gen.nums(), gen.natives(),
gen.codes(), gen.globals(), linker.filelist(), argv);
gen.codes(), gen.globals(), linker.get_file_list(), argv);
#ifndef _MSC_VER
// using labels as values/computed goto
const void* oprs[] = {