masaori335 commented on a change in pull request #8179:
URL: https://github.com/apache/trafficserver/pull/8179#discussion_r804272172
##########
File path: iocore/eventsystem/UnixEvent.cc
##########
@@ -104,3 +106,19 @@ Event::schedule_every(ink_hrtime aperiod, int
acallback_event)
ethread->EventQueueExternal.enqueue_local(this);
}
}
+
+#ifdef ENABLE_EVENT_TRACKER
+
+void
+Event::set_location()
+{
+ _location = ink_backtrace(3);
Review comment:
I though `backtrace(3)` doesn't have noticeable overhead. Because it
just refers address of current call stack. I'll measure on/off at production.
https://man7.org/linux/man-pages/man3/backtrace.3.html
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]