# 应用设备监控

### 背景介绍

***

为确保应用在一体机眼镜上运行效果，建议尽量降低应用的整体功耗，开发者可通过以下工具可以监控应用运行时的电流情况，方便调试。<br>

### 使用须知

***

1. 在调用api之前，需要先阅读[设备监控 ](/rayneo-devdoc/x-xi-lie/unity-kai-fa/x2-api-jiu-ban-sdk-zhi-chi/platformandroid/she-bei-jian-kong.md)。
2. 需要在manifest中加入配置：

```xml
 <queries>
  <package android:name="com.ffalcon.rayneo.systemwindows" />
 </queries>
```

<br>

### Static Public Member Function

***

<table data-header-hidden><thead><tr><th width="597"></th><th></th></tr></thead><tbody><tr><td>OpenSystemMonitoring</td><td><br></td></tr><tr><td>Static void OpenSystemMonitoring(long SystemMonitoringInfoType)</td><td></td></tr><tr><td>开启监控,示例：开启瞬时电流和平均电流监控SystemMonitoring.OpenSystemMonitoring(SystemMonitoring.SystemMonitoringInfoType.ELECTRIC | SystemMonitoring.SystemMonitoringInfoType.AVERAGE_ELECTRIC);</td><td></td></tr></tbody></table>

<table data-header-hidden><thead><tr><th width="599"></th><th></th></tr></thead><tbody><tr><td>CloseSystemMonitoring</td><td><br></td></tr><tr><td>Void CloseSystemMonitoring()</td><td></td></tr><tr><td>关闭监控</td><td></td></tr></tbody></table>

### Class SystemMonitoringInfoType Documentation

***

<table data-header-hidden><thead><tr><th width="600"></th><th></th></tr></thead><tbody><tr><td>SystemMonitoringInfoType</td><td><br></td></tr><tr><td>Public class SystemMonitoringInfoType</td><td></td></tr><tr><td><p>显示全部.</p><p>public const long FULL = 0;</p><p>电流</p><p>public const long ELECTRIC = 1 &#x3C;&#x3C; 0;</p><p>平均电流</p><p>public const long AVERAGE_ELECTRIC = 1 &#x3C;&#x3C; 1;</p><p>当前电量</p><p>public const long BATTERY_CAPACTIY = 1 &#x3C;&#x3C; 2;</p></td><td></td></tr></tbody></table>

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rayneo.gitbook.io/rayneo-devdoc/x-xi-lie/unity-kai-fa/x2-api-jiu-ban-sdk-zhi-chi/platformandroid/ying-yong-she-bei-jian-kong.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
