PATCH: Add DTrace probes
Roy.Lyseng at Sun.COM
Fri Mar 7 13:21:43 UTC 2008
Here is a really simple one based on the "default" entry/return probes
in all user functions:
@syscalls[probefunc] = count();
Start dtrace with this script:
dtrace -s memcached-entry.d -p <process if of memcached daemon>
Let it run for a while and interrupt it. The following output is given:
This is the pid provider that does not really need any code changes at all.
Dustin Sallings wrote:
> For those of us who haven't truly unleashed the power of dtrace, can
> you describe the kinds of things we can learn from this (perhaps with
> --Dustin Sallings (mobile)
> On Mar 6, 2008, at 4:48, Trond Norbye <Trond.Norbye at Sun.COM> wrote:
>> On Mar 5, 2008, at 3:52 PM, Trond Norbye wrote:
>>> The following patch adds a new configure-option (--enable-dtrace)
>>> that adds DTrace probes to various parts of memcached.
>>> Please comment.
>> I discovered that I had some "leftovers" in this patch from before I
>> fixed the comments regarding the large page support..
>> The attached version is replacement for the original patch.
More information about the memcached