lj_profile.h 430 B

123456789101112131415161718192021
  1. /*
  2. ** Low-overhead profiling.
  3. ** Copyright (C) 2005-2023 Mike Pall. See Copyright Notice in luajit.h
  4. */
  5. #ifndef _LJ_PROFILE_H
  6. #define _LJ_PROFILE_H
  7. #include "lj_obj.h"
  8. #if LJ_HASPROFILE
  9. LJ_FUNC void LJ_FASTCALL lj_profile_interpreter(lua_State *L);
  10. #if !LJ_PROFILE_SIGPROF
  11. LJ_FUNC void LJ_FASTCALL lj_profile_hook_enter(global_State *g);
  12. LJ_FUNC void LJ_FASTCALL lj_profile_hook_leave(global_State *g);
  13. #endif
  14. #endif
  15. #endif