profiler fix 2

This commit is contained in:
CatWindow 2026-08-16 19:38:29 +03:00
parent c5b7f2684c
commit d85d25a945

View file

@ -41,7 +41,7 @@ static void tp_cb(VALUE tpval, void *) {
const char *path = StringValuePtr(path_val); const char *path = StringValuePtr(path_val);
const char *class_name = rb_class2name(class_val); const char *class_name = rb_class2name(class_val);
long line = FIX2LONG(rb_tracearg_lineno(trace_arg)); long line = FIX2LONG(rb_tracearg_lineno(trace_arg));
const char *method = rb_id2name((ID)rb_tracearg_method_id(trace_arg)); const char *method = rb_id2name(rb_sym2id(rb_tracearg_method_id(trace_arg)));
Debug() << "[PROFILER] " << method << " " << path << ":" << line Debug() << "[PROFILER] " << method << " " << path << ":" << line
<< " class=" << class_name << " dur_ns=" << dur_ns << "\n"; << " class=" << class_name << " dur_ns=" << dur_ns << "\n";