Commit 311868a6 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk

Debugger: Support p1 on Windows

Change-Id: Id634dc37b2708f9cb88e5b01ff758d5adcde215e
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 95507d32
......@@ -1750,10 +1750,12 @@ theDumper = Dumper()
#######################################################################
def p1(args):
import tempfile
import cProfile
cProfile.run('bb("%s")' % args, "/tmp/bbprof")
tempDir = tempfile.gettempdir() + "/bbprof"
cProfile.run('bb("%s")' % args, tempDir)
import pstats
pstats.Stats('/tmp/bbprof').sort_stats('time').print_stats()
pstats.Stats(tempDir).sort_stats('time').print_stats()
return ""
registerCommand("p1", p1)
......
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