Rate This Document
Findability
Accuracy
Completeness
Readability

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();             
        }
    }
}