Skip to content

Instantly share code, notes, and snippets.

@vkargov
Created February 16, 2016 13:46
Show Gist options
  • Save vkargov/29dc1141c041dd8801b1 to your computer and use it in GitHub Desktop.
Save vkargov/29dc1141c041dd8801b1 to your computer and use it in GitHub Desktop.
mono trace comparison thing
#!/bin/sh
HEX="0x[0-9a-f]+"
convert () {
gunzip -cS '' $1 | grep -v _gc_ |
sed -E "s/^\\[$HEX: [0-9.]* [0-9]*\\] //" |
sed -E "s/$HEX//g" |
sed -E "s/TRUE:/result=/g" |
head -$2 > $1_$2
}
convert good $1
convert bad $1
kdiff3 good_$1 bad_$1
#rm good_$1 bad_$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment