This is almost exclusive to older dogs and it may be too late by the time your beloved pet starts to excessively pant as an effect of heart failure.
Pets can easily overheat because they are unable to sweat the same way humans do.
Their fur is thick and tend to insulate them and makes them hotter.