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

#### 场景介绍

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


#### 前提条件

指令流引擎启动成功。


#### 开发流程

启动线程轮询调用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();             
        }
    }
}
```
