miserably vs to one's heart's content

miserably

adv
  • In a miserable manner. 

to one's heart's content

adv
  • Until satisfied; as much as is wished. 

How often have the words miserably and to one's heart's content occurred in a corpus of books? (source: Google Ngram Viewer )