Skip to content

Instantly share code, notes, and snippets.

@wincent
Created February 8, 2016 18:21
Show Gist options
  • Save wincent/920a81585c90719a760c to your computer and use it in GitHub Desktop.
Save wincent/920a81585c90719a760c to your computer and use it in GitHub Desktop.
Sampling process 5689 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling tmux (pid 5689) every 1 millisecond
Process: tmux [5689]
Path: /usr/local/Cellar/tmux/2.1/bin/tmux
Load Address: 0x104d45000
Identifier: tmux
Version: 0
Code Type: X86-64
Parent Process: ??? [1]
Date/Time: 2016-02-08 10:18:20.371 -0800
Launch Time: 2016-02-08 08:47:05.095 -0800
OS Version: Mac OS X 10.11.3 (15D21)
Report Version: 7
Analysis Tool: /usr/bin/sample
----
Call graph:
2835 Thread_61976 DispatchQueue_1: com.apple.main-thread (serial)
2832 start (in libdyld.dylib) + 1 [0x7fff8afbf5ad]
+ 2832 main (in tmux) + 1357 [0x104d75a29]
+ 2832 client_main (in tmux) + 203 [0x104d4963b]
+ 2832 client_connect (in tmux) + 570 [0x104d49416]
+ 2832 server_start (in tmux) + 563 [0x104d6f594]
+ 2750 server_loop (in tmux) + 50 [0x104d6f79b]
+ ! 2715 event_base_loop (in libevent-2.0.5.dylib) + 927 [0x104dcc221]
+ ! : 2703 select_dispatch (in libevent-2.0.5.dylib) + 225 [0x104ddc3bb]
+ ! : | 2702 __select (in libsystem_kernel.dylib) + 10,20 [0x7fff920b8176,0x7fff920b8180]
+ ! : | 1 select$1050 (in libsystem_kernel.dylib) + 0 [0x7fff920b54a9]
+ ! : 8 select_dispatch (in libevent-2.0.5.dylib) + 225,316,... [0x104ddc3bb,0x104ddc416,...]
+ ! : 3 select_dispatch (in libevent-2.0.5.dylib) + 269 [0x104ddc3e7]
+ ! : | 3 random (in libsystem_c.dylib) + 29,0,... [0x7fff84c7b89a,0x7fff84c7b87d,...]
+ ! : 1 select_dispatch (in libevent-2.0.5.dylib) + 150 [0x104ddc370]
+ ! : 1 _platform_memmove$VARIANT$Haswell (in libsystem_platform.dylib) + 0 [0x7fff972bbf20]
+ ! 12 event_base_loop (in libevent-2.0.5.dylib) + 1624 [0x104dcc4da]
+ ! : 3 window_pane_read_callback (in tmux) + 91 [0x104d844a5]
+ ! : | 3 log_debug (in tmux) + 0 [0x104d65441]
+ ! : 3 window_pane_read_callback (in tmux) + 248 [0x104d84542]
+ ! : | 3 event_add (in libevent-2.0.5.dylib) + 59 [0x104dcccac]
+ ! : | 2 event_add_internal (in libevent-2.0.5.dylib) + 954,464 [0x104dcd359,0x104dcd16f]
+ ! : | 1 event_add_internal (in libevent-2.0.5.dylib) + 583 [0x104dcd1e6]
+ ! : | 1 gettime (in libevent-2.0.5.dylib) + 0 [0x104dcab14]
+ ! : 2 window_pane_read_callback (in tmux) + 69 [0x104d8448f]
+ ! : | 2 evbuffer_get_length (in libevent-2.0.5.dylib) + 17,0 [0x104dcf514,0x104dcf503]
+ ! : 2 window_pane_read_callback (in tmux) + 130 [0x104d844cc]
+ ! : | 2 tty_client_ready (in tmux) + 26,0 [0x104d78ba7,0x104d78b8d]
+ ! : 1 window_pane_read_callback (in tmux) + 45 [0x104d84477]
+ ! : | 1 event_initialized (in libevent-2.0.5.dylib) + 0 [0x104dccf0d]
+ ! : 1 window_pane_timer_callback (in tmux) + 0 [0x104d845b8]
+ ! 6 event_base_loop (in libevent-2.0.5.dylib) + 734,1031,... [0x104dcc160,0x104dcc289,...]
+ ! 4 event_base_loop (in libevent-2.0.5.dylib) + 366 [0x104dcbff0]
+ ! : 2 gettime (in libevent-2.0.5.dylib) + 7,55 [0x104dcab1b,0x104dcab4b]
+ ! : 1 __commpage_gettimeofday (in libsystem_kernel.dylib) + 1 [0x7fff920b2511]
+ ! : 1 gettimeofday (in libsystem_c.dylib) + 62 [0x7fff84c28010]
+ ! : 1 __gettimeofday (in libsystem_kernel.dylib) + 10 [0x7fff920b78ef]
+ ! 3 event_base_loop (in libevent-2.0.5.dylib) + 734 [0x104dcc160]
+ ! : 2 gettime (in libevent-2.0.5.dylib) + 91,6 [0x104dcab6f,0x104dcab1a]
+ ! : 1 gettimeofday (in libsystem_c.dylib) + 8 [0x7fff84c27fda]
+ ! 3 event_base_loop (in libevent-2.0.5.dylib) + 981 [0x104dcc257]
+ ! : 2 DYLD-STUB$$__commpage_gettimeofday (in libsystem_c.dylib) + 0 [0x7fff84c9cfde]
+ ! : 1 gettimeofday (in libsystem_c.dylib) + 43 [0x7fff84c27ffd]
+ ! 3 event_base_loop (in libevent-2.0.5.dylib) + 1074 [0x104dcc2b4]
+ ! : 2 event_active_nolock (in libevent-2.0.5.dylib) + 212 [0x104dcd6fa]
+ ! : | 2 event_queue_insert (in libevent-2.0.5.dylib) + 61,64 [0x104dcd7af,0x104dcd7b2]
+ ! : 1 event_active_nolock (in libevent-2.0.5.dylib) + 30 [0x104dcd644]
+ ! 2 event_base_loop (in libevent-2.0.5.dylib) + 1056 [0x104dcc2a2]
+ ! : 2 event_del_internal (in libevent-2.0.5.dylib) + 221 [0x104dcd49f]
+ ! : 2 event_queue_remove (in libevent-2.0.5.dylib) + 607,548 [0x104dcb6d9,0x104dcb69e]
+ ! 1 event_base_loop (in libevent-2.0.5.dylib) + 1003 [0x104dcc26d]
+ ! : 1 gettime (in libevent-2.0.5.dylib) + 75 [0x104dcab5f]
+ ! 1 event_loop (in libevent-2.0.5.dylib) + 0 [0x104dcbe61]
+ 79 server_loop (in tmux) + 65 [0x104d6f7aa]
+ ! 54 server_client_loop (in tmux) + 65 [0x104d6d616]
+ ! : 27 server_client_reset_state (in tmux) + 128 [0x104d6d99d]
+ ! : | 26 options_get_number (in tmux) + 11 [0x104d6761c]
+ ! : | + 25 options_find (in tmux) + 77 [0x104d67315]
+ ! : | + ! 24 options_tree_RB_FIND (in tmux) + 38 [0x104d670f1]
+ ! : | + ! : 24 _platform_strcmp (in libsystem_platform.dylib) + 45,27,... [0x7fff972b8b2d,0x7fff972b8b1b,...]
+ ! : | + ! 1 options_tree_RB_FIND (in tmux) + 30 [0x104d670e9]
+ ! : | + 1 options_find (in tmux) + 43 [0x104d672f3]
+ ! : | + 1 options_tree_RB_FIND (in tmux) + 0 [0x104d670cb]
+ ! : | 1 options_get_number (in tmux) + 0 [0x104d67611]
+ ! : 9 server_client_reset_state (in tmux) + 186 [0x104d6d9d7]
+ ! : | 8 options_get_number (in tmux) + 11 [0x104d6761c]
+ ! : | + 8 options_find (in tmux) + 77 [0x104d67315]
+ ! : | + 5 options_tree_RB_FIND (in tmux) + 38 [0x104d670f1]
+ ! : | + ! 5 _platform_strcmp (in libsystem_platform.dylib) + 10,218,... [0x7fff972b8b0a,0x7fff972b8bda,...]
+ ! : | + 2 options_tree_RB_FIND (in tmux) + 42,50 [0x104d670f5,0x104d670fd]
+ ! : | + 1 DYLD-STUB$$strcmp (in tmux) + 0 [0x104d8762a]
+ ! : | 1 options_get_number (in tmux) + 90 [0x104d6766b]
+ ! : 9 server_client_reset_state (in tmux) + 256 [0x104d6da1d]
+ ! : | 8 options_get_number (in tmux) + 11 [0x104d6761c]
+ ! : | + 6 options_find (in tmux) + 77 [0x104d67315]
+ ! : | + ! 4 options_tree_RB_FIND (in tmux) + 38 [0x104d670f1]
+ ! : | + ! : 4 _platform_strcmp (in libsystem_platform.dylib) + 38,30,... [0x7fff972b8b26,0x7fff972b8b1e,...]
+ ! : | + ! 2 options_tree_RB_FIND (in tmux) + 30 [0x104d670e9]
+ ! : | + 1 options_find (in tmux) + 43 [0x104d672f3]
+ ! : | + ! 1 options_tree_RB_FIND (in tmux) + 67 [0x104d6710e]
+ ! : | + 1 options_find (in tmux) + 48 [0x104d672f8]
+ ! : | 1 options_get_number (in tmux) + 90 [0x104d6766b]
+ ! : 3 server_client_reset_state (in tmux) + 302 [0x104d6da4b]
+ ! : | 3 options_get_number (in tmux) + 11 [0x104d6761c]
+ ! : | 3 options_find (in tmux) + 77 [0x104d67315]
+ ! : | 3 options_tree_RB_FIND (in tmux) + 38 [0x104d670f1]
+ ! : | 3 _platform_strcmp (in libsystem_platform.dylib) + 30,7,... [0x7fff972b8b1e,0x7fff972b8b07,...]
+ ! : 1 server_client_reset_state (in tmux) + 113 [0x104d6d98e]
+ ! : | 1 tty_region (in tmux) + 1 [0x104d7748c]
+ ! : 1 server_client_reset_state (in tmux) + 139 [0x104d6d9a8]
+ ! : | 1 window_pane_visible (in tmux) + 1 [0x104d83a4c]
+ ! : 1 server_client_reset_state (in tmux) + 234 [0x104d6da07]
+ ! : | 1 tty_cursor (in tmux) + 8 [0x104d771a4]
+ ! : 1 server_client_reset_state (in tmux) + 341 [0x104d6da72]
+ ! : | 1 tty_update_mode (in tmux) + 40 [0x104d77fe0]
+ ! : | 1 _platform_strcmp (in libsystem_platform.dylib) + 186 [0x7fff972b8bba]
+ ! : 1 server_client_reset_state (in tmux) + 120 [0x104d6d995]
+ ! : 1 tty_reset (in tmux) + 43 [0x104d79c31]
+ ! 6 server_client_loop (in tmux) + 84 [0x104d6d629]
+ ! : 6 windows_RB_MINMAX (in tmux) + 7,37,... [0x104d81a2b,0x104d81a49,...]
+ ! 6 server_client_loop (in tmux) + 94 [0x104d6d633]
+ ! : 3 check_window_name (in tmux) + 49 [0x104d6617b]
+ ! : | 3 options_get_number (in tmux) + 11 [0x104d6761c]
+ ! : | 2 options_find (in tmux) + 77 [0x104d67315]
+ ! : | + 1 options_tree_RB_FIND (in tmux) + 38 [0x104d670f1]
+ ! : | + ! 1 _platform_strcmp (in libsystem_platform.dylib) + 44 [0x7fff972b8b2c]
+ ! : | + 1 options_tree_RB_FIND (in tmux) + 80 [0x104d6711b]
+ ! : | 1 options_find (in tmux) + 43 [0x104d672f3]
+ ! : | 1 options_tree_RB_FIND (in tmux) + 38 [0x104d670f1]
+ ! : | 1 _platform_strcmp (in libsystem_platform.dylib) + 38 [0x7fff972b8b26]
+ ! : 3 check_window_name (in tmux) + 0,472 [0x104d6614a,0x104d66322]
+ ! 5 server_client_loop (in tmux) + 57 [0x104d6d60e]
+ ! : 3 server_client_check_redraw (in tmux) + 540 [0x104d6d909]
+ ! : | 3 tty_update_mode (in tmux) + 189,571,... [0x104d78075,0x104d781f3,...]
+ ! : 2 server_client_check_redraw (in tmux) + 203,214 [0x104d6d7b8,0x104d6d7c3]
+ ! 4 server_client_loop (in tmux) + 0,102,... [0x104d6d5d5,0x104d6d63b,...]
+ ! 2 server_client_loop (in tmux) + 39 [0x104d6d5fc]
+ ! : 2 server_client_check_exit (in tmux) + 6,16 [0x104d6d687,0x104d6d691]
+ ! 1 server_client_loop (in tmux) + 102 [0x104d6d63b]
+ ! : 1 windows_RB_NEXT (in tmux) + 54 [0x104d81994]
+ ! 1 server_client_loop (in tmux) + 165 [0x104d6d67a]
+ ! 1 server_client_check_resize (in tmux) + 100 [0x104d6dbd8]
+ 2 server_loop (in tmux) + 60 [0x104d6f7a5]
+ ! 2 log_debug (in tmux) + 0,102 [0x104d65441,0x104d654a7]
+ 1 server_loop (in tmux) + 70 [0x104d6f7af]
+ 1 server_should_shutdown (in tmux) + 25 [0x104d6f7d1]
+ 1 options_get_number (in tmux) + 11 [0x104d6761c]
+ 1 options_find (in tmux) + 43 [0x104d672f3]
+ 1 options_tree_RB_FIND (in tmux) + 38 [0x104d670f1]
+ 1 _platform_strcmp (in libsystem_platform.dylib) + 106 [0x7fff972b8b6a]
3 __commpage_gettimeofday (in libsystem_kernel.dylib) + 31,83 [0x7fff920b252f,0x7fff920b2563]
Total number in stack (recursive counted multiple, when >=5):
8 _platform_strcmp (in libsystem_platform.dylib) + 0 [0x7fff972b8b00]
7 options_tree_RB_FIND (in tmux) + 38 [0x104d670f1]
6 options_get_number (in tmux) + 11 [0x104d6761c]
6 options_tree_RB_FIND (in tmux) + 0 [0x104d670cb]
5 options_find (in tmux) + 77 [0x104d67315]
Sort by top of stack, same collapsed (when >= 5):
__select (in libsystem_kernel.dylib) 2702
_platform_strcmp (in libsystem_platform.dylib) 40
options_tree_RB_FIND (in tmux) 8
select_dispatch (in libevent-2.0.5.dylib) 8
event_base_loop (in libevent-2.0.5.dylib) 6
gettime (in libevent-2.0.5.dylib) 6
windows_RB_MINMAX (in tmux) 6
log_debug (in tmux) 5
Binary Images:
0x104d45000 - 0x104d92fff +tmux (0) <E31F9948-6694-3F4B-971C-2C5A6EF99A70> /usr/local/bin/tmux
0x104dc9000 - 0x104df1ff7 +libevent-2.0.5.dylib (0) <516B9EFD-8B87-3123-BE10-4D7DD88061D3> /usr/local/opt/libevent/lib/libevent-2.0.5.dylib
0x7fff6ecda000 - 0x7fff6ed11007 dyld (0.0 - ???) <9D05FDF4-65CE-3B53-86D4-ABE1A5BF35F3> /usr/lib/dyld
0x7fff82693000 - 0x7fff8270afe7 libcorecrypto.dylib (335.20.1) <C6BD205F-4ECE-37EE-BCAB-A76F39CDCFFA> /usr/lib/system/libcorecrypto.dylib
0x7fff83053000 - 0x7fff833b5f3f libobjc.A.dylib (680) <9F45830D-F1D5-3CDF-9461-1A5477ED7D1E> /usr/lib/libobjc.A.dylib
0x7fff83d48000 - 0x7fff83d49ffb libremovefile.dylib (41) <B8D1A5FC-CFD5-3AAB-8A10-14DDC129710A> /usr/lib/system/libremovefile.dylib
0x7fff84c18000 - 0x7fff84ca5fff libsystem_c.dylib (1082.20.4) <EAB38A6C-8671-3B13-B500-90EC1B912063> /usr/lib/system/libsystem_c.dylib
0x7fff84cc1000 - 0x7fff84cc8ff7 libcompiler_rt.dylib (62) <D3C4AB40-23B4-3BC6-8C38-5B8758D14E80> /usr/lib/system/libcompiler_rt.dylib
0x7fff84f0a000 - 0x7fff84f0fff7 libmacho.dylib (875.1) <CB745E1F-4885-3F96-B38B-2093DF488FD5> /usr/lib/system/libmacho.dylib
0x7fff84fd1000 - 0x7fff84fdcff7 libcommonCrypto.dylib (60075.20.1) <766BC3F5-41F3-3315-BABC-72718A98EA92> /usr/lib/system/libcommonCrypto.dylib
0x7fff84fdd000 - 0x7fff84fdffff libsystem_coreservices.dylib (19.2) <1B3F5AFC-FFCD-3ECB-8B9A-5538366FB20D> /usr/lib/system/libsystem_coreservices.dylib
0x7fff85264000 - 0x7fff85264ff7 libunc.dylib (29) <1D0F8265-F026-3CBD-93D3-F8DF14FFCE68> /usr/lib/system/libunc.dylib
0x7fff85746000 - 0x7fff85762ff3 libresolv.9.dylib (60) <A650B5C8-1950-36A0-86D1-0B2465318BFA> /usr/lib/libresolv.9.dylib
0x7fff85cc8000 - 0x7fff85cdfff7 libsystem_asl.dylib (322.30.1) <9B500E4E-E462-321E-828E-5524DC984C1B> /usr/lib/system/libsystem_asl.dylib
0x7fff85d78000 - 0x7fff85da9ff7 libncurses.5.4.dylib (46) <D4C10699-3E8F-3F42-A695-7490EA4B6B32> /usr/lib/libncurses.5.4.dylib
0x7fff86367000 - 0x7fff86383ff7 libsystem_malloc.dylib (67) <9EECAB18-F025-34C4-8E32-7EFFA6720EFC> /usr/lib/system/libsystem_malloc.dylib
0x7fff87195000 - 0x7fff871dbff7 libauto.dylib (186) <999E610F-41FC-32A3-ADCA-5EC049B65DFB> /usr/lib/libauto.dylib
0x7fff87755000 - 0x7fff87757ff7 libsystem_configuration.dylib (802.20.7) <5FD79070-36CC-3D02-BEA7-BB5D2AE97D5D> /usr/lib/system/libsystem_configuration.dylib
0x7fff8775c000 - 0x7fff877bdff7 libsystem_network.dylib (583.20.10) <865FE79A-A22D-3733-A14F-FC7B37F3AECD> /usr/lib/system/libsystem_network.dylib
0x7fff88894000 - 0x7fff888aaff7 libsystem_coretls.dylib (83.20.8) <75C97D88-0A63-3093-AE83-DE33EB7405CE> /usr/lib/system/libsystem_coretls.dylib
0x7fff88cb6000 - 0x7fff88cbfff7 libsystem_pthread.dylib (138.10.4) <327CECD0-B881-3153-8FCC-4FD4818B7F16> /usr/lib/system/libsystem_pthread.dylib
0x7fff88d97000 - 0x7fff88dc0fff libxpc.dylib (756.20.4) <61AB4610-9304-354C-9E9B-D57198AE9866> /usr/lib/system/libxpc.dylib
0x7fff88dc1000 - 0x7fff88dc2ffb libSystem.B.dylib (1226.10.1) <5A4257EF-3145-3BB3-87A4-0D2404A9462D> /usr/lib/libSystem.B.dylib
0x7fff8982c000 - 0x7fff8982dfff libsystem_blocks.dylib (65) <49D42329-7DE9-3413-92C3-A473A7E9CF35> /usr/lib/system/libsystem_blocks.dylib
0x7fff8a357000 - 0x7fff8a380fff libsystem_info.dylib (477.20.1) <6513635B-4ADE-3B45-BF63-ED7AC565B0C9> /usr/lib/system/libsystem_info.dylib
0x7fff8a73a000 - 0x7fff8a742fff libsystem_networkextension.dylib (385.20.6) <DC8A102A-BF02-31A4-8914-65C34DF6B592> /usr/lib/system/libsystem_networkextension.dylib
0x7fff8afbc000 - 0x7fff8afbfffb libdyld.dylib (360.19) <AA629043-C6F6-32FE-8007-E3478E99ACA7> /usr/lib/system/libdyld.dylib
0x7fff8b123000 - 0x7fff8b123ff7 liblaunch.dylib (756.20.4) <EDF719D6-D2BB-38DD-8C94-4272BEFDA2CD> /usr/lib/system/liblaunch.dylib
0x7fff8d09a000 - 0x7fff8d09efff libcache.dylib (75) <6B245C0A-F3EA-383B-A542-5B0D0456A41B> /usr/lib/system/libcache.dylib
0x7fff8ec42000 - 0x7fff8ec47ff3 libunwind.dylib (35.3) <124E0F05-2350-3774-A32C-7F5BF38EDE73> /usr/lib/system/libunwind.dylib
0x7fff8eeb0000 - 0x7fff8eedfffb libsystem_m.dylib (3105) <26655445-CA97-321E-B221-801CB378D1AA> /usr/lib/system/libsystem_m.dylib
0x7fff8f2c5000 - 0x7fff8f2d6ff7 libsystem_trace.dylib (201.10.3) <B485369F-E3A1-319E-998C-89AAF606079E> /usr/lib/system/libsystem_trace.dylib
0x7fff90807000 - 0x7fff90810ff3 libsystem_notify.dylib (150.20.3) <243FADE1-255A-3B78-8033-F336CD64B817> /usr/lib/system/libsystem_notify.dylib
0x7fff91500000 - 0x7fff91553ff7 libc++.1.dylib (120.1) <8FC3D139-8055-3498-9AC5-6467CB7F4D14> /usr/lib/libc++.1.dylib
0x7fff91554000 - 0x7fff91557ff7 libsystem_sandbox.dylib (460.30.1) <3E0036AF-FC64-3352-8DA4-6B550C2C2562> /usr/lib/system/libsystem_sandbox.dylib
0x7fff91a73000 - 0x7fff91a75ff7 libquarantine.dylib (80) <163CF63A-7455-3D1F-AE57-8C4475A9204C> /usr/lib/system/libquarantine.dylib
0x7fff91a82000 - 0x7fff91a82ff7 libkeymgr.dylib (28) <09397E01-6066-3179-A50C-2CE666FDA929> /usr/lib/system/libkeymgr.dylib
0x7fff920a1000 - 0x7fff920bffff libsystem_kernel.dylib (3248.30.4) <9CEB6C3B-1CAF-3C32-A9FD-93BC72CBCEA1> /usr/lib/system/libsystem_kernel.dylib
0x7fff931fd000 - 0x7fff93226fff libc++abi.dylib (125) <DCCC8177-3D09-35BC-9784-2A04FEC4C71B> /usr/lib/libc++abi.dylib
0x7fff941d0000 - 0x7fff941d1fff libDiagnosticMessagesClient.dylib (100) <4243B6B4-21E9-355B-9C5A-95A216233B96> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff9475f000 - 0x7fff9478cfff libdispatch.dylib (501.20.1) <324C9189-2AF3-3356-847F-6F4CE1C6E901> /usr/lib/system/libdispatch.dylib
0x7fff95cd9000 - 0x7fff95ce1ffb libsystem_dnssd.dylib (625.20.4) <945B5FB1-DA91-3D45-A961-A8FAD53C1E7E> /usr/lib/system/libsystem_dnssd.dylib
0x7fff96e00000 - 0x7fff96e08fff libcopyfile.dylib (127) <F5133269-0B22-388C-A57C-079667B6291E> /usr/lib/system/libcopyfile.dylib
0x7fff972b7000 - 0x7fff972bffe7 libsystem_platform.dylib (74.10.3) <D3A27E10-7F08-3603-ACC8-7A92B2C04BAB> /usr/lib/system/libsystem_platform.dylib
0x7fff97420000 - 0x7fff97421fff libsystem_secinit.dylib (20) <FD6ECF2C-1489-32CA-981B-9045B5EB1FAA> /usr/lib/system/libsystem_secinit.dylib
Sample analysis of process 5689 written to file /dev/stdout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment