I wonder if she was experiencing heart failure before having a heart attack. The comb turning purple suggests a lack of oxygen, especially with the gasping, and it's not uncommon for them to convulse before dying if it is. I would have her necropsied if you're able.