forked from qt-creator/qt-creator
debugger: make profiling the python dumpers _really_ optional
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user