QPanda3
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.profiling.gprof2dot.DotWriter Class Reference

Writer for the DOT language. More...

Public Member Functions

 __init__ (self, fp)
 
 wrap_function_name (self, name)
 Split the function name on multiple lines.
 
 graph (self, profile, theme)
 
 begin_graph (self)
 
 end_graph (self)
 
 attr (self, what, **attrs)
 
 node (self, node, **attrs)
 
 edge (self, src, dst, **attrs)
 
 attr_list (self, attrs)
 
 id (self, id)
 
 color (self, rgb)
 
 escape (self, s)
 
 write (self, s)
 

Public Attributes

 fp = fp
 

Static Public Attributes

bool strip = False
 
bool wrap = False
 
list show_function_events = [TOTAL_TIME_RATIO, TIME_RATIO]
 
list show_edge_events = [TOTAL_TIME_RATIO, CALLS]
 

Detailed Description

Writer for the DOT language.

See also:

Constructor & Destructor Documentation

◆ __init__()

pyqpanda3.profiling.gprof2dot.DotWriter.__init__ ( self,
fp )

Member Function Documentation

◆ attr()

pyqpanda3.profiling.gprof2dot.DotWriter.attr ( self,
what,
** attrs )

◆ attr_list()

pyqpanda3.profiling.gprof2dot.DotWriter.attr_list ( self,
attrs )

◆ begin_graph()

pyqpanda3.profiling.gprof2dot.DotWriter.begin_graph ( self)

◆ color()

pyqpanda3.profiling.gprof2dot.DotWriter.color ( self,
rgb )

◆ edge()

pyqpanda3.profiling.gprof2dot.DotWriter.edge ( self,
src,
dst,
** attrs )

◆ end_graph()

pyqpanda3.profiling.gprof2dot.DotWriter.end_graph ( self)

◆ escape()

pyqpanda3.profiling.gprof2dot.DotWriter.escape ( self,
s )

◆ graph()

pyqpanda3.profiling.gprof2dot.DotWriter.graph ( self,
profile,
theme )

◆ id()

pyqpanda3.profiling.gprof2dot.DotWriter.id ( self,
id )

◆ node()

pyqpanda3.profiling.gprof2dot.DotWriter.node ( self,
node,
** attrs )

◆ wrap_function_name()

pyqpanda3.profiling.gprof2dot.DotWriter.wrap_function_name ( self,
name )

Split the function name on multiple lines.

◆ write()

pyqpanda3.profiling.gprof2dot.DotWriter.write ( self,
s )

Member Data Documentation

◆ fp

pyqpanda3.profiling.gprof2dot.DotWriter.fp = fp

◆ show_edge_events

list pyqpanda3.profiling.gprof2dot.DotWriter.show_edge_events = [TOTAL_TIME_RATIO, CALLS]
static

◆ show_function_events

list pyqpanda3.profiling.gprof2dot.DotWriter.show_function_events = [TOTAL_TIME_RATIO, TIME_RATIO]
static

◆ strip

bool pyqpanda3.profiling.gprof2dot.DotWriter.strip = False
static

◆ wrap

bool pyqpanda3.profiling.gprof2dot.DotWriter.wrap = False
static

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