Dolda2000 GitWeb
/
pdm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7f97a47
)
Introduced an event base class.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 23 Nov 2011 00:38:38 +0000
(
01:38
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 23 Nov 2011 00:38:38 +0000
(
01:38
+0100)
pdm/perf.py
patch
|
blob
|
blame
|
history
diff --git
a/pdm/perf.py
b/pdm/perf.py
index
30f60ba
..
0ff02a1
100644
(file)
--- a/
pdm/perf.py
+++ b/
pdm/perf.py
@@
-94,6
+94,10
@@
class staticdir(perfobj):
def pdm_protocols(self):
return super(staticdir, self).pdm_protocols() + ["dir"]
def pdm_protocols(self):
return super(staticdir, self).pdm_protocols() + ["dir"]
+class event(object):
+ def __init__(self):
+ self.time = time.time()
+
sysres = staticdir()
itime = time.time()
ires = resource.getrusage(resource.RUSAGE_SELF)
sysres = staticdir()
itime = time.time()
ires = resource.getrusage(resource.RUSAGE_SELF)