First off, it's recommended that you enable the option to show the stamina bar from the menu. This nifty little trick can be performed without the additional UI, but in order to get the timing of it right, it's way easier to have a visual indication instead of paying close attention to Noctis' movement.