diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-02-17 07:08:04 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-02-17 07:08:04 +0000 |
commit | 9440f0709a20a41437ce4a0144b5df90ca7133f2 (patch) | |
tree | 15a64cec6c09f55ef9c495e30bcf459a3df1d3dd /speed-test | |
parent | 5ddf1f7a699c7df1142ca4e396a5238e8c09ef10 (diff) | |
download | larch-9440f0709a20a41437ce4a0144b5df90ca7133f2.tar.gz |
Add more memory use logging.
Diffstat (limited to 'speed-test')
-rwxr-xr-x | speed-test | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -154,10 +154,12 @@ class SpeedTest(cliapp.Application): for item in items: func(item) if self['log-memory-use']: - logging.debug('%s VmRSS: %s KiB' % (profname, self.vmrss())) + logging.debug('VmRSS %s pre-finalize: %s KiB' % + (profname, self.vmrss())) finalize() print 'measuring', profname + logging.debug('VmRSS %s at start: %s KiB' % (profname, self.vmrss())) start_time = time.time() start = time.clock() if self['profile']: @@ -169,6 +171,7 @@ class SpeedTest(cliapp.Application): helper() end = time.clock() end_time = time.time() + logging.debug('VmRSS %s at end: %s KiB' % (profname, self.vmrss())) return end - start, end_time - start_time def vmrss(self): |