Commit c4d8d17b authored by hjk's avatar hjk

debugger: make profiling the python dumpers _really_ optional

parent f911d714
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment