compile-analysis

Analyze ACE Engine source file compilation time, memory, and dependency trees.

14|8|Updated Oct 29, 2024
One-click install
npx skills add https://github.com/openharmony/arkui_ace_engine --skill compile-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compile-analysis
Source: https://github.com/openharmony/arkui_ace_engine/tree/main/.claude/skills/compile-analysis
Command: npx skills add https://github.com/openharmony/arkui_ace_engine --skill compile-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps software teams identify and quantify why ACE Engine files take longer to compile, consume excessive memory, or pull in deep header chains, enabling targeted optimizations.

Core Features & Use Cases

  • Analyze compile time, memory usage, and dependency depth for individual source files.
  • Generate reusable, standalone compile scripts for repeatable performance testing.
  • Visualize header dependencies by parsing .ii files produced during analysis.
  • Validate changes by comparing before/after compilation metrics and dependency trees.

Quick Start

  • Run full analysis: ./ .claude/skills/compile-analysis/scripts/analyze_compile.sh <source-file> <product-name>
  • Save enhanced (standalone) script: ./ .claude/skills/compile-analysis/scripts/analyze_compile.sh <source-file> <product-name> --save-script
  • Inspect the generated script in out/<product-name>/compile_single_file_<name>.sh and execute it from within out/<product-name>: cd out/<product-name> && bash compile_single_file_<name>.sh

Frequently Asked Questions about compile-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze ACE Engine source file compile time and memory usage?

To analyze ACE Engine compile time and memory usage, execute the analyze_compile.sh script with a target source file and product name to generate performance metrics and dependency trees.

What is the best way to visualize header dependencies in OpenHarmony compilation?

Visualizing header dependencies in OpenHarmony compilation is done by parsing .ii files produced during the analysis run, which generates a dependency tree to guide optimization.

Can I save a standalone compile script for repeatable performance testing?

Yes, you can save a standalone compile script by running analyze_compile.sh with the --save-script flag, outputting a reusable shell script into the build out directory.

How do I validate optimization changes for ACE Engine compilation?

You validate ACE Engine compilation changes by comparing before and after compilation metrics and dependency trees, quantifying improvements in timing, memory usage, and dependency depth.

Why does my ACE Engine source file take so long to compile?

ACE Engine source files take longer to compile due to excessive memory consumption or deep header dependency chains, which this analysis identifies to enable targeted build optimizations.

Does the compile analysis tool support batch processing of multiple source files?

No, the compile analysis tool targets single-file analysis, enabling timing, memory profiling, and dependency tree generation for individual source files rather than batch processing.