diff options
Diffstat (limited to 'kcachegrind/converters/hotshot2calltree')
-rw-r--r-- | kcachegrind/converters/hotshot2calltree | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kcachegrind/converters/hotshot2calltree b/kcachegrind/converters/hotshot2calltree index 4eb8f7de..f62a46e3 100644 --- a/kcachegrind/converters/hotshot2calltree +++ b/kcachegrind/converters/hotshot2calltree @@ -21,7 +21,7 @@ # # # This script transforms the pstat output of the hotshot -# python profiler into the input of kcachegrind. +# python profiler into the input of tdecachegrind. # # example usage: # modify you python script to run this code: @@ -40,8 +40,8 @@ # or here: # hotshot2cachegrind cachegrind.out.0 pythongrind.prof # -# then call kcachegrind: -# kcachegrind cachegrind.out.0 +# then call tdecachegrind: +# tdecachegrind cachegrind.out.0 # # TODO: # * es gibt Probleme mit rekursiven (direkt und indirekt) Aufrufen - dann @@ -140,7 +140,7 @@ def updateStatus(filecount): sys.stdout.write("reading File #%d \r" % filecount) sys.stdout.flush() def convertProfFiles(output, inputfilenames): - """convert all the given input files into one kcachegrind + """convert all the given input files into one tdecachegrind input file. """ call_dict = {} @@ -207,7 +207,7 @@ def handleCostPerPos(cost_per_pos, pos, current_cost): cost_per_pos[filename] = file_dict def convertProfFile(inputfilename, caller_stack, call_dict, cost_per_pos, cost_per_function): - """convert a single input file into one kcachegrind + """convert a single input file into one tdecachegrind data. this is the most expensive function in this python source :-) @@ -276,7 +276,7 @@ class TagWriter: # self.output.write("%s=%s\n" % (tag, value)) def dumpResults(output, call_dict, total_cost, cost_per_pos, cost_per_function): - """write the collected results in the format kcachegrind + """write the collected results in the format tdecachegrind could read. """ # the intro @@ -319,7 +319,7 @@ def dumpResults(output, call_dict, total_cost, cost_per_pos, cost_per_function): output.write("calls=%d\n%d %d\n" % (count, caller_x[1], cost)) tagwriter.clear() #tagwriter.clearTag("cob") - # is it a bug in kcachegrind, that the "cob=xxx" line has + # is it a bug in tdecachegrind, that the "cob=xxx" line has # to be rewritten after a calls entry with costline ? #assert cost <= total_cost, "caller_x: %s, per_caller_dict: %s " % (caller_x, per_caller_dict, ) #output.write("calls=%d\n%d %d\n" % (count, caller_x[1], cost)) |