Thursday 28 April 2011

Get a list of unique dtrace providers

I just got the DTrace book from Amazon and wanted to get a list of providers for DTrace that OSX supports. (DTrace is a probe/profiling tool created by Sun that came with Mac OS X starting with Leopard.)

So I played with dtrace -l until I got the output to be just a sorted unique list of the providers (it also strips numbers off to keep the list concise).

Here is the resulting command:
 sudo dtrace -l | perl -pe 's/^.*?\S+\s+(\S+?)([0-9]|\s).*/\1/' | sort | uniq 

[crarko adds: I haven't tested this one.]

Add to digg Add to Reddit Add to Slashdot Email this Article Add to StumbleUpon

Source: http://feeds.macosxhints.com/click.phdo?i=3e04735087a241b8b5b5ec063f40681e

apple store deutschland mac computer store mac help desk apple news articles

No comments:

Post a Comment