Include more info in --dump-exit-contexts.

This commit is contained in:
Chris Pressey committed 2019-04-08 12:23:44 +01:00
1 parent b19267d3ba
commit bd462d6d8b
1 file changed
+4
+4
View File
@@ -141,7 +141,11 @@ class Context(object):
)
def to_json_data(self):
type_ = self.routine.location.type
return {
'routine_inputs': ','.join(sorted(loc.name for loc in type_.inputs)),
'routine_outputs': ','.join(sorted(loc.name for loc in type_.outputs)),
'routine_trashes': ','.join(sorted(loc.name for loc in type_.trashes)),
'touched': ','.join(sorted(loc.name for loc in self._touched)),
'range': dict((loc.name, '{}-{}'.format(rng[0], rng[1])) for (loc, rng) in self._range.items()),
'writeable': ','.join(sorted(loc.name for loc in self._writeable)),