PyFoam.Applications.ListProfilingInfo module

Application-class that implements pyFoamListProfilingInfo.py

class PyFoam.Applications.ListProfilingInfo.ListProfilingInfo(args=None, **kwargs)[source]

Bases: PyFoam.Applications.PyFoamApplication.PyFoamApplication, PyFoam.Applications.CommonSelectTimesteps.CommonSelectTimesteps

AddFields = ['totalTime', 'totalTimeMin', 'totalTimeMax', 'childTime', 'selfTime', 'nr_removed', 'calls', 'callsMin', 'callsMax']
addOptions()[source]
clip_small(threshold, data, children, root)[source]
printDotGraph(data, children, root, theme, title=None)[source]
printProfilingInfo(data, children, root, parallel=False)[source]

Prints the profiling info in a pseudo-graphical form

readProfilingInfo(fName)[source]

Read the info from a file and return a tuple with (date,children,root)

run()[source]
class PyFoam.Applications.ListProfilingInfo.Theme(bgcolor=(0.0, 0.0, 1.0), mincolor=(0.0, 0.0, 0.0), maxcolor=(0.0, 0.0, 1.0), fontname='Arial', fontcolor='white', nodestyle='filled', minfontsize=10.0, maxfontsize=10.0, minpenwidth=0.5, maxpenwidth=4.0, gamma=2.2, skew=1.0)[source]

Bases: object

color(weight)[source]
edge_arrowsize(weight)[source]
edge_color(weight)[source]
edge_fontsize(weight)[source]
edge_penwidth(weight)[source]
fontsize(weight)[source]
graph_bgcolor()[source]
graph_fontcolor()[source]
graph_fontname()[source]
graph_fontsize()[source]
hsl_to_rgb(h, s, l)[source]

Convert a color from HSL color-model to RGB. See also: - http://www.w3.org/TR/css3-color/#hsl-color

node_bgcolor(weight)[source]
node_fgcolor(weight)[source]
node_fontsize(weight)[source]
node_style()[source]