From: "naruse (Yui NARUSE) via ruby-core" Date: 2023-09-14T08:22:04+00:00 Subject: [ruby-core:114744] [Ruby master Feature#19850] Get thread creation time Issue #19850 has been updated by naruse (Yui NARUSE). To investigate when you want to investigate what causes a program hang... ## pid2line https://gist.github.com/nurse/0619b6af90df140508c2 It shows what threads are running or sleeping and where it is as C function name. In your case, it will show _connect. ## rbspy When it is running in infinite loop, rbspy will help where it is. https://rbspy.github.io/ ---------------------------------------- Feature #19850: Get thread creation time https://bugs.ruby-lang.org/issues/19850#change-104580 * Author: ngan (Ngan Pham) * Status: Open * Priority: Normal ---------------------------------------- I was debugging some threads hanging issue and thought it would be nice to know how long a thread has been around for. Would there be interest in a `Thread#creation_time` (or some other name) that returns the time when the thread was created? -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/