ascend-moe-optimizer-trace-analyzer

Convert Chrome/Perfetto trace.json into MoE phase timing tables and diagnosis reports.

2.5k|422|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/openJiuwen-ai/jiuwenswarm --skill ascend-moe-optimizer-trace-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ascend-moe-optimizer-trace-analyzer
Source: https://github.com/openJiuwen-ai/jiuwenswarm/tree/main/jiuwenswarm/resources/agent/workspace/skills/ascend-moe-optimizer-trace-analyzer
Command: npx skills add https://github.com/openJiuwen-ai/jiuwenswarm --skill ascend-moe-optimizer-trace-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you quickly identify performance bottlenecks in Ascend Mixture-of-Experts (MoE) runs by turning Chrome/Perfetto trace.json data into structured phase/category/core-group statistics and an interpretable diagnosis, instead of manually inspecting timelines.

Core Features & Use Cases

  • Trace-to-Stats Pipeline: Parses trace.json (including X events and B/E paired events) and maps raw event names into deterministic phases via a configurable phase map.
  • Bottleneck-Ready Reporting: Produces CSV and Markdown reports with phase instances, summaries by phase/category/core-group, overlap analysis, and bubble (unattributed time) detection.
  • Deterministic Auto Diagnosis (Optional LLM Expansion): Generates structured, evidence-based findings and can optionally append an LLM-produced expert interpretation.
  • MoE/FusedDeepMoe Focus: Comes with a default phase mapping optimized for UMDK-style FusedDeepMoe traces, while still supporting custom trace mappings when analyzing other sources.

Quick Start

Use the ascend-moe-optimizer-trace-analyzer skill to analyze your trace.json file by running python3 app.py --trace trace.json --output-dir output/case1.

Frequently Asked Questions about ascend-moe-optimizer-trace-analyzer

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

FAQPage Schema
How do I analyze Ascend MoE performance bottlenecks from a Perfetto trace.json file?

You can diagnose MoE execution bottlenecks by parsing Chrome or Perfetto trace.json files into structured phase and core-group timing statistics. The tool maps raw trace events through a configurable phase map to produce CSV summaries and Markdown diagnosis reports.

Can I detect overlap and bubble time in Ascend FusedDeepMoe traces automatically?

Yes, automatic overlap and bubble detection is supported for Ascend FusedDeepMoe traces. The analyzer computes deterministic interval aggregation to find overlapping execution phases and identifies unattributed bubble time, outputting the results into structured CSV tables.

How do I generate CSV reports from Chrome trace.json for Mixture-of-Experts profiling?

Generating CSV reports from Chrome trace.json involves running a Python script that extracts X events and B/E paired events. It aggregates timing data by phase, category, and core-group, outputting detailed CSV files for Mixture-of-Experts profiling.

Does the Ascend trace analyzer work with custom phase mappings for non-UMDK traces?

Yes, the analyzer works with custom phase mappings for non-UMDK traces. While optimized for UMDK-style FusedDeepMoe traces by default, you can supply a custom phase_map.yaml to map raw event names into deterministic phases for other trace sources.

What is the best way to diagnose unattributed bubble time in Ascend MoE runs?

The best way to diagnose unattributed bubble time is using automated trace analysis that computes deterministic interval unions. It identifies gaps in execution phases within your trace.json and documents them as bubble summaries in a structured Markdown report.

Do I need an external LLM to generate performance diagnosis from Ascend trace data?

No, an external LLM is optional for generating performance diagnosis. The tool produces structured evidence-based findings automatically, but can optionally append an LLM-produced expert interpretation by executing validated external prompts.