2

https://android.googlesource.com/platform/frameworks/native/+/16928bfeca8858a0acae6942fc68c14a040b92ff/opengl/libs/EGL/egl.cpp,它说,我可以设置跟踪方法:

/**
 * There are three different tracing methods:
 * 1. libs/EGL/trace.cpp: Traces all functions to systrace.
 *    To enable:
 *      - set system property "debug.egl.trace" to "systrace" to trace all apps.
 * 2. libs/EGL/trace.cpp: Logs a stack trace for GL errors after each function call.
 *    To enable:
 *      - set system property "debug.egl.trace" to "error" to trace all apps.
 * 3. libs/EGL/trace.cpp: Traces all functions to logcat.
 *    To enable:
 *      - set system property "debug.egl.trace" to 1 to trace all apps.
 *      - or call setGLTraceLevel(1) from an app to enable tracing for that app.
 * 4. libs/GLES_trace: Traces all functions via protobuf to host.
 *    To enable:
 *        - set system property "debug.egl.debug_proc" to the application name.
 *      - or call setGLDebugLevel(1) from the app.
 */

我怎样才能在实际设备上做到这一点?

谢谢你。

4

1 回答 1

0
  1. 亚行外壳
  2. setprop debug.egl.trace 错误
  3. 停止
  4. 开始
  5. 运行应用
于 2013-03-21T22:43:16.477 回答