diff options
Diffstat (limited to 'src/lj_profile.h')
-rw-r--r-- | src/lj_profile.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lj_profile.h b/src/lj_profile.h new file mode 100644 index 00000000..db69eb9e --- /dev/null +++ b/src/lj_profile.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* | ||
2 | ** Low-overhead profiling. | ||
3 | ** Copyright (C) 2005-2020 Mike Pall. See Copyright Notice in luajit.h | ||
4 | */ | ||
5 | |||
6 | #ifndef _LJ_PROFILE_H | ||
7 | #define _LJ_PROFILE_H | ||
8 | |||
9 | #include "lj_obj.h" | ||
10 | |||
11 | #if LJ_HASPROFILE | ||
12 | |||
13 | LJ_FUNC void LJ_FASTCALL lj_profile_interpreter(lua_State *L); | ||
14 | #if !LJ_PROFILE_SIGPROF | ||
15 | LJ_FUNC void LJ_FASTCALL lj_profile_hook_enter(global_State *g); | ||
16 | LJ_FUNC void LJ_FASTCALL lj_profile_hook_leave(global_State *g); | ||
17 | #endif | ||
18 | |||
19 | #endif | ||
20 | |||
21 | #endif | ||