diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-02-12 09:04:46 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-02-12 09:04:46 +0200 |
commit | 2e3289dcdf30b9f3876e7bac79dac20d7f2fc884 (patch) | |
tree | 57cd02af2e26eb501eb51259c017f251f2b10ad9 | |
parent | 941d7d2c23bae7b8f157cbd06fd04963b2f2451b (diff) | |
download | obnam-2e3289dcdf30b9f3876e7bac79dac20d7f2fc884.tar.gz |
Add more memory profile dumping
-rw-r--r-- | obnamlib/plugins/forget_plugin.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/obnamlib/plugins/forget_plugin.py b/obnamlib/plugins/forget_plugin.py index 6d5ea4a0..88808dbf 100644 --- a/obnamlib/plugins/forget_plugin.py +++ b/obnamlib/plugins/forget_plugin.py @@ -86,11 +86,14 @@ class ForgetPlugin(obnamlib.ObnamPlugin): removeids = self.choose_genids_to_remove_using_keep_policy(genlist) else: removeids = [] + self.app.dump_memory_profile('after choosing genids to remove') self.app.ts['gens'] = removeids for genid in removeids: self.app.ts['gen'] = genid - for unused_chunk_id in self.remove(genid): + chunk_ids = self.remove(genid) + self.app.dump_memory_profile('after marking gen for removal (about to remove chunks)') + for unused_chunk_id in chunk_ids: self.repo.remove_chunk_from_indexes( unused_chunk_id, client_name) self.repo.commit_client(client_name) |