---
title: 获取引擎统计信息
description: "获取指令流引擎的运行时统计信息。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/230RC2/armnative/kunpengcpsinstruction_16_0020.html
sourcePath: /source/zh/kunpengboostkithistory/230RC2/armnative/kunpengcpsinstruction_16_0020.html
indexId: f267b9e4194cef4f3bd53b07a946f39fd9fb198f703f4fb516e5b679a863b85985
---
# 获取引擎统计信息

#### 场景介绍

获取指令流引擎的运行时统计信息。


#### 前提条件

指令流引擎启动成功。


#### 开发流程

启动线程轮循调用getStat接口。


#### 编码实例

```
public class Activity implements BaseActivity {
protected void onCreate(Bundle savedInstanceState) {
threadPool.submit(new StartPhoneRunnable());
}
}
public class StartPhoneRunnable implements Runnable {
@Override
public void run() {
while (!stopFlag) {
// 定时查询引擎统计信息
String nativeString = engine.getStat();
}
}
}
```
