Example #1
0
 elif (arg == '-v'):
     pprint("Version %s" % sysvals.version)
     sys.exit()
 elif (arg == '-verbose'):
     sysvals.verbose = True
 elif (arg in simplecmds):
     cmd = arg[1:]
 elif (arg == '-fstat'):
     sysvals.useftrace = True
 elif (arg == '-callgraph' or arg == '-f'):
     sysvals.useftrace = True
     sysvals.usecallgraph = True
 elif (arg == '-cgdump'):
     sysvals.cgdump = True
 elif (arg == '-mincg'):
     sysvals.mincglen = aslib.getArgFloat('-mincg', args, 0.0, 10000.0)
 elif (arg == '-cgfilter'):
     try:
         val = args.next()
     except:
         doError('No callgraph functions supplied', True)
     sysvals.setCallgraphFilter(val)
 elif (arg == '-cgskip'):
     try:
         val = args.next()
     except:
         doError('No file supplied', True)
     if val.lower() in switchoff:
         cgskip = ''
     else:
         cgskip = sysvals.configFile(val)
Example #2
0
		elif(arg == '-v'):
			print("Version %s" % sysvals.version)
			sys.exit()
		elif(arg == '-verbose'):
			sysvals.verbose = True
		elif(arg in simplecmds):
			cmd = arg[1:]
		elif(arg == '-fstat'):
			sysvals.useftrace = True
		elif(arg == '-callgraph' or arg == '-f'):
			sysvals.useftrace = True
			sysvals.usecallgraph = True
		elif(arg == '-cgdump'):
			sysvals.cgdump = True
		elif(arg == '-mincg'):
			sysvals.mincglen = aslib.getArgFloat('-mincg', args, 0.0, 10000.0)
		elif(arg == '-cgfilter'):
			try:
				val = args.next()
			except:
				doError('No callgraph functions supplied', True)
			sysvals.setCallgraphFilter(val)
		elif(arg == '-cgskip'):
			try:
				val = args.next()
			except:
				doError('No file supplied', True)
			if val.lower() in switchoff:
				cgskip = ''
			else:
				cgskip = sysvals.configFile(val)