I'm bringing up a new machine and some operations are very slow. I'd like to re-run the commands magit is sending in a normal shell so I can use perf to see where time is being spent. magit-git-debug only logs output of failed commands and I don't really want the output but just the commands themselves.

  • 2
    I wrote some code in #3096 to measure git calls and list them in org table format, is that the kind of thing you're looking for? – npostavs May 30 '18 at 23:04
  • @npostavs do you reckon it's worth getting cleaned up and merged into magit upstream? – stsquad Jun 3 '18 at 22:08
  • Hmm, not sure, I haven't had much use for it since. – npostavs Jun 3 '18 at 23:56

As @npostavs mentioned in a comment, he wrote some advise that can be used to do so.

This is useful for debugging performance issues, but I don't think it should be added to Magit. But if someone gets around to improve upon it, then please add it to the list of code snippets on the wiki.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.