From: "ngan (Ngan Pham) via ruby-core" Date: 2023-08-25T14:33:58+00:00 Subject: [ruby-core:114537] [Ruby master Feature#19850] Get thread creation time Issue #19850 has been updated by ngan (Ngan Pham). In the process of debugging a stuck process on production (Sidekiq), we've been dumping all the threads' backtraces. We can see a thread that's sleeping at `net/http.rb`. (I've filed an issue here: https://github.com/ruby/net-http/issues/149) But I was just thinking it would be nice to know, in general, how long a thread has been running to get a better sense if this thread has been stuck for a while or not. ---------------------------------------- Feature #19850: Get thread creation time https://bugs.ruby-lang.org/issues/19850#change-104339 * Author: ngan (Ngan Pham) * Status: Feedback * 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/