ucalls: Summarize method calls with USDT
authorSasha Goldshtein <goldshtn@gmail.com>
Mon, 17 Oct 2016 11:13:48 +0000 (04:13 -0700)
committerSasha Goldshtein <goldshtn@gmail.com>
Mon, 19 Dec 2016 09:46:05 +0000 (09:46 +0000)
commitc13d14fe8f5dff883c6ea7a45c2a6aa27be5af13
treeb38d92986f1f2e735f8bbb4816bae03292fce5cf
parent0107455c233fddadcb40e7a49f5352c16774d5fe
ucalls: Summarize method calls with USDT

`ucalls` is a new tool that uses the USDT probes in high-
level languages (Java, Python, Ruby) to summarize the
number of method calls and optionally their latency. This
is similar to `funccount` and `funclatency` but for methods
in Java, Python, Ruby, and other languages that might have
USDT probes for method entry and exit.

`ucalls` uses the `method__entry` and `method__return`
probes in Java and Ruby, and the `function__entry` and
`function__return` probes in Python. The Python probes are
not as accurate because they do not report the class name,
but are still useful.

The optional `-L` switch indicates whether latency numbers
are required. By default, only the number of calls to each
method is printed. The `-T` switch filters out the top
methods (by number of calls or total latency).
tools/ucalls.py [new file with mode: 0755]