Has he gotten injured in some way. My Pug did this on his hind leg and when I took him to the Vet he had been injured; a muscle was bruised. It took about a week and a half and I massaged it and put warm compresses on it. It healed and he was soon running around the house.
You can help the HubPages community highlight top quality content by ranking this answer up or down.