Learn R Programming

pbdPROF (version 0.2-1)

prof-class: Class prof

Description

Class for Profiler Output

Arguments

Details

The prof class is a simple container for managing profiler output via R.

The slots are profiler, raw, and parsed. The first, profiler, is just a character string consisting of the profiler used to generate the output (e.g., "fpmpi", "mpiP", etc.). Next, the slot raw contains the raw output from the profiling library, stored in R as a vector of character data (strings) directly from a readLines() call, and cast as the virtual class rawprof. In reality, we will cast the raw data as a virtual class of the same name as that found in the profiler slot, and rawprof is a superclass of each of these classes. This is for internal S3 dispatch. You should not mess around with this. The final slot, parsed, contains a condensed version of the information from the raw slot, stored as a dataframe. This is the representation used for plotting. Unless you really think you know what you are doing, you probably shouldn't directly mess around with the elements of this class. Instead, simply use the read.prof() function.

See Also

read.prof