2013-01-15 79 views
2

https://android.googlesource.com/platform/frameworks/native/+/16928bfeca8858a0acae6942fc68c14a040b92ff/opengl/libs/EGL/egl.cpp,它說,我可以設置跟蹤方法:設置跟蹤方法EGL在Android

/** 
* 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. 
*/ 

我如何能做到這一點在實際設備上?

謝謝。

回答

0
  1. 亞行外殼
  2. setprop debug.egl.trace錯誤
  3. 停止
  4. 開始
  5. 運行的應用程序
+1

嗯..這本身並不做的伎倆。我認爲EGL庫需要在啓用這些功能的情況下進行編譯。 – gadget

+1

「setprop debug.egl.trace systrace」適用於我 –