/usr/lib64/python2.6/site-packages/meld3
NameSizeModeActions
clearsilverprofile.py16530644editdlrm
clearsilverprofile.pyc21820644editdlrm
clearsilverprofile.pyo21820644editdlrm
cmeld3.so113600755editdlrm
example.py15480644editdlrm
example.pyc18190644editdlrm
example.pyo18190644editdlrm
meld3.py506530644editdlrm
meld3.pyc482860644editdlrm
meld3.pyo482860644editdlrm
melddiff.py6200644editdlrm
melddiff.pyc9990644editdlrm
melddiff.pyo9990644editdlrm
meldprofile.py17700644editdlrm
meldprofile.pyc22350644editdlrm
meldprofile.pyo22350644editdlrm
testclone.py13330644editdlrm
testclone.pyc15310644editdlrm
testclone.pyo15310644editdlrm
test_getiterator.py12400644editdlrm
test_getiterator.pyc19800644editdlrm
test_getiterator.pyo19800644editdlrm
test_meld3.py620790644editdlrm
test_meld3.pyc638230644editdlrm
test_meld3.pyo638230644editdlrm
zptprofile.py19720644editdlrm
zptprofile.pyc34460644editdlrm
zptprofile.pyo34460644editdlrm
__init__.py1560644editdlrm
__init__.pyc3340644editdlrm
__init__.pyo3340644editdlrm
Edit: /usr/lib64/python2.6/site-packages/meld3/meldprofile.py (1770B)
import profile as profiler import pstats import meld3 # get rid of the noise of setting up an encoding # in profile output '.'.encode('utf-8') template = """ This is the title
This is the head slot
Name Description
""" values = [] for thing in range(0, 20): values.append((str(thing), str(thing))) def run(root): clone = root.clone() ob = clone.findmeld('tr') for tr, (name, desc) in ob.repeat(values): tr.findmeld('td1').content(name) tr.findmeld('td2').content(desc) foo = clone.write_htmlstring() def profile(num): ## import cProfile ## profiler = cProfile profiler.run("[run(root) for x in range(0,100)]", 'logfile.dat') stats = pstats.Stats('logfile.dat') stats.strip_dirs() stats.sort_stats('cumulative', 'calls') #stats.sort_stats('calls') stats.print_stats(num) if __name__ == '__main__': root = meld3.parse_xmlstring(template) run(root) profile(30) import timeit t = timeit.Timer("run(root)", "from __main__ import run, root") repeat = 50 number = 50 result = t.repeat(repeat, number) best = min(result) print "%d loops " % repeat usec = best * 1e6 / number msec = usec / 1000 print "best of %d: %.*g msec per loop" % (repeat, 8, msec) #run(root, trace=True)