Probing the core-collapse supernova mechanism with gravitational waves