How to trigger spinning wheel diagnostics report I'm working on application that consume significant CPU time and memory under heavy load. 

my setup configuration is fusion VM that runs macOS Sierra 10.12.6. 

At some stage I get spinning wheel and the entire VM hangs. Unfortunately I couldn't find any valuable log after rebooting the machine. 

perhaps there's a way to enforce taking performance diagnostics report so that I could properly analyze what cause the hanging ? 

thanks
The name for the "spinning wheel" or "spinning beachball" is actually called the spinning wait cursor,  similar to the hourglass on Windows machines.

There's no diagnostic report that's associated with a wait cursor because it only appears if there is more than 2 seconds of delay.

To find out what is slowing down your system, use Activity Monitor.