目录

I/O Latency Analysis: FileSystem

Function Description

During app development, file-system I/O latency may increase due to frequent thread switching or high disk load. Since version 26.0.0, DevEco Profiler introduces the FileSystem template. You can use it to locate I/O latency issues based on the read/write latency of logical and physical I/Os of the app and the entire device (all apps on the device).

The FileSystem template supports the following lanes: APP Name IO, FileSystem IO, Callstack, and Frame. This section describes the APP Name IO and File System IO lanes. For details about other lanes, see the corresponding template.

  • Before analysis, create a FileSystem analysis task and capture related data. For details, see In-depth Capture for Problem Locating. Alternatively, click Open File in the session area and import historical data.
  • The Callstack lane collects data only when the app triggers logical I/O reads and writes.

Constraints

Only 2-in-1 devices are supported.

Viewing App-Level I/O Latency Statistics

The App Name I/O lane displays the cumulative operation counts and corresponding number of bytes for each of the following operations of the debugged app: logical reads, logical writes, and physical read-write operations. The specific statistical items are as follows. All statistical items are displayed by default. To hide an item, clear the corresponding checkbox in the upper-right corner of the APP Name IO lane.

Select the main lane APP Name IO and view the statistics for the selected time period in the Statistics and Details panes.
  • Statistics: displays I/O statistics grouped by process for the selected time period, including the process information, I/O type, cumulative operation count, total number of bytes, minimum latency, maximum latency, average latency, and latency variance.

  • Details: displays detailed I/O data, including the start time, process information, thread information, I/O type, single-operation latency, and number of bytes involved in a single operation.

The main lane consists of three sub-lanes: Logical Writes, Logical Reads, and Physical Writes/Reads. Logical Writes displays detailed data of app-level logical writes, Logical Reads displays detailed data of app-level logical reads, and Physical Writes/Reads displays detailed data of app-level physical read-write operations. You can click a bar within a sub-lane or drag to select a sub-lane to view specific statistics.

Viewing Device-Level I/O Latency Statistics

The File System I/O lane displays the cumulative operation counts and corresponding number of bytes for each of the following device-level operations: logical reads, logical writes, and physical read-write operations. The specific statistical items are as follows. All statistical items are displayed by default. To hide an item, clear the corresponding checkbox in the upper-right corner of the File System IO lane.

The main lane consists of three sub-lanes: Logical Writes, Logical Reads, and Physical Writes/Reads. Logical Writes displays detailed data of device-level logical writes, Logical Reads displays detailed data of device-level logical reads, and Physical Writes/Reads displays detailed data of device-level physical read-write operations.

Drag to select the main lane File System I/O or a sub-lane. The Statistics pane displays I/O statistics grouped by process for the selected time period, including the process information, I/O type, cumulative operation count, total number of bytes, minimum latency, maximum latency, average latency, and latency variance.

Click any row in the Statistics pane of the main lane or a sub-lane. The More pane on the right displays detailed data, including the I/O start time, thread information, single-operation latency, and number of bytes involved in a single operation.

Click a bar in a sub-lane to display the aggregated I/O data of the entire device within the corresponding time period.