Hi, i’m making a plugin to profile python using cprofile and kcachegrind, i want to execute the first command:
python cProfile -o <output_file> <file>
if the command was successful then:
pyprof2calltree -k -i <output_file>
if it produced an error then:
delete the output_file
output_file = os.path.join(sublime.packages_path()[:-8], "Prof_logs", file_name[:-3] + ".cprof")
I want to use the ST builtin exec command if possible.
Thanks in advance