MCPcopy Create free account
hub / github.com/adny-code/fastgrind / export_json

Method export_json

tools/fastgrind.py:1013–1017  ·  view source on GitHub ↗
(self, output: str | Path)

Source from the content-addressed store, hash-verified

1011 return self._apply_stack_tree_shares(self._finalize_stack_tree(tree, metric))
1012
1013 def export_json(self, output: str | Path) -> Path:
1014 output_path = Path(output)
1015 data = self._compatibility_json_data()
1016 output_path.write_text(json.dumps(data, ensure_ascii=False, indent=2), encoding="utf-8")
1017 return output_path
1018
1019 def export_html_snapshot(
1020 self,

Callers 1

export_json_commandFunction · 0.80

Calls 1

Tested by

no test coverage detected