Sometimes my macbook freezes while browsing the web etc, I get a beach ball cursor but it doesn't spin or respond (there is no movement on the screen, it's frozen), the keyboard is unresponsive, closing the lid does nothing. Once it did this while playing music, the music continued for 20-30 seconds before stopping.
The only reaction I can get out of the machine is pressing and holding the power button then restarting. I suspected the window manager had crashed or another subsystem, but how do I diagnose this issue?
Under windows there's a system log available under control panel that I can look through to find driver crashes to track down what the issue is.
Running OS X Mavericks 10.9.2 Macbook Pro Retina, 13-inch, Late 2013