New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Noisy VM Mode #1781
Noisy VM Mode #1781
Conversation
Approve! |
@lenary can you provide a little script to test this? I'm trying a few things but not hearing a beep. Maybe it's my laptop though. |
My 14 year old son has taught me say SICK when I feel this way! Fantastic! :-) |
@jc00ke What I did to see this:
each time there is a [GC ...] message there should be a bell character sounded. |
@lenary hmm, I don't hear any bells on my machine. Not a big deal though. I'm running Ubuntu 11.10 on a Lenovo. I can't seem to get any |
This is awesome, 👍 |
@jc00ke some terminals (like iTerm) can be programmed to do something else when a bell happens - i wouldn't be surprised if you had disabled bells entirely, I have disabled sound but it still flashes (usually). I also have a separate profile which does let sound through, for stuff like this - Check your preferences |
@lenary Thanks for the tip. I checked around and I think it's just completely disabled for we Ubuntu users when Compiz is enabled so no beep for me! Oh well. |
Sometimes it's useful to be able to diagnose various things via the noise they make, rather than them just printing something.
Someone showed me that haskell has a
-B
flag that makes your computer beep every time GC runs, and I thought it would be cool/fun/useful to implement for various other languages (including ruby), so I haveIt is guarded by also having to enable
gc.show
so that you get that info as well. I (and others) felt this was the least offensive approach, but they could be made independent in future.It beeps once for every young generation GC, and twice for every mature generation GC. The beeping is just done by sending ASCII BELL to standard error - so without a terminal/tty it probably won't work.