TaskPool provides a multithreaded environment that helps reduce resource consumption and improve system performance. It eliminates the need for manually managing the lifecycle of thread instances. You can use TaskPool APIs to create background tasks and perform operations on them, for example, executing or canceling a task.
With the Concurrency analysis feature provided by DevEco Profiler, you can record key data for parallelism and concurrency, and analyze performance issues such as the lifecycle, throughput, and latency of tasks. The Concurrency template displays information about ArkTS asynchronous APIs, asynchronous Node-APIs, TaskPool, and FFRT concurrency models.
The Concurrency template supports the following lanes: FFRT, TaskPool, Async NAPI, Async ArkTS, ArkTS Callstack, Callstack, and Process. This section describes the FFRT, TaskPool, Async NAPI, and Async ArkTS lanes. For details about other lanes, see the corresponding template.
Before analysis, create a Concurrency 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.





