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

#### 场景介绍

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


#### 前提条件

视频流引擎启动成功。


#### 开发流程

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