graph.py
Go to the documentation of this file.
00001 #!/usr/bin/python
00002 from parser import *
00003 from topology import *
00004 from util import *
00005 import objgraph
00006 
00007 
00008 # Make topology
00009 t = parseFile('v3.xml')
00010 objList = [t] + t.vertices.values() + t.edges.values() 
00011 # for v in t.vertices.values():
00012 #     objList.append(v.emitters.values())
00013 #     objList.append(v.collectors.values())
00014 # for e in t.edges.values():
00015 #     objList.append(e.sources)
00016 #     objList.append(e.sinks)
00017 
00018 filterList = [  Topology,
00019                 Vertex,
00020                 Edge,
00021                 Vertex.Collectors,
00022                 Vertex.Emitters,
00023                 Edge.Sources,
00024                 Edge.Sinks,
00025                 TypedDict,
00026                 TypedList]
00027 # objgraph.show_backrefs(objList,filter=lambda x: type(x) in filterList,filename='tmp.png')
00028 # objgraph.show_backrefs(objList,filter=lambda x: not type(x) in [list], filename='tmp.png')
00029 objgraph.show_backrefs(objList, filename='tmp.png')


rqt_graphprofiler
Author(s): Dan Brooks
autogenerated on Thu Jun 6 2019 20:29:31