Registry / utility / sigdump

sigdump

JSON →
library0.2.5rbrubygemsunverified

Setup signal handler which dumps backtrace of running threads and number of allocated objects per class. Require 'sigdump/setup', send SIGCONT, and see /tmp/sigdump-<pid>.log.

gem install sigdump
INSTALL
IMPORT
SIG · SIGDUMP
S
sigdump
utilityrubyv0.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Sigdump
require 'sigdump/setup'

Install a SIGCONT handler that dumps thread backtraces and object allocations to a log file.

require 'sigdump/setup' # After requiring, send SIGCONT to the process to dump thread backtraces # kill -SIGCONT <pid> # Output goes to /tmp/sigdump-<pid>.log # Simulate a busy thread Thread.new { loop {} } sleep 1 Process.kill('CONT', Process.pid) puts File.read("/tmp/sigdump-#{Process.pid}.log") rescue 'Check log file'
Debug
Known issues
gotchaThe signal handler writes to /tmp, which may not be writable in all environments (e.g., containers).
fix
Set the SIGDUMP_PATH environment variable to a writable directory.
affects: >= 0.0.0
Upgrade
Version history
0.2.5latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
2
Resources
sigdump — gem install sigdump · libregistry