Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
poor man's profiler of hung crystal app
26 ??,??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
12 ??,__GI___dl_iterate_phdr,_Unwind_Find_FDE,??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
10 ??,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
10 __kernel_vsyscall,recv,unbuffered_read,fill_buffer,read,->,BIO_read,??,??,??,SSL_shutdown,unbuffered_close,close,process,process,handle_client,->,run,->,??
7 ??,??,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
5 includes?,->,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
5 ??,__GI___dl_iterate_phdr,_Unwind_Find_FDE,??,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
4 ??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
4 __pthread_mutex_unlock_usercnt,__GI___dl_iterate_phdr,_Unwind_Find_FDE,??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
4 makecontext_range,->,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
4 ??,??,__GI___dl_iterate_phdr,_Unwind_Find_FDE,??,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
3 ??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
3 <<,read_uleb128,__crystal_personality,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
2 ??,??,??,SSL_shutdown,unbuffered_close,close,process,process,handle_client,->,run,->,??
2 initialize,initialize,initialize,new,unbuffered_close,close,process,process,handle_client,->,run,->,??
2 __GI___pthread_mutex_lock,_Unwind_Find_FDE,??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
2 at,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
2 at,??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
2 at,CRYPTO_THREADID_cmp,??,??,lh_retrieve,??,ERR_get_state,??,ERR_peek_error,SSL_get_error,initialize,new,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 __x86.get_pc_thunk.bx,__GI___dl_iterate_phdr,_Unwind_Find_FDE,??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 _Unwind_SetGR,__crystal_personality,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 ??,_Unwind_RaiseException,unbuffered_close,??
1 _Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 _Unwind_Find_FDE,??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 ??,??,??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 ->,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 <<,->,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 unbuffered_close,close,process,process,handle_client,->,run,->,??
1 ??,??,SSL_shutdown,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 <_rtld_global+1244>),__GI___dl_iterate_phdr,_Unwind_Find_FDE,??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 read_uleb128,__crystal_personality,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 read_uint8,read_uleb128,__crystal_personality,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 read_uint8,__crystal_personality,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 __pthread_mutex_unlock_usercnt,_Unwind_Find_FDE,??,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 new,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 lb=96),realloc,__crystal_realloc64,realloc,resize_to_capacity,double_capacity,check_needs_resize,push,<<,->,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 init_routine=0xb740bdf0),??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 initialize,new,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 __GI___pthread_mutex_lock,_Unwind_Find_FDE,??,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 __GI___pthread_mutex_lock,_Unwind_Find_FDE,??,??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 ??,??,__GI___dl_iterate_phdr,_Unwind_Find_FDE,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 ??,__GI___dl_iterate_phdr,_Unwind_Find_FDE,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 __GI___dl_iterate_phdr,_Unwind_Find_FDE,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 ??,??,__GI___dl_iterate_phdr,_Unwind_Find_FDE,??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 __GI___dl_iterate_phdr,_Unwind_Find_FDE,??,_Unwind_Backtrace,unwind,initialize,new,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 GC_malloc_kind,GC_malloc_atomic,malloc_atomic,initialize,new,initialize,new,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 encoder,write_utf8,to_s,<<,initialize,new,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 __crystal_personality,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 <=>,<,__crystal_personality,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 __crystal_malloc64,new,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 copy_from_impl,copy_to,copy_to,write,write_utf8,to_s,<<,initialize,new,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 check_capacity_in_bounds,initialize,new,initialize,new,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 ->,BIO_read,??,??,??,SSL_shutdown,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 at,_Unwind_Find_FDE,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 at,read_uleb128,__crystal_personality,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 at,read,->,BIO_read,??,??,??,SSL_shutdown,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 at,initialize,initialize,new,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 at,??,??,__GI___dl_iterate_phdr,_Unwind_Find_FDE,??,_Unwind_RaiseException,__crystal_raise,raise,unbuffered_close,close,process,process,handle_client,->,run,->,??
1 at,fill_buffer,read,->,BIO_read,??,??,??,SSL_shutdown,unbuffered_close,close,process,process,handle_client,->,run,->,??
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment