QPanda3
0.1.0
Supported by OriginQ
|
Generate a dot graph from the output of several profilers. More...
Classes | |
class | AXEParser |
class | Call |
A call between functions. More... | |
class | CallgrindParser |
Parser for valgrind's callgrind tool. More... | |
class | CollapseParser |
Parser for the output of stackcollapse. More... | |
class | Cycle |
A cycle made from recursive function calls. More... | |
class | DotWriter |
Writer for the DOT language. More... | |
class | DtraceParser |
Parser for linux perf callgraph output. More... | |
class | Event |
Describe a kind of event, and its basic operations. More... | |
class | Function |
A function. More... | |
class | GprofParser |
Parser for GNU gprof output. More... | |
class | HProfParser |
Parser for java hprof output. More... | |
class | JsonParser |
Parser for a custom JSON representation of profile data. More... | |
class | LineParser |
Base class for parsers that read line-based formats. More... | |
class | Object |
Base class for all objects in profile which can store events. More... | |
class | OprofileParser |
Parser for oprofile callgraph output. More... | |
class | ParseError |
Raised when parsing to signal mismatches. More... | |
class | Parser |
Parser interface. More... | |
class | PerfParser |
Parser for linux perf callgraph output. More... | |
class | Profile |
The whole profile. More... | |
class | PstatsParser |
Parser python profiling statistics saved with te pstats module. More... | |
class | SleepyParser |
Parser for GNU gprof output. More... | |
class | Struct |
Masquerade a dictionary with a structure-like behavior. More... | |
class | SysprofParser |
class | Theme |
Output. More... | |
class | UndefinedEvent |
Raised when attempting to get an event which is undefined. More... | |
class | XmlParser |
Base XML document parser. More... | |
class | XmlToken |
class | XmlTokenizer |
Expat based XML tokenizer. More... | |
class | XmlTokenMismatch |
class | XPerfParser |
Parser for CSVs generated by XPerf, from Microsoft Windows Performance Tools. More... | |
Functions | |
times (x) | |
percentage (p) | |
add (a, b) | |
fail (a, b) | |
ratio (numerator, denominator) | |
sorted_iteritems (d) | |
naturalJoin (values) | |
str | gprof2dot (str gprof_str) |
main (argv=sys.argv[1:]) | |
Main program. | |
Variables | |
MULTIPLICATION_SIGN = chr(0xd7) | |
Model. | |
int | tol = 2 ** -23 |
CALLS = Event("Calls", 0, add, times) | |
SAMPLES = Event("Samples", 0, add, times) | |
SAMPLES2 = Event("Samples", 0, add, times) | |
TOTAL_SAMPLES = Event("Samples", 0, add, times) | |
TIME = Event("Time", 0.0, add, lambda x: '(' + str(x) + ')') | |
TIME_RATIO = Event("Time ratio", 0.0, add, lambda x: '(' + percentage(x) + ')') | |
TOTAL_TIME = Event("Total time", 0.0, fail) | |
TOTAL_TIME_RATIO = Event("Total time ratio", 0.0, fail, percentage) | |
dict | labels |
list | defaultLabelNames = ['total-time-percentage', 'self-time-percentage'] |
str | totalMethod = 'callratios' |
dict | formats |
TEMPERATURE_COLORMAP | |
PINK_COLORMAP | |
GRAY_COLORMAP | |
BW_COLORMAP | |
PRINT_COLORMAP | |
dict | themes |
str | content = "" |
Generate a dot graph from the output of several profilers.
pyqpanda3.profiling.gprof2dot.add | ( | a, | |
b ) |
pyqpanda3.profiling.gprof2dot.fail | ( | a, | |
b ) |
str pyqpanda3.profiling.gprof2dot.gprof2dot | ( | str | gprof_str | ) |
pyqpanda3.profiling.gprof2dot.main | ( | argv = sys.argv[1:] | ) |
Main program.
pyqpanda3.profiling.gprof2dot.naturalJoin | ( | values | ) |
pyqpanda3.profiling.gprof2dot.percentage | ( | p | ) |
pyqpanda3.profiling.gprof2dot.ratio | ( | numerator, | |
denominator ) |
pyqpanda3.profiling.gprof2dot.sorted_iteritems | ( | d | ) |
pyqpanda3.profiling.gprof2dot.times | ( | x | ) |
pyqpanda3.profiling.gprof2dot.BW_COLORMAP |
str pyqpanda3.profiling.gprof2dot.content = "" |
list pyqpanda3.profiling.gprof2dot.defaultLabelNames = ['total-time-percentage', 'self-time-percentage'] |
dict pyqpanda3.profiling.gprof2dot.formats |
pyqpanda3.profiling.gprof2dot.GRAY_COLORMAP |
dict pyqpanda3.profiling.gprof2dot.labels |
pyqpanda3.profiling.gprof2dot.MULTIPLICATION_SIGN = chr(0xd7) |
Model.
pyqpanda3.profiling.gprof2dot.PINK_COLORMAP |
pyqpanda3.profiling.gprof2dot.PRINT_COLORMAP |
pyqpanda3.profiling.gprof2dot.TEMPERATURE_COLORMAP |
dict pyqpanda3.profiling.gprof2dot.themes |
pyqpanda3.profiling.gprof2dot.TIME_RATIO = Event("Time ratio", 0.0, add, lambda x: '(' + percentage(x) + ')') |
int pyqpanda3.profiling.gprof2dot.tol = 2 ** -23 |
pyqpanda3.profiling.gprof2dot.TOTAL_TIME_RATIO = Event("Total time ratio", 0.0, fail, percentage) |
str pyqpanda3.profiling.gprof2dot.totalMethod = 'callratios' |