fluent / sigdump

Use signal to show stacktrace of a Ruby process without restarting it
Apache License 2.0
188 stars 27 forks source link

Timeout ObjectSpace.each_object after 3 minutes #9

Open frsyuki opened 7 years ago

frsyuki commented 7 years ago

ObjectSpace.each_object loop takes very long time if there're large number of objects. It's not good idea to not show report for long time and keep consuming CPU.

This change adds timeout to avoid the problem.

Hopefully, fixes #6.