changeset 4105 | ce8be572c4d4 |
parent 4090 | 3dda1049f0d8 |
child 4196 | ed59d07c5373 |
--- a/bindings/python/ns3modulegen.py Sat Jan 17 16:58:42 2009 +0000 +++ b/bindings/python/ns3modulegen.py Sat Jan 17 16:59:45 2009 +0000 @@ -146,5 +146,14 @@ out.close() if __name__ == '__main__': - main() + if 0: + try: + import cProfile as profile + except ImportError: + main() + else: + print >> sys.stderr, "** running under profiler" + profile.run('main()', 'ns3modulegen.pstat') + else: + main()