Skip to content

Instantly share code, notes, and snippets.

@colby

colby/mutt.debug Secret

Last active October 26, 2016 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colby/164534ed7213460f76a08aa921b1e158 to your computer and use it in GitHub Desktop.
Save colby/164534ed7213460f76a08aa921b1e158 to your computer and use it in GitHub Desktop.
Dtrace of mutt timing
### Good timing ###
sigaction(0x2, 0x7FFF535BA248, 0x0) = 0 0
select(0x1, 0x7FFF535BA0A0, 0x0, 0x0, 0x7FFF535BA128) = 1 0
read(0x0, "j\n\0", 0x1) = 1 0
sigaction(0x2, 0x7FFF535BA248, 0x0) = 0 0
write_nocancel(0x1, "\033[34h\033[?25h\027\0", 0xB) = 11 0
write(0x5, "\027\003\003\0", 0x29) = 41 0
read(0x5, "\027\003\003\0", 0x5) = 5 0
read(0x5, "\0", 0x22) = 34 0
select(0x6, 0x7FFF535BA270, 0x0, 0x0, 0x7FFF535BA260) = 0 0
write_nocancel(0x1, "\033[?25l\0", 0x6) = 6 0
write_nocancel(0x1, "\r\033[37m - 10/25 10:29 Hardy Johnson \033[38;5;240m\342\224\234\342\224\200>\033[37mRe: [zumiez/Zumiez.com] Magento security patches: SUPEE-8788 and SUPEE-3941 (#387) \033[11;1H\033[30m\033[47m - 10/2", 0x1DC) = 476 0
### Slow timing ###
sigaction(0x2, 0x7FFF535BA248, 0x0) = 0 0
select(0x1, 0x7FFF535BA0A0, 0x0, 0x0, 0x7FFF535BA128) = 1 0
read(0x0, "j\n\0", 0x1) = 1 0
sigaction(0x2, 0x7FFF535BA248, 0x0) = 0 0
write_nocancel(0x1, "\033[34h\033[?25hR\0", 0xB) = 11 0
select(0x6, 0x7FFF535BA270, 0x0, 0x0, 0x7FFF535BA260) = 0 0
write(0x5, "\027\003\003\002+cf\230['\247\312x\\\\\210@_\365\242hC\225]\345~\250\350\371\016\362t\001\002dN\222\220\217\031\255\0", 0x230) = 560 0
read(0x5, "\027\003\003\0", 0x5) = 5 0
read(0x5, "\0", 0x3C) = 60 0
read(0x5, "\027\003\003\0", 0x5) = 5 0
read(0x5, "\0", 0x5A) = 90 0
read(0x5, "\027\003\003\0", 0x5) = 5 0
read(0x5, "\0", 0x27) = 39 0
read(0x5, "\027\003\003\0", 0x5) = 5 0
read(0x5, "\0", 0x54) = 84 0
read(0x5, "\027\003\003\0", 0x5) = 5 0
read(0x5, "\0", 0x7D) = 125 0
read(0x5, "\027\003\003\0", 0x5) = 5 0
read(0x5, "\0", 0x74) = 116 0
read(0x5, "\027\003\003\0", 0x5) = 5 0
read(0x5, "\0", 0x77) = 119 0
read(0x5, "\027\003\003\0", 0x5) = 5 0
read(0x5, "\0", 0x72) = 114 0
read(0x5, "\027\003\003\0", 0x5) = 5 0
read(0x5, "\0", 0x73) = 115 0
read(0x5, "\027\003\003\0", 0x5) = 5 0
read(0x5, "\0", 0x75) = 117 0
write_nocancel(0x1, "\033[?25l\0", 0x6) = 6 0
write_nocancel(0x1, "\r\033[37m - 10/20 15:23 Hardy Johnson \033[38;5;240m\342\224\224\342\224\200>\033[37mRe: [zumiez/Zumiez.com] Magento security patches: SUPEE-8788 and SUPEE-3941 (#387)
\033[12;1H\033[30m\033[47m > 10/2", 0x1D8) = 472 0
sigaction(0x2, 0x7FFF535BA248, 0x0) = 0 0
### Open files ###
$ sudo lsof -p 1012 | grep -E [0-9]u
mutt 1012 colbyolson 0u CHR 16,1 0t57854 1131 /dev/ttys001
mutt 1012 colbyolson 1u CHR 16,1 0t57854 1131 /dev/ttys001
mutt 1012 colbyolson 2u CHR 16,1 0t57854 1131 /dev/ttys001
mutt 1012 colbyolson 3u systm 0t0
mutt 1012 colbyolson 4u unix 0xdc3620ed98a69361 0t0 ->0xdc3620ed98a68f79
mutt 1012 colbyolson 5u IPv4 0xdc3620ed99caac29 0t0 TCP 10.100.1.29:49192->pg-in-f109.1e100.net:imaps (ESTABLISHED)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment