Guides and Sample Code

Developer

Instruments User Guide

On This Page

CPU Activity Log Instrument

Overview

Instrument Description

The CPU Activity Log instrument captures information from CPU activity logs. It can record information from a single process or from all processes running on the system.

Supported Platforms

iOS

Related Profiling Templates

Energy Log Profiling Template

Timeline Pane

The timeline pane displays the following information, based on the instrument’s configuration:

Statistic name

Definition

Total CPU Activity

Graphically denotes when any CPU activity is occurring in your app.

Foreground App CPU Activity

Graphically denotes when CPU activity is occurring in your app and your app is running in the foreground.

Audio CPU Activity

Graphically denotes when audio-related CPU activity is occurring.

Graphics CPU Activity

Graphically denotes when graphics-related CPU activity is occurring.

Record Settings

Click the Record Settings button (image: ../Art/instruments_recordsettings_button_inline_2x.png) in the inspector pane to customize the following recording options.

Track Display Settings

These settings control how information is displayed in the timeline pane.

Setting

Description

Options

Style

How information is presented. This is a fixed setting, which can’t be changed.

  • CPU Activity: Displays the percentage of CPU activity being used.

Display Settings

This instrument has no configurable display settings.

Detail Pane Columns

CPU Activity Detail Type

The following CPU activity columns are available in the detail pane.

Column name

Definition

Time

The time interval used for the measurement.

Total Activity

The percentage of CPU activity.

Foreground App Activity

The percentage of CPU activity while your app is running in the foreground.

Audio Processing

The percentage of audio-related CPU activity.

Graphics

The percentage of graphics-related CPU activity.

App Activity Detail Type

The following app activity columns are available in the detail pane.

Column name

Definition

Time

The time the event occurred.

Event

The type of event that occurred.