debugger: make profiling the python dumpers _really_ optional

This commit is contained in:
hjk
2010-06-10 15:33:10 +02:00
parent f911d714fd
commit c4d8d17b61

View File

@@ -784,11 +784,11 @@ class FrameCommand(gdb.Command):
super(FrameCommand, self).__init__("bb", gdb.COMMAND_OBSCURE)
def invoke(self, args, from_tty):
if True:
bb(args)
else:
if args.startswith("options:profile,"):
import cProfile
cProfile.run('bb("%s")' % args, "/tmp/bbprof")
else:
bb(args)
FrameCommand()