What problem does it solve? PyPTO operators on Ascend NPU often underperform after initial code-level optimization, and developers lack a systematic way to interpret swimlane profiling data (merged_swimlane.json, bubble analysis) and translate it into concrete tuning actions such as Stitch configuration, TileShape adjustment, graph merging, and scheduling strategy selection. ## Core Features & Use Cases - Swimlane Analysis Scripts: analyze_swimlane.py, analyze_core_usage.py, analyze_aiv_dep_chains.py, and leafhash_to_code.py parse trace data to report per-leafHash timing, core utilization, AIV dependency chains, and leafHash-to-source-line mappings. - Four Tuning Dimensions: Stitch tuning (stitch_function_max_num), TileShape deep tuning (compute-bound vs memory-bound decision tree, split-K), merge tuning (cube_l1_reuse_setting, cube_nbuffer_setting, vec_nbuffer_setting, sg_set_scope), and scheduling strategy tuning (device_sched_mode). - Gated Checklist Workflow: Enforces core-usage analysis before merge tuning, load-balancing analysis before graph merging, and fresh data collection after every code change. - Use Case: After frontend tuning of a fused attention operator, run the analysis scripts on freshly collected swimlane data, identify a NOT FULL AIC subgraph, reduce its TileShape to fill all 24 AIC cores, then apply vec_nbuffer_setting with the hashOrder key reported by the Merge Tuning Guide. ## Quick Start Ask the assistant to perform deep performance tuning on your PyPTO operator using the latest swimlane data collected with runtime_debug_mode enabled.