![]() |
QPanda3
Supported by OriginQ
|
The whole profile. 更多...
类 | |
| class | _TarjanData |
Public 成员函数 | |
| __init__ (self) | |
| add_function (self, function) | |
| add_cycle (self, cycle) | |
| validate (self) | |
| Validate the edges. | |
| find_cycles (self) | |
| Find cycles using Tarjan's strongly connected components algorithm. | |
| prune_root (self, roots, depth=-1) | |
| prune_leaf (self, leafs, depth=-1) | |
| getFunctionIds (self, funcName) | |
| getFunctionId (self, funcName) | |
| printFunctionIds (self, selector=None, file=sys.stderr) | |
| Print to file function entries selected by fnmatch.fnmatch like in method getFunctionIds, with following extensions: | |
| call_ratios (self, event) | |
| integrate (self, outevent, inevent) | |
| Propagate function time ratio along the function calls. | |
| aggregate (self, event) | |
| Aggregate an event for the whole profile. | |
| ratio (self, outevent, inevent) | |
| prune (self, node_thres, edge_thres, paths, color_nodes_by_selftime) | |
| Prune the profile | |
| dump (self) | |
Public 成员函数 继承自 pyqpanda3.profiling.gprof2dot.Object | |
| __init__ (self, events=None) | |
| __hash__ (self) | |
| __eq__ (self, other) | |
| __lt__ (self, other) | |
| __contains__ (self, event) | |
| __getitem__ (self, event) | |
| __setitem__ (self, event, value) | |
Public 属性 | |
| dict | functions = {} |
| list | cycles = [] |
Public 属性 继承自 pyqpanda3.profiling.gprof2dot.Object | |
| dict | events = {} |
Protected 成员函数 | |
| _tarjan (self, function, order, stack, data) | |
| Tarjan's strongly connected components algorithm. | |
| _integrate_function (self, function, outevent, inevent) | |
| _integrate_call (self, call, outevent, inevent) | |
| _integrate_cycle (self, cycle, outevent, inevent) | |
| _rank_cycle_function (self, cycle, function, ranks) | |
| Dijkstra's shortest paths algorithm. | |
| _call_ratios_cycle (self, cycle, function, ranks, call_ratios, visited) | |
| _integrate_cycle_function (self, cycle, function, partial_ratio, partials, ranks, call_ratios, outevent, inevent) | |
| _dump_events (self, events) | |
The whole profile.
| pyqpanda3.profiling.gprof2dot.Profile.__init__ | ( | self | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Tarjan's strongly connected components algorithm.
See also:
| pyqpanda3.profiling.gprof2dot.Profile.add_cycle | ( | self, | |
| cycle ) |
| pyqpanda3.profiling.gprof2dot.Profile.add_function | ( | self, | |
| function ) |
| pyqpanda3.profiling.gprof2dot.Profile.aggregate | ( | self, | |
| event ) |
Aggregate an event for the whole profile.
| pyqpanda3.profiling.gprof2dot.Profile.call_ratios | ( | self, | |
| event ) |
| pyqpanda3.profiling.gprof2dot.Profile.dump | ( | self | ) |
| pyqpanda3.profiling.gprof2dot.Profile.find_cycles | ( | self | ) |
Find cycles using Tarjan's strongly connected components algorithm.
| pyqpanda3.profiling.gprof2dot.Profile.getFunctionId | ( | self, | |
| funcName ) |
| pyqpanda3.profiling.gprof2dot.Profile.getFunctionIds | ( | self, | |
| funcName ) |
| pyqpanda3.profiling.gprof2dot.Profile.integrate | ( | self, | |
| outevent, | |||
| inevent ) |
Propagate function time ratio along the function calls.
Must be called after finding the cycles.
See also:
| pyqpanda3.profiling.gprof2dot.Profile.printFunctionIds | ( | self, | |
| selector = None, | |||
| file = sys.stderr ) |
Print to file function entries selected by fnmatch.fnmatch like in method getFunctionIds, with following extensions:
| pyqpanda3.profiling.gprof2dot.Profile.prune | ( | self, | |
| node_thres, | |||
| edge_thres, | |||
| paths, | |||
| color_nodes_by_selftime ) |
Prune the profile
| pyqpanda3.profiling.gprof2dot.Profile.prune_leaf | ( | self, | |
| leafs, | |||
| depth = -1 ) |
| pyqpanda3.profiling.gprof2dot.Profile.prune_root | ( | self, | |
| roots, | |||
| depth = -1 ) |
| pyqpanda3.profiling.gprof2dot.Profile.ratio | ( | self, | |
| outevent, | |||
| inevent ) |
| pyqpanda3.profiling.gprof2dot.Profile.validate | ( | self | ) |
Validate the edges.
| list pyqpanda3.profiling.gprof2dot.Profile.cycles = [] |
| dict pyqpanda3.profiling.gprof2dot.Profile.functions = {} |