MCPcopy Create free account
hub / github.com/defold/defold / save_times

Method save_times

build_tools/BuildTimeTracker.py:109–118  ·  view source on GitHub ↗

Save build times to JSON file

(self, filename=None)

Source from the content-addressed store, hash-verified

107 return summary
108
109 def save_times(self, filename=None):
110 """Save build times to JSON file"""
111 output_file = filename or self.output_file
112 summary = self.get_summary()
113
114 # Save only the current build session (overwrite file)
115 with open(output_file, 'w') as f:
116 json.dump(summary, f, indent=2)
117
118 self.logger(f"Build times saved to {output_file}")
119
120 def print_summary(self):
121 """Print a formatted summary of build times"""

Callers 1

build.pyFile · 0.80

Calls 2

get_summaryMethod · 0.95
dumpMethod · 0.80

Tested by

no test coverage detected