MCPcopy Create free account
hub / github.com/FastLED/FastLED / run

Method run

ci/profile_runner.py:591–620  ·  view source on GitHub ↗

Run complete profiling workflow

(self)

Source from the content-addressed store, hash-verified

589 return False
590
591 def run(self) -> int:
592 """Run complete profiling workflow"""
593 # Step 0: Ensure Docker is running (if needed)
594 if not self.ensure_docker_running():
595 return 1
596
597 # Step 1: Generate profiler
598 if not self.generate_profiler():
599 return 1
600
601 # Step 2: Build profiler
602 if not self.build_profiler():
603 return 1
604
605 # Step 3: Run benchmarks (skipped for Docker+callgrind)
606 if not self.run_benchmark():
607 return 1
608
609 # Step 4: Analyze results (skip for Docker+callgrind mode)
610 if not (self.use_docker and self.use_callgrind):
611 if not self.analyze_results():
612 return 1
613
614 # Step 5: Optional callgrind analysis
615 if self.use_callgrind:
616 if not self.run_callgrind():
617 print("Warning: Callgrind analysis failed (continuing anyway)")
618
619 print("\n✅ Profiling complete!")
620 return 0
621
622
623def main() -> int:

Callers 15

mainFunction · 0.95
setup_eslintFunction · 0.45
mainFunction · 0.45
ensure_library_builtFunction · 0.45
compile_objectFunction · 0.45
compile_wasmFunction · 0.45
generate_profilerMethod · 0.45
run_benchmarkMethod · 0.45
analyze_resultsMethod · 0.45
run_callgrindMethod · 0.45

Calls 7

ensure_docker_runningMethod · 0.95
generate_profilerMethod · 0.95
build_profilerMethod · 0.95
run_benchmarkMethod · 0.95
analyze_resultsMethod · 0.95
run_callgrindMethod · 0.95
printFunction · 0.50

Tested by 7

mainFunction · 0.36
mainFunction · 0.36
run_cache_checkMethod · 0.36
run_cache_markMethod · 0.36
_concurrent_cache_checkFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36