我要评分
获取效率
正确性
完整性
易理解

Obtaining Engine Statistics

Application Scenario

Obtain the runtime statistics of the instruction stream engine.

Prerequisites

The instruction stream engine has been started.

Development Process

Start the thread to call the getStat API in polling mode.

Encoding Instance

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) {
            // Periodically query engine statistics.
            String nativeString = engine.getStat();             
        }
    }
}