---
title: 获取引擎统计信息
description: "获取视频流引擎的运行时统计信息。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2300/armnative/kunpengcpsvideo_16_0022.html
sourcePath: /source/zh/kunpengboostkithistory/2300/armnative/kunpengcpsvideo_16_0022.html
indexId: 197ccb24ec6547db1f0884f1307ff3e7571279d37f8616757e566b14b1ef45f477
---
# 获取引擎统计信息

#### 场景介绍

获取视频流引擎的运行时统计信息。


#### 前提条件

视频流引擎启动成功。


#### 开发流程

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


#### 编码实例

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