Connect performance changes to app behavior

Investigate FPS drops, memory growth, and custom metric changes alongside the screens, interactions, and app state captured at the same time.

Telemetry turns runtime behavior into time-series evidence instead of isolated events. The local player aligns each channel with the session timeline so a reviewer can connect metric changes with screens, logs, touches, and app state.

Telemetry sources

Depending on SDK configuration, a session can contain:

  • FPS and frame timing;
  • memory usage;
  • battery level;
  • app lifecycle state;
  • custom counters, gauges, and state channels.

The host stores samples with timestamps and preserves their channel metadata for later review.

External process telemetry

External monitoring collects process telemetry where the platform permits it:

ChannelUnitAvailability
Process CPUMillicores; 1,000 equals one logical CPUiOS simulator and Android device process counters, when readable
Process RSSBytesiOS simulators and Android devices, when readable
Process physical footprintBytesiOS simulators
Process PSSBytesAndroid devices, when readable
Rendered frames per secondFPSAndroid gfxinfo frame statistics, when supported

iOS simulator FPS is currently unavailable. Android FPS measures newly rendered frames during an interval, so an idle screen may produce zero; unsupported or overflowed statistics are unavailable. Screenshot frequency is not app FPS. Provider and availability details are retained in session properties. CPU can exceed 1,000 millicores when multiple logical CPUs are busy. Simulator measurements describe that simulated run and should not be treated as physical-device results.

Review a range

Use a timeline range when you need statistics over one interaction and the full timeline when trend shape matters. Typical questions include:

  • Did memory climb throughout the flow or spike once?
  • Did FPS fall before or after navigation?
  • Did battery or lifecycle state change near the issue?
  • Which custom channel changed near a screenshot, gesture, or log cluster?

Add an annotation to preserve the conclusion or extract the relevant range into a focused session.

The player’s global Trends area groups monitored metrics by app. It shows the current measurement, reference, delta, decision, and stored history. Rebuild one app’s Trends history after changing workspace rules when you need stored measurements re-evaluated without rerunning the app.

Use ansight session metrics <session-id> --json for raw samples and ansight session telemetry analyze <session-id> --json for bounded FPS-drop and memory-spike findings. See CLI Commands.

Channel lanes and timed spans

Open the Telemetry tab beside Logs, then choose Spans, Metrics, or Events. The overview timeline stays compact; detailed lanes live in this tab. Filter by channel and use the tab’s zoom controls to inspect a shorter interval, or choose Full session to reset the view.

Span bars show elapsed time and outcomes. Overlapping operations occupy separate rows. Selecting a span shows its name, duration, outcome, ID, and parent ID below the lanes and moves replay to its start. A dashed span has no recorded end and remains incomplete. Metric lanes group compatible units and preserve fractional values; selecting a sample displays its value and moves replay to that timestamp. The replay position is shared with the overview timeline and screenshots.

Query spans through the CLI

Span inspection is available through a workspace task using ansight.telemetry.getTimeline({ types: ['spans'] }). The underlying host/MCP tool is ansight_get_telemetry_timeline. There is currently no standalone ansight session spans command. session telemetry analyze remains the FPS-drop and memory-spike detector; it does not analyze spans.

Create a task in your existing workspace:

ansight workspace add task ./my-app telemetry.spans --app-id com.example.app

Set ansight/tasks/telemetry.spans.ts to:

import type { TaskDefinition, TaskInvocation } from './ansight-task.d.ts';

export const task = {
  "schemaVersion": 1,
  "appId": "com.example.app",
  "title": "Inspect recorded spans",
  "description": "Read timed operations retained in the connected session.",
  "maximumActions": 5,
  "timeoutSeconds": 30
} satisfies TaskDefinition;

export default async function ({ ansight }: TaskInvocation) {
  return await ansight.telemetry.getTimeline({ types: ['spans'] });
}

With the app connected, run:

ansight task run telemetry.spans --app-id com.example.app --repository ./my-app --session-id <session-id> --json

Read result.output.spans for spanId, parentSpanId, name, channelId, startedAtUtc, durationMs, and status (ok, error, cancelled, or incomplete). Incomplete spans have a null duration. Add channelIds, channelNames, startUtc, or endUtc to the query to narrow the results. The response also includes matchedSpanCount and spansTruncated; at most 500 spans are returned, so narrow the time window if truncated.

The CLI task runner requires a connected session. Use the player’s Telemetry tab to inspect a saved session after the app disconnects. SDK span-recording examples are documented in each SDK’s Trends and telemetry guide.