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']
__init__(args=None, **kwargs)[source]
Parameters
  • description – description of the command

  • epilog – text to be printed after the options-help

  • examples – usage examples to be printed after the epilog

  • usage – Usage

  • interspersed – Is the command line allowed to be interspersed (options after the arguments)

  • args – Command line arguments when using the Application as a ‘class’ from a script

  • nr – Number of required arguments

  • changeVersion – May this application change the version of OF used?

  • exactNr – Must not have more than the required number of arguments

  • subcommands – parse and use subcommands from the command line. Either True or a list with subcommands

  • inputApp – Application with input data. Used to allow a ‘pipe-like’ behaviour if the class is used from a Script

  • localConfigurationFile – Use this file (or list of files) as a local configuration

  • findLocalConfigurationFile – Method to find a configuration file BEFORE the actual parameters are parsed

  • allowCurses – This application can wrap the output in a curses-window

__module__ = 'PyFoam.Applications.ListProfilingInfo'
addOptions()[source]

Add options to the parser

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]

Run the real application

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

__dict__ = mappingproxy({'__module__': 'PyFoam.Applications.ListProfilingInfo', '__init__': <function Theme.__init__>, 'graph_bgcolor': <function Theme.graph_bgcolor>, 'graph_fontname': <function Theme.graph_fontname>, 'graph_fontcolor': <function Theme.graph_fontcolor>, 'graph_fontsize': <function Theme.graph_fontsize>, 'node_bgcolor': <function Theme.node_bgcolor>, 'node_fgcolor': <function Theme.node_fgcolor>, 'node_fontsize': <function Theme.node_fontsize>, 'node_style': <function Theme.node_style>, 'edge_color': <function Theme.edge_color>, 'edge_fontsize': <function Theme.edge_fontsize>, 'edge_penwidth': <function Theme.edge_penwidth>, 'edge_arrowsize': <function Theme.edge_arrowsize>, 'fontsize': <function Theme.fontsize>, 'color': <function Theme.color>, 'hsl_to_rgb': <function Theme.hsl_to_rgb>, '_hue_to_rgb': <function Theme._hue_to_rgb>, '__dict__': <attribute '__dict__' of 'Theme' objects>, '__weakref__': <attribute '__weakref__' of 'Theme' objects>, '__doc__': None})
__init__(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]

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'PyFoam.Applications.ListProfilingInfo'
__weakref__

list of weak references to the object (if defined)

_hue_to_rgb(m1, m2, h)[source]
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]