1.1 --- a/inspector.py Tue Sep 06 23:38:05 2016 +0200
1.2 +++ b/inspector.py Tue Sep 06 23:48:51 2016 +0200
1.3 @@ -155,19 +155,6 @@
1.4
1.5 return self.get_global(name) or self.importer.get_object("__builtins__.%s" % name)
1.6
1.7 - def set_invocation_usage(self):
1.8 -
1.9 - """
1.10 - Discard the current invocation storage figures, retaining the maximum
1.11 - values.
1.12 - """
1.13 -
1.14 - for path, (current, maximum) in self.function_targets.items():
1.15 - self.importer.function_targets[path] = self.function_targets[path] = maximum
1.16 -
1.17 - for path, (current, maximum) in self.function_arguments.items():
1.18 - self.importer.function_arguments[path] = self.function_arguments[path] = maximum
1.19 -
1.20 # Module structure traversal.
1.21
1.22 def process_structure_node(self, n):
1.23 @@ -1381,6 +1368,19 @@
1.24
1.25 # Functions and invocations.
1.26
1.27 + def set_invocation_usage(self):
1.28 +
1.29 + """
1.30 + Discard the current invocation storage figures, retaining the maximum
1.31 + values.
1.32 + """
1.33 +
1.34 + for path, (current, maximum) in self.function_targets.items():
1.35 + self.importer.function_targets[path] = self.function_targets[path] = maximum
1.36 +
1.37 + for path, (current, maximum) in self.function_arguments.items():
1.38 + self.importer.function_arguments[path] = self.function_arguments[path] = maximum
1.39 +
1.40 def allocate_arguments(self, path, args):
1.41
1.42 """