# HG changeset patch # User Paul Boddie # Date 1473198531 -7200 # Node ID 0963a16cdfa5714f7e0eadabb3c41b172050d3a3 # Parent 88a6b749a72a7aebecfc6a2ddebf723716d808ab Moved method to related method section. diff -r 88a6b749a72a -r 0963a16cdfa5 inspector.py --- a/inspector.py Tue Sep 06 23:38:05 2016 +0200 +++ b/inspector.py Tue Sep 06 23:48:51 2016 +0200 @@ -155,19 +155,6 @@ return self.get_global(name) or self.importer.get_object("__builtins__.%s" % name) - def set_invocation_usage(self): - - """ - Discard the current invocation storage figures, retaining the maximum - values. - """ - - for path, (current, maximum) in self.function_targets.items(): - self.importer.function_targets[path] = self.function_targets[path] = maximum - - for path, (current, maximum) in self.function_arguments.items(): - self.importer.function_arguments[path] = self.function_arguments[path] = maximum - # Module structure traversal. def process_structure_node(self, n): @@ -1381,6 +1368,19 @@ # Functions and invocations. + def set_invocation_usage(self): + + """ + Discard the current invocation storage figures, retaining the maximum + values. + """ + + for path, (current, maximum) in self.function_targets.items(): + self.importer.function_targets[path] = self.function_targets[path] = maximum + + for path, (current, maximum) in self.function_arguments.items(): + self.importer.function_arguments[path] = self.function_arguments[path] = maximum + def allocate_arguments(self, path, args): """