Popham then picked the dog up by the ears and swung it around by its neck. “You can imagine the pain that he must have felt,” Miss Hussain said.

Popham headbutted his girlfriend before marching out of the flat clutching Edley and a knife.

The police officers who later found Popham covered in blood said he told them “meeting me is the worst mistake” before threatening to bite them.

Popham carried out his threat against one officer, sinking his teeth into his thumb and knee. The officer later had to have a tetanus injection.

Edley’s body was found nearby. A vet told police the wound would have caused Edley “pain, unnecessary suffering and distress”.

Miss Hussein said: “Not only did the victim have to deal with her own injuries and her upset children, but she had to deal with the death of a much-loved family pet.”

Madeline Corr, mitigating, said Popham was “full of remorse” and wanted to “throw himself on the mercy” of Judge Ian Graham after admitting the offences at an earlier hearing.

She said he still has no memory of the night and cannot explain his behaviour, but she said he was self-medicating for mental problems.

Popham, who has previous convictions for violence and cultivating cannabis, suffers from emotionally unstable personality disorder.

Jailing Popham for a total of ten months, Judge Graham said he had gone “berserk” for no apparent reason and called the killing of the dog “bizarre and horrifying”.

Popham was jailed for 12 months for causing actual bodily harm to his partner, six months for actual bodily harm to the police officer and two months for criminal damage to the dog, all to run consecutively.

He was handed one month each for causing unnecessary suffering to an animal and assaulting a police officer, to run concurrently to each other and the other sentences.