HistogramTools (version 0.3.2)

dtracehistograms: Read Histograms from text DTrace output file.

Description

Parses the text output of the DTrace command to convert the ASCII representation of aggregate distributions into R histogram objects.

Usage

ReadHistogramsFromDtraceOutputFile(filename)

Arguments

filename
A character vector naming a file that is the output of dtrace with aggregate distribution statistics in it.

Value

A list of histogram objects representing the histograms present in the Dtrace output file.

Details

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.

See Also

histogramtools-package, hist.

Examples

Run this code
## 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)

Run the code above in your browser using DataCamp Workspace