https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112017-05-29T05:51:03ZRuby Issue Tracking SystemRuby master - Feature #13608: Add TracePoint#threadhttps://bugs.ruby-lang.org/issues/13608?journal_id=651482017-05-29T05:51:03Zko1 (Koichi Sasada)
<ul></ul><p>use case?</p> Ruby master - Feature #13608: Add TracePoint#threadhttps://bugs.ruby-lang.org/issues/13608?journal_id=651702017-05-30T07:03:31Znaruse (Yui NARUSE)naruse@airemix.jp
<ul></ul><p>ko1 (Koichi Sasada) wrote:</p>
<blockquote>
<p>use case?</p>
</blockquote>
<p>In which thread the event was happened.<br>
Just thread id or something is also OK.</p> Ruby master - Feature #13608: Add TracePoint#threadhttps://bugs.ruby-lang.org/issues/13608?journal_id=651722017-05-30T09:26:46ZEregon (Benoit Daloze)
<ul></ul><p>ko1 (Koichi Sasada) wrote:</p>
<blockquote>
<p>use case?</p>
</blockquote>
<p>When debugging/monitoring with TracePoint, it seems useful to know in which thread the event happens.<br>
It's also a trivial way to implement manually <a class="issue tracker-2 status-6 priority-4 priority-default closed" title="Feature: TracePoint#enable with block for thread-local trace (Rejected)" href="https://bugs.ruby-lang.org/issues/13483">#13483</a>, although not efficiently.</p> Ruby master - Feature #13608: Add TracePoint#threadhttps://bugs.ruby-lang.org/issues/13608?journal_id=651752017-05-30T11:32:44Zko1 (Koichi Sasada)
<ul></ul><p>Eregon (Benoit Daloze) wrote:</p>
<blockquote>
<p>When debugging/monitoring with TracePoint, it seems useful to know in which thread the event happens.</p>
</blockquote>
<p><code>Thread.current</code> is not enough?</p>
<blockquote>
<p>It's also a trivial way to implement manually <a class="issue tracker-2 status-6 priority-4 priority-default closed" title="Feature: TracePoint#enable with block for thread-local trace (Rejected)" href="https://bugs.ruby-lang.org/issues/13483">#13483</a>, although not efficiently.</p>
</blockquote>
<p>I understand this side. But this issue doesn't solve performance problem.</p> Ruby master - Feature #13608: Add TracePoint#threadhttps://bugs.ruby-lang.org/issues/13608?journal_id=668672017-09-25T06:29:09Zko1 (Koichi Sasada)
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p><code>Thread#current</code> should be enough.</p>