![]() |
QPanda3
Supported by OriginQ
|
Generate a dot graph from the output of several profilers. 更多...
类 | |
| class | AXEParser |
| class | Call |
| A call between functions. 更多... | |
| class | CallgrindParser |
| Parser for valgrind's callgrind tool. 更多... | |
| class | CollapseParser |
| Parser for the output of stackcollapse 更多... | |
| class | Cycle |
| A cycle made from recursive function calls. 更多... | |
| class | DotWriter |
| Writer for the DOT language. 更多... | |
| class | DtraceParser |
| Parser for linux perf callgraph output. 更多... | |
| class | Event |
| Describe a kind of event, and its basic operations. 更多... | |
| class | Function |
| A function. 更多... | |
| class | GprofParser |
| Parser for GNU gprof output. 更多... | |
| class | HProfParser |
| Parser for java hprof output 更多... | |
| class | JsonParser |
| Parser for a custom JSON representation of profile data. 更多... | |
| class | LineParser |
| Base class for parsers that read line-based formats. 更多... | |
| class | Object |
| Base class for all objects in profile which can store events. 更多... | |
| class | OprofileParser |
| Parser for oprofile callgraph output. 更多... | |
| class | ParseError |
| Raised when parsing to signal mismatches. 更多... | |
| class | Parser |
| Parser interface. 更多... | |
| class | PerfParser |
| Parser for linux perf callgraph output. 更多... | |
| class | Profile |
| The whole profile. 更多... | |
| class | PstatsParser |
| Parser python profiling statistics saved with te pstats module. 更多... | |
| class | SleepyParser |
| Parser for GNU gprof output. 更多... | |
| class | Struct |
| Masquerade a dictionary with a structure-like behavior. 更多... | |
| class | SysprofParser |
| class | Theme |
| Output 更多... | |
| class | UndefinedEvent |
| Raised when attempting to get an event which is undefined. 更多... | |
| class | XmlParser |
| Base XML document parser. 更多... | |
| class | XmlToken |
| class | XmlTokenizer |
| Expat based XML tokenizer. 更多... | |
| class | XmlTokenMismatch |
| class | XPerfParser |
| Parser for CSVs generated by XPerf, from Microsoft Windows Performance Tools. 更多... | |
函数 | |
| 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. | |
变量 | |
| 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' |