Don't include tracing on emscripten, it lacks clock_gettime

This commit is contained in:
K Lange 2021-03-24 20:22:41 +09:00
parent 9da1577245
commit 073a5828d0

View File

@ -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) { \