Commit 4aab95ee authored by dpayne's avatar dpayne

Updating example for funcslower

parent 8193c3af
...@@ -75,34 +75,42 @@ This shows the first two arguments to __kmalloc -- the first one is the size ...@@ -75,34 +75,42 @@ This shows the first two arguments to __kmalloc -- the first one is the size
of the requested allocation. The return value is also shown (null return values of the requested allocation. The return value is also shown (null return values
would indicate a failure). would indicate a failure).
# ./funcslower.py -U -u 100 'c:open' # ./funcslower -U -m 30 '/usr/sbin/nginx:database_write'
Tracing function calls slower than 100 us... Ctrl+C to quit. Tracing function calls slower than 30 ms... Ctrl+C to quit.
COMM PID LAT(us) RVAL FUNC COMM PID LAT(ms) RVAL FUNC
ranlib 23857 910.01 6 c:open nginx 1617 30.15 9 /usr/sbin/nginx:database_write
b'llvm::sys::fs::openFileForRead(llvm::Twine const&, int&, llvm::SmallVectorImpl<char>*)' DataBaseProvider::setData(std::string const&, record_s&)
b'[unknown]' UserDataProvider::saveRecordData(RecordData const&)
b'[unknown]' RequestProcessor::writeResponse(int)
ar 24259 17460.29 8 c:open RequestProcessor::processRequest()
b'llvm::sys::fs::openFileForRead(llvm::Twine const&, int&, llvm::SmallVectorImpl<char>*)' RequestRouter::processRequest(RequestWrapper*, ResponseWrapper*)
b'[unknown]' ngx_http_core_content_phase
b'[unknown]' ngx_http_core_run_phases
ranlib 24268 1105.09 7 c:open ngx_http_process_request
b'llvm::sys::fs::openFileForRead(llvm::Twine const&, int&, llvm::SmallVectorImpl<char>*)' ngx_process_events_and_timers
b'[unknown]' ngx_spawn_process
b'[unknown]' ngx_master_process_cycle
sh 25222 100.56 3 c:open main
b'[unknown]' __libc_start_main
b'[unknown]' [unknown]
sh 26321 103.44 3 c:open nginx 1629 30.14 9 /usr/sbin/nginx:database_write
b'[unknown]' DataBaseProvider::setData(std::string const&, record_s&)
b'[unknown]' UserDataProvider::saveRecordData(RecordData const&)
ar 29657 16472.37 9 c:open RequestProcessor::writeResponse(int)
b'llvm::sys::fs::openFileForRead(llvm::Twine const&, int&, llvm::SmallVectorImpl<char>*)' RequestProcessor::processRequest()
b'[unknown]' RequestRouter::processRequest(RequestWrapper*, ResponseWrapper*)
b'[unknown]' ngx_http_core_content_phase
ngx_http_core_run_phases
ngx_http_process_request
ngx_process_events_and_timers
ngx_spawn_process
ngx_master_process_cycle
main
__libc_start_main
[unknown]
^C ^C
Shows the user space stack trace of calls to the libc function call open taking longer than 100 us. Shows the user space stack trace of calls to the user space function call open taking longer than 30 ms.
USAGE message: USAGE message:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment