Skip to content

Instantly share code, notes, and snippets.

@kfei
Last active August 29, 2015 14:13
Show Gist options
  • Save kfei/c563d577c995f943260b to your computer and use it in GitHub Desktop.
Save kfei/c563d577c995f943260b to your computer and use it in GitHub Desktop.
profile comparison for cie94 and yiq
(pprof) top10
130ms of 130ms total ( 100%)
Showing top 10 nodes out of 11 (cum >= 80ms)
flat flat% sum% cum cum%
60ms 46.15% 46.15% 60ms 46.15% math.Sqrt
20ms 15.38% 61.54% 80ms 61.54% github.com/kfei/sshcam/img2xterm.cie94
20ms 15.38% 76.92% 20ms 15.38% runtime.usleep
10ms 7.69% 84.62% 10ms 7.69% retake
10ms 7.69% 92.31% 10ms 7.69% runtime.cas64
10ms 7.69% 100% 10ms 7.69% runtime.nanotime
0 0% 100% 50ms 38.46% System
0 0% 100% 80ms 61.54% github.com/kfei/sshcam/img2xterm.DrawRGB
0 0% 100% 80ms 61.54% github.com/kfei/sshcam/img2xterm.rgb2Xterm
0 0% 100% 80ms 61.54% main.draw
(pprof) top10
80ms of 80ms total ( 100%)
Showing top 10 nodes out of 15 (cum >= 60ms)
flat flat% sum% cum cum%
40ms 50.00% 50.00% 40ms 50.00% github.com/kfei/sshcam/img2xterm.rgb2XtermYIQ
10ms 12.50% 62.50% 10ms 12.50% MHeap_ReclaimList
10ms 12.50% 75.00% 10ms 12.50% main.grabRGBPixels
10ms 12.50% 87.50% 10ms 12.50% runtime.usleep
10ms 12.50% 100% 10ms 12.50% syscall.Syscall
0 0% 100% 20ms 25.00% System
0 0% 100% 10ms 12.50% fmt.Fprintln
0 0% 100% 10ms 12.50% fmt.Println
0 0% 100% 50ms 62.50% github.com/kfei/sshcam/img2xterm.DrawRGB
0 0% 100% 60ms 75.00% main.draw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment