...
Panel |
---|
bcall@snowball trafficserver$ sudo opreport --symbols /usr/local/bin/traffic_server | head CPU: Core 2, speed 2003 MHz (estimated) Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000 samples % image name app name symbol name 5158 4.6037 traffic_server traffic_server ink_freelist_new 3223 2.8767 traffic_server traffic_server HttpSM::_instantiate_func(HttpSM*, HttpSM*) 3060 2.7312 traffic_server traffic_server mime_hdr_field_find(MIMEHdrImpl*, char const*, int) 3044 2.7169 traffic_server traffic_server ink_freelist_free 2586 2.3081 libc-2.11.1.so traffic_server memcpy 2487 2.2197 traffic_server traffic_server HttpCompat::parse_tok_list(StrList*, int, char const*, int, char) 2309 2.0609 libc-2.11.1.so traffic_server vfprintf |
Running a callgraph report.
Panel |
---|
bcall@snowball trafficserver$ sudo opreport -cg --symbols /usr/local/bin/traffic_server | head -50 samples % linenr info image name app name symbol name ------------------------------------------------------------------------------- 18 26.4706 HttpSM.cc:2640 traffic_server traffic_server HttpSM::main_handler(int, void*) 20 29.4118 HttpAccept.cc:33 traffic_server traffic_server HttpAccept::mainEvent(int, void*) 30 44.1176 HttpClientSession.cc:428 traffic_server traffic_server HttpClientSession::state_api_callout(int, void*) 5158 4.6037 ink_queue.cc:169 traffic_server traffic_server ink_freelist_new 5158 100.000 ink_queue.cc:169 traffic_server traffic_server ink_freelist_new self ------------------------------------------------------------------------------- 26 100.000 HttpSM.cc:2640 traffic_server traffic_server HttpSM::main_handler(int, void*) 3223 2.8767 HttpSM.cc:154 traffic_server traffic_server HttpSM::_instantiate_func(HttpSM*, HttpSM*) 3223 100.000 HttpSM.cc:154 traffic_server traffic_server HttpSM::_instantiate_func(HttpSM*, HttpSM*) self ------------------------------------------------------------------------------- 3060 2.7312 MIME.cc:1380 traffic_server traffic_server mime_hdr_field_find(MIMEHdrImpl*, char const*, int) 3060 100.000 MIME.cc:1380 traffic_server traffic_server mime_hdr_field_find(MIMEHdrImpl*, char const*, int) self |
Running a callgraph report.
Panel |
---|
bcall@snowball trafficserver$ opreport -c -g --symbols proxy/traffic_server samples % linenr info image name app name symbol name ------------------------------------------------------------------------------- 10 1.3661 UnixConnection.cc:162 traffic_server traffic_server Connection::bind_connect(unsigned int, int, unsigned int, NetVCOptions*, int, bool, bool, bool, bool, bool) 68 9.2896 Update.cc:1138 traffic_server traffic_server UpdateScheduler::ScheduleEvent(int, void*) 71 9.6995 Hash_Table.cc:223 traffic_server traffic_server HashTable::remove(int, char*, _alt_hdr*) 223 30.4645 UnixNetAccept.cc:166 traffic_server traffic_server NetAccept::allocateThread(EThread*) 360 49.1803 HttpSM.cc:7791 traffic_server traffic_server HttpSM::redirect_request( char const*, int) 36603 8.1552 UnixEThread.cc:41 traffic_server traffic_server EThread::EThread() 36603 100.000 UnixEThread.cc:41 traffic_server traffic_server EThread::EThread() self ------------------------------------------------------------------------------- 13724 3.0577 LogBuffer.cc:356 traffic_server traffic_server LogBuffer::checkout_write(unsigned long*, unsigned long) 13724 100.000 LogBuffer.cc:356 traffic_server traffic_server LogBuffer::checkout_write(unsigned long*, unsigned long) self ------------------------------------------------------------------------------- 11137 2.4813 (no location information) libpthread-2.11.1.so traffic_server pthread_mutex_trylock 11137 100.000 (no location information) libpthread-2.11.1.so traffic_server pthread_mutex_trylock self |
Google profiler
...