Don't include tracing on emscripten, it lacks clock_gettime
This commit is contained in:
parent
9da1577245
commit
073a5828d0
2
src/vm.c
2
src/vm.c
@ -78,7 +78,7 @@ __thread KrkThreadState krk_currentThread;
|
||||
KrkThreadState krk_currentThread;
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_TRACING
|
||||
#if defined(ENABLE_TRACING) && !defined(__EMSCRIPTEN__)
|
||||
# define FRAME_IN(frame) if (vm.globalFlags & KRK_GLOBAL_CALLGRIND) { clock_gettime(CLOCK_MONOTONIC, &frame->in_time); }
|
||||
# define FRAME_OUT(frame) \
|
||||
if (vm.globalFlags & KRK_GLOBAL_CALLGRIND && !frame->closure->function->isGenerator) { \
|
||||
|
Loading…
Reference in New Issue
Block a user