Description Usage Arguments Details Value Author(s) See Also Examples
Parses the text output of the DTrace command to convert the ASCII representation of aggregate distributions into R histogram objects.
1 | ReadHistogramsFromDtraceOutputFile(filename)
|
filename |
A character vector naming a file that is the output of dtrace with aggregate distribution statistics in it. |
The DTrace dynamic tracing framework allows users to trace applications and computer operating systems. One of its common outputs is aggregates of a distribution (for example, read request sizes) that are output as a histogram. This function takes the text output from a dtrace command and looks for text distribution representations that can be parsed into R histogram objects.
A list of histogram objects representing the histograms present in the Dtrace output file.
Murray Stokely mstokely@google.com
1 2 3 4 5 6 7 | ## Not run:
system("dtrace -n 'syscall::read:return { @[execname] = quantize(arg0);}> /tmp/dtraceoutput'",
intern=TRUE)
system.readsize.hists <- ReadHistogramsFromDtraceOutputFile("/tmp/dtraceoutput")
plot(system.readsize.hists[[1]])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.