Best way to debug when Logseq becomes unresponsive on macOS?

I have a larger graph (~2962 journals+pages) and my app is consistently locking up and becoming unresponsive. Occasionally if I wait long enough, the app becomes responsive again. Most of the time I end up force quitting the app and relaunching.

What are some better ways of diagnosing/debugging what is actually happening with the app on my system?

Cheers!

Machine stats: