Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib64 /
python2.7 /
site-packages /
meld3 /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
156
B
-rw-r--r--
2014-02-18 11:03
__init__.pyc
334
B
-rw-r--r--
2014-02-18 11:03
__init__.pyo
334
B
-rw-r--r--
2014-02-18 11:03
clearsilverprofile.py
1.61
KB
-rw-r--r--
2014-02-18 11:03
clearsilverprofile.pyc
2.13
KB
-rw-r--r--
2014-02-18 11:03
clearsilverprofile.pyo
2.13
KB
-rw-r--r--
2014-02-18 11:03
cmeld3.so
15.55
KB
-rwxr-xr-x
2014-02-18 11:03
example.py
1.51
KB
-rw-r--r--
2014-02-18 11:03
example.pyc
1.77
KB
-rw-r--r--
2014-02-18 11:03
example.pyo
1.77
KB
-rw-r--r--
2014-02-18 11:03
meld3.py
50.48
KB
-rw-r--r--
2014-02-18 11:03
meld3.pyc
47.78
KB
-rw-r--r--
2014-02-18 11:03
meld3.pyo
47.78
KB
-rw-r--r--
2014-02-18 11:03
melddiff.py
620
B
-rw-r--r--
2014-02-18 11:03
melddiff.pyc
940
B
-rw-r--r--
2014-02-18 11:03
melddiff.pyo
940
B
-rw-r--r--
2014-02-18 11:03
meldprofile.py
1.73
KB
-rw-r--r--
2014-02-18 11:03
meldprofile.pyc
2.18
KB
-rw-r--r--
2014-02-18 11:03
meldprofile.pyo
2.18
KB
-rw-r--r--
2014-02-18 11:03
test_getiterator.py
1.21
KB
-rw-r--r--
2014-02-18 11:03
test_getiterator.pyc
1.93
KB
-rw-r--r--
2014-02-18 11:03
test_getiterator.pyo
1.93
KB
-rw-r--r--
2014-02-18 11:03
test_meld3.py
60.62
KB
-rw-r--r--
2014-02-18 11:03
test_meld3.pyc
62.36
KB
-rw-r--r--
2014-02-18 11:03
test_meld3.pyo
62.36
KB
-rw-r--r--
2014-02-18 11:03
testclone.py
1.3
KB
-rw-r--r--
2014-02-18 11:03
testclone.pyc
1.49
KB
-rw-r--r--
2014-02-18 11:03
testclone.pyo
1.49
KB
-rw-r--r--
2014-02-18 11:03
zptprofile.py
1.93
KB
-rw-r--r--
2014-02-18 11:03
zptprofile.pyc
3.36
KB
-rw-r--r--
2014-02-18 11:03
zptprofile.pyo
3.36
KB
-rw-r--r--
2014-02-18 11:03
Save
Rename
import sys import profile as profiler import pstats sys.path.insert(0, '/Users/chrism/projects/meld/z310/lib/python') from zope.pagetemplate.pagetemplate import PageTemplate class mypt(PageTemplate): def pt_getContext(self, args=(), options={}, **kw): rval = PageTemplate.pt_getContext(self, args=args) options.update(rval) return options template = """<html xmlns:tal="http://xml.zope.org/namespaces/tal"> <head> <title>This is the title</title> <div>This is the head slot</div> </head> <body> <div> <form action="." method="POST"> <table border="0"> <tbody> <tr tal:repeat="itemz values" class="foo"> <td tal:content="python: itemz[0]">Name</td> <td tal:content="python: itemz[1]">Description</td> </tr> </tbody> </table> </form> </div> </body> </html>""" class IO: def __init__(self): self.data = [] def write(self, data): self.data.append(data) def getvalue(self): return ''.join(self.data) def clear(self): self.data = [] values = [] for thing in range(0, 20): values.append((str(thing), str(thing))) def test(pt): foo = pt(values=values) def profile(num): ## import cProfile ## profiler = cProfile profiler.run("[test(pt) for x in range(0,100)]", 'logfile_zpt.dat') stats = pstats.Stats('logfile_zpt.dat') stats.strip_dirs() stats.sort_stats('cumulative', 'calls') #stats.sort_stats('calls') stats.print_stats(num) if __name__ == '__main__': pt = mypt() pt.write(template) test(pt) profile(30) import timeit t = timeit.Timer("test(pt)", "from __main__ import test, pt") 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)