How to Diagnose and Resolve Freezes in UEFN Maps?

I’m experiencing an issue in my UEFN map where the game occasionally freezes for a few seconds during gameplay. This seems to happen sometimes when a player joins the map or due to other unclear reasons.

I’m looking for a way to track or log the events and processes occurring in the map during these freezes to identify the cause. Is there any built-in logging system, debugging tool, or recommended method to monitor map activity and pinpoint the source of these freezes?

Any guidance or suggestions would be greatly appreciated!