> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Performance Analysis

This section guides you through performance analysis methodologies, from diagnosing rendering latency and instrumenting business logic to optimizing page fluency and memory usage, enabling comprehensive smoothness and stability improvements.

## Rendering Latency Analysis

### Record Trace data

Use [Devtool](/next/guide/devtool/trace/record-trace.md) to record Trace data. The Trace is presented on a [timeline](/next/guide/performance/analysis-performance/trace-track.md), capturing the full Lynx rendering pipeline, which lays the foundation for subsequent analysis.

### Analyze rendering latency

On the [Rendering-time analysis](/next/guide/performance/analysis-performance/analysis-render-process.md) page, combine Trace data to review first-frame rendering and page update flows, pinpoint time-consuming stages and performance bottlenecks along the rendering path. The [NativeModule invocation](/next/guide/performance/analysis-performance/analysis-native-module.md) page explains the complete execution flow of NativeModule calls to help you analyze them efficiently.

### Analyze framework rendering and updates

For ReactLynx applications, use [Framework Performance Profiling](/next/guide/performance/analysis-performance/analysis-framework.md) to analyze component rendering, diffing, and state updates, and follow an update from `setState` to the final patch.

### Add custom instrumentation

Trace allows developers to add [custom Trace instrumentation](/next/guide/performance/analysis-performance/trace-api.md). Insert Trace events into key business flows, component lifecycles, and asynchronous tasks to visualize them on the Trace UI timeline, enabling precise tracking and localization of potential bottlenecks.

## Memory Analysis

The [Memory analysis](/next/guide/performance/analysis-performance/analysis-memory.md) page describes how to use Trace and IDE tools to analyze memory peaks, growth trends, and abnormal leaks, helping developers discover and fix memory issues early to improve application stability.

## Fluency

The [Fluency analysis](/next/guide/performance/analysis-performance/analysis-fluency.md) page explains how to analyze dropped frames and jank, enabling developers to quickly locate and optimize page interaction performance.

## Bundle Size

The [Bundle size](/next/guide/performance/analysis-performance/analysis-bundle-size.md) page explains why output size matters for startup, how to analyze it with Rsdoctor and the `rspeedy-bundle-size` skill, and the common levers for reducing it.
