Gravitational Collapse is the shrinking of an object due to the force of Gravity not being fully counteracted. An object in Hydrostatic Equilibrium is balancing the force of gravity with internal pressure. An object undoubtedly attained hydrostatic equilibrium through gravitational collapse, and if the pressure for some reason is reduced (slowly through cooling, or more quickly, as through the exhaustion of fuel for the Fusion that maintains the internal Temperature within stars), gravitational collapse will restart.
Gravitational collapse releases energy (Gravitational Collapse Energy, via the Kelvin-Helmholtz Mechanism), which used to be imagined as the source of the Sun's energy and is still considered an energy source during some phases of a star's lifetime, e.g., Pre-Main-Sequence Stars that have yet to trigger fusion. The energy can be determined through the Virial Theorem which states the balance between thermal/Kinetic Energy versus Potential Energy in a system in hydrostatic equilibrium.
Gravitational collapse energy is potentially extreme, e.g., in Strong-Field Gravity. It is considered the energy source of Active Galactic Nuclei/Quasars, and is sizable in the formation of Compact Objects. It is often a natural candidate for the explanation of observed phenomena that imply huge amounts of energy expenditure.