MCPcopy Create free account
hub / github.com/chokcoco/iCSS / savePerformanceAnalysis

Method savePerformanceAnalysis

MCP/scripts/fetch-issues.js:1250–1274  ·  view source on GitHub ↗
(issueNumber, analysis)

Source from the content-addressed store, hash-verified

1248 }
1249
1250 async savePerformanceAnalysis(issueNumber, analysis) {
1251 const insertSQL = `
1252 INSERT OR REPLACE INTO performance_analysis
1253 (issue_number, gpu_accelerated, paint_complexity, layout_triggers, memory_impact, optimization_tips)
1254 VALUES (?, ?, ?, ?, ?, ?)
1255 `;
1256
1257 await new Promise((resolve, reject) => {
1258 this.db.run(
1259 insertSQL,
1260 [
1261 issueNumber,
1262 analysis.gpu_accelerated,
1263 analysis.paint_complexity,
1264 analysis.layout_triggers,
1265 analysis.memory_impact,
1266 analysis.optimization_tips
1267 ],
1268 function(err) {
1269 if (err) reject(err);
1270 else resolve();
1271 }
1272 );
1273 });
1274 }
1275
1276 async generateLabelStatistics() {
1277 console.log('\n📊 Label Statistics:');

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected