MasterScan  Lab_Matlab_control Master Branch
List of all members | Properties and Events | Methods | Static Methods
ProfilerGrapher Class Reference

Overview

Graphs output from the Matlab profiler with the Graphviz tool.

@ details ProfilerGrapher evaluates a given "toDo" expression under the Matlab profiler and gathers function call data. It confugures a DataGrapher to graph which functions called which, and how many times.

Inheritance diagram for ProfilerGrapher:
Inheritance graph
[legend]

Properties and Events

Property toDo = ''
 string, a Matlab expression to eval() under the Matlab profiler
 
Property profilerInfo
 output from the Matlab profiler
 
Property ignoredPaths = {}
 cell array of strings of absolute paths containing functions to ignore
 
Property includePaths = {}
 cell array of strings of absolute paths containing the only functions to include
 
Property dataGrapher
 a DataGrapher object for graphing the profiler output
 

Methods

self ProfilerGrapher ()
 Constructor takes no arguments.
 
 run (self)
 Generate profiler data with the given toDo expression.
 
info appplyFunctionFilter (self, info)
 Filter graphed functions based on includePaths and ignoredPaths.
 
 writeDotFile (self)
 Write a GraphViz ".dot" file that represents filtered profiler output. More...
 
 generateGraph (self)
 Generate a graph image from the GraphViz ".dot" file.
 

Static Methods

static nodeName shortNameWithType (inputData, index)
 Make a string which summarizes a function and its type.
 
static description totalCallsAndTime (inputData, index)
 Make a string which summarizes a functions's usage.
 
static edgeIndexes edgeNames edgeFromChildren (inputData, index)
 Find graph edges corresponding to a function's children.
 
static shortName getShortFunctionName (longName)
 Clean up and shorten long, fully-qualified function names.
 

Methods

◆ writeDotFile()

writeDotFile ( self  )

Write a GraphViz ".dot" file that represents filtered profiler output.


The documentation for this class was generated from the following file: