cangjie-cjprof

Analyze Cangjie program CPU and heap performance with cjprof.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/SunriseSummer/CangjieDocValidator --skill cangjie-cjprof
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cangjie-cjprof
Source: https://github.com/SunriseSummer/CangjieDocValidator/tree/main/.github/skills/cjprof
Command: npx skills add https://github.com/SunriseSummer/CangjieDocValidator --skill cangjie-cjprof

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers identify and resolve performance bottlenecks in their Cangjie code by providing tools for CPU profiling and memory analysis.

Core Features & Use Cases

  • CPU Profiling: Sample function calls to pinpoint hot spots and understand execution time.
  • Memory Analysis: Dump and analyze heap memory to detect memory leaks and understand object retention.
  • Flame Graphs: Generate visual flame graphs for intuitive performance bottleneck identification.
  • Use Case: A developer notices their Cangjie application is running slower than expected. They use cjprof to record CPU samples, generate a flame graph, and identify the functions consuming the most time, allowing them to optimize those specific code sections.

Quick Start

Use the cangjie-cjprof skill to record CPU performance data for a running process with PID 12345.

Frequently Asked Questions about cangjie-cjprof

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

FAQPage Schema
How do I profile CPU usage in a Cangjie application?

To profile CPU usage in a Cangjie application, use the cjprof tool to sample function calls, pinpoint hot spots, and generate text or flame graph reports for visual execution time analysis.

How do I detect memory leaks and analyze heap memory in Cangjie?

To detect memory leaks in Cangjie, use cjprof to dump and analyze heap memory, allowing you to inspect object retention and identify memory leaks within your application.

Do I need root permissions to run CPU sampling on Linux for Cangjie?

Running CPU sampling for Cangjie on Linux requires root permissions or specific perf_event_paranoid configuration to allow the cjprof tool to capture performance data.

How do I generate flame graphs to identify Cangjie performance bottlenecks?

Generate flame graphs for Cangjie performance bottlenecks by recording CPU samples with cjprof, which creates visual reports to intuitively identify functions consuming the most execution time.

What is the best way to inspect thread stacks and object retention in Cangjie?

Inspect thread stacks and object retention in Cangjie by using cjprof to analyze the heap memory dump and capture thread stack states during CPU sampling.

Why does my Cangjie application run slower than expected and how can I optimize it?

If your Cangjie application runs slow, use cjprof to record CPU performance data, identify hot spot functions consuming the most time, and optimize those specific code sections.