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

Method analyzePerformance

MCP/scripts/fetch-issues.js:1021–1031  ·  view source on GitHub ↗
(content, cssProperties)

Source from the content-addressed store, hash-verified

1019 }
1020
1021 analyzePerformance(content, cssProperties) {
1022 const properties = JSON.parse(cssProperties);
1023
1024 return {
1025 gpu_accelerated: this.checkGPUAcceleration(properties),
1026 paint_complexity: this.analyzePaintComplexity(properties),
1027 layout_triggers: this.checkLayoutTriggers(properties),
1028 memory_impact: this.analyzeMemoryImpact(properties),
1029 optimization_tips: JSON.stringify(this.generateOptimizationTips(properties))
1030 };
1031 }
1032
1033 checkGPUAcceleration(properties) {
1034 return properties.some(p =>

Callers

nothing calls this directly

Calls 5

checkGPUAccelerationMethod · 0.95
checkLayoutTriggersMethod · 0.95
analyzeMemoryImpactMethod · 0.95

Tested by

no test coverage detected