Skip to content

Timeout ObjectSpace.each_object after 3 minutes#9

Open
frsyuki wants to merge 1 commit into
masterfrom
measure-timeout
Open

Timeout ObjectSpace.each_object after 3 minutes#9
frsyuki wants to merge 1 commit into
masterfrom
measure-timeout

Conversation

@frsyuki
Copy link
Copy Markdown
Member

@frsyuki frsyuki commented Feb 8, 2017

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.

`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.
@frsyuki frsyuki changed the title Timeout ObjectSpace after 3 minutes Timeout ObjectSpace.each_object after 3 minutes Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

All objects: sections are not shown sometimes

1 participant