示例#1
0
文件: bgp.py 项目: aabdnn/exabgp
def __exit (memory, code):
	if memory:
		from exabgp.vendoring import objgraph
		sys.stdout.write('memory utilisation\n\n')
		sys.stdout.write(objgraph.show_most_common_types(limit=20))
		sys.stdout.write('\n\n\n')
		sys.stdout.write('generating memory utilisation graph\n\n')
		sys.stdout.write()
		obj = objgraph.by_type('Reactor')
		objgraph.show_backrefs([obj], max_depth=10)
	sys.exit(code)
示例#2
0
def __exit(memory, code):
    if memory:
        from exabgp.vendoring import objgraph
        sys.stdout.write('memory utilisation\n\n')
        sys.stdout.write(objgraph.show_most_common_types(limit=20))
        sys.stdout.write('\n\n\n')
        sys.stdout.write('generating memory utilisation graph\n\n')
        sys.stdout.write()
        obj = objgraph.by_type('Reactor')
        objgraph.show_backrefs([obj], max_depth=10)
    sys.exit(code)
示例#3
0
文件: bgp.py 项目: qoke/exabgp
def __exit(memory, code):
    if memory:
        from exabgp.vendoring import objgraph
        print("memory utilisation")
        print()
        print(objgraph.show_most_common_types(limit=20))
        print()
        print()
        print("generating memory utilisation graph")
        print()
        obj = objgraph.by_type('Reactor')
        objgraph.show_backrefs([obj], max_depth=10)
    sys.exit(code)
示例#4
0
文件: bgp.py 项目: szhong-jnpr/exabgp
def __exit (memory, code):
	if memory:
		from exabgp.vendoring import objgraph
		print("memory utilisation")
		print()
		print(objgraph.show_most_common_types(limit=20))
		print()
		print()
		print("generating memory utilisation graph")
		print()
		obj = objgraph.by_type('Reactor')
		objgraph.show_backrefs([obj], max_depth=10)
	sys.exit(code)