disable tracy C zone

This commit is contained in:
2024-11-18 12:31:43 -06:00
parent c3a4191db3
commit 581cff9cbf

View File

@@ -16209,7 +16209,7 @@ static JSValue js_call_c_function(JSContext *ctx, JSValueConst func_obj,
func = p->u.cfunc.c_function; func = p->u.cfunc.c_function;
#ifdef TRACY_ENABLE #if defined(TRACY_ENABLE) && 0
JSValue js_name = JS_GetPropertyStr(ctx, func_obj, "name"); JSValue js_name = JS_GetPropertyStr(ctx, func_obj, "name");
const char *ccname = JS_ToCString(ctx, js_name); const char *ccname = JS_ToCString(ctx, js_name);
const char *file = "<native C>"; const char *file = "<native C>";
@@ -16303,7 +16303,7 @@ static JSValue js_call_c_function(JSContext *ctx, JSValueConst func_obj,
rt->current_stack_frame = sf->prev_frame; rt->current_stack_frame = sf->prev_frame;
#ifdef TRACY_ENABLE #if defined(TRACY_ENABLE) && 0
___tracy_emit_zone_end(tracy_ctx); ___tracy_emit_zone_end(tracy_ctx);
#endif #endif
@@ -16453,6 +16453,7 @@ static JSValue JS_CallInternal(JSContext *caller_ctx, JSValueConst func_obj,
TracyCZoneCtx tracy_ctx = ___tracy_emit_zone_begin_alloc(srcloc,1); TracyCZoneCtx tracy_ctx = ___tracy_emit_zone_begin_alloc(srcloc,1);
JS_FreeCString(caller_ctx,js_func_name); JS_FreeCString(caller_ctx,js_func_name);
JS_FreeCString(caller_ctx,fn_src);
#endif #endif
if (unlikely(argc < b->arg_count || (flags & JS_CALL_FLAG_COPY_ARGV))) { if (unlikely(argc < b->arg_count || (flags & JS_CALL_FLAG_COPY_ARGV))) {