Freeze catcher
The idea is to make a tool similar to the crash catcher but trigger process state dump when the process is frozen instead of crashed. Main thread should do heartbeats each frame and at some points of loading. A separate freeze detection thread most of the time should wait for another heartbeat and if it doesn't happen after a timeout it should and make a dump of the process state. For Linux it can be done via attaching gdb to the process and making a core dump saving it to the file. Windows and macOS need suggestions on how it can be done. Goal is to make it easier to investigate freezes for developers.