Merge branch 'with_open' of https://github.com/Luflosi/kitty
This commit is contained in:
commit
f5090c951a
1 changed files with 2 additions and 1 deletions
|
|
@ -177,7 +177,8 @@ def setup_profiling(args):
|
|||
exe = kitty_exe()
|
||||
cg = '/tmp/kitty-profile.callgrind'
|
||||
print('Post processing profile data for', exe, '...')
|
||||
subprocess.call(['pprof', '--callgrind', exe, '/tmp/kitty-profile.log'], stdout=open(cg, 'wb'))
|
||||
with open(cg, 'wb') as f:
|
||||
subprocess.call(['pprof', '--callgrind', exe, '/tmp/kitty-profile.log'], stdout=f)
|
||||
try:
|
||||
subprocess.Popen(['kcachegrind', cg])
|
||||
except FileNotFoundError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue