diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-30 12:23:09 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-30 12:23:09 -0600 |
commit | 2020f146a7175288d0aaf15cd91b95e545bbb915 (patch) | |
tree | 82574d787cef440ad56a6e818d03e908caf3d07d /kcachegrind/converters/hotshot2calltree | |
parent | 53b45e0887a2838628521c6086b48b9b4ffe41a4 (diff) | |
download | tdesdk-2020f146a7175288d0aaf15cd91b95e545bbb915.tar.gz tdesdk-2020f146a7175288d0aaf15cd91b95e545bbb915.zip |
Rename ksocket and kcache
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)) |