Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

CallStack

kung-fu-tzu edited this page Sep 13, 2010 · 1 revision

Sampled process performing a sendfile looks like this:


    153 Thread_32726   DispatchQueue_1: com.apple.main-thread  (serial)
      153 start
        153 main
          153 ngx_single_process_cycle
            153 ngx_process_events_and_timers
              110 ngx_kqueue_process_events
                88 ngx_http_init_request
                  83 ngx_http_process_request_line
                    77 ngx_http_process_request_headers
                      75 ngx_http_process_request
                        60 ngx_http_handler
                          60 ngx_http_core_run_phases
                            60 ngx_http_core_content_phase
                              44 ngx_http_js_handler
                                42 ngx_http_js__glue__call_handler
                                  41 JS_CallFunctionValue
                                    40 js_InternalInvoke
                                      40 js_Invoke
                                        40 js_Interpret
                                          29 js_Invoke
                                            13 method_sendSpecial
                                              13 ngx_http_send_special
                                                13 ngx_http_output_filter
                                                  13 ngx_http_range_body_filter
                                                    13 ngx_http_copy_filter
                                                      13 ngx_output_chain
                                                        13 ngx_http_js_body_buffer_filter
                                                          13 ngx_http_ssi_body_filter
                                                            13 ngx_http_charset_body_filter
                                                              13 ngx_http_postpone_filter
                                                                13 ngx_http_gzip_body_filter
                                                                  13 ngx_http_chunked_body_filter
                                                                    13 ngx_http_write_filter
                                                                      13 ngx_darwin_sendfile_chain
                                                                        6 sendfile
                                                                        5 writev$UNIX2003
                                                                        2 ngx_darwin_sendfile_chain

Yep, pretty deep.
So, JS developers must remember: their code is an actual part of nginx, so be very careful :)

Clone this wiki locally