From 5700d37b0f5ffe70e27e5c1c18713f7a9a8aa2c0 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 12 Feb 2017 09:43:21 +0200 Subject: Add more memory profile debugging --- obnamlib/fmt_ga/client.py | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- cgit v1.2.1