Capture Call Stack

Hello, I am trying to get the call stack.
Is this well done?
At the moment, with this code, Unreal freezes when I press play.