diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-02-12 09:43:21 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-02-12 09:43:21 +0200 |
commit | 5700d37b0f5ffe70e27e5c1c18713f7a9a8aa2c0 (patch) | |
tree | 5f3067a4d829692554e6fe45d90957b6e9e81a32 /obnamlib/fmt_ga/client.py | |
parent | 5ee7a0c4d6a1d6743d54edddfc761f7424337e54 (diff) | |
download | obnam-5700d37b0f5ffe70e27e5c1c18713f7a9a8aa2c0.tar.gz |
Add more memory profile debugging
Diffstat (limited to 'obnamlib/fmt_ga/client.py')
-rw-r--r-- | obnamlib/fmt_ga/client.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/obnamlib/fmt_ga/client.py b/obnamlib/fmt_ga/client.py index f60afb59..b3210b41 100644 --- a/obnamlib/fmt_ga/client.py +++ b/obnamlib/fmt_ga/client.py @@ -223,9 +223,16 @@ class GAClient(object): client_name=self._client_name, gen_id=gen_number) + dumper = obnamlib.MemoryProfileDumper({ + 'dump-memory-profile': True, + 'memory-dump-interval': 0, + }) chunks_in_removed = self.get_generation_chunk_ids(gen_number) + dumper.dump_memory_profile('after getting chunks in removed gen') chunks_remaining = self._get_chunk_ids_used_by_generations(remaining) + dumper.dump_memory_profile('after getting chunks in remaining generations') unused_chunks = set(chunks_in_removed).difference(chunks_remaining) + dumper.dump_memory_profile('after getting computing set of chunks to remove') self._generations.set_generations(remaining) |