summaryrefslogtreecommitdiff
path: root/rsThreadIO.cpp
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2009-09-23 16:37:36 -0700
committerJoe Onorato <joeo@android.com>2009-09-23 17:26:07 -0700
commit76371fff76412fd020e24ddb8bf1ddb5c75f0ed1 (patch)
tree08b9d925c4f6dec6e940b9ef83cb540ccb7830d2 /rsThreadIO.cpp
parent5fd09d847586f9680b4f495413b6ca5fbb69af6e (diff)
downloadrs-76371fff76412fd020e24ddb8bf1ddb5c75f0ed1.tar.gz
Make the renderscript timing logging available by setting debug.rs.profile=1
Diffstat (limited to 'rsThreadIO.cpp')
-rw-r--r--rsThreadIO.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/rsThreadIO.cpp b/rsThreadIO.cpp
index db4bb814..4072f066 100644
--- a/rsThreadIO.cpp
+++ b/rsThreadIO.cpp
@@ -42,13 +42,13 @@ bool ThreadIO::playCoreCommands(Context *con, bool waitForCommand)
uint32_t cmdID = 0;
uint32_t cmdSize = 0;
ret = true;
-#if RS_LOG_TIMES
- con->timerSet(Context::RS_TIMER_IDLE);
-#endif
+ if (con->logTimes) {
+ con->timerSet(Context::RS_TIMER_IDLE);
+ }
const void * data = mToCore.get(&cmdID, &cmdSize);
-#if RS_LOG_TIMES
- con->timerSet(Context::RS_TIMER_INTERNAL);
-#endif
+ if (con->logTimes) {
+ con->timerSet(Context::RS_TIMER_INTERNAL);
+ }
waitForCommand = false;
//LOGV("playCoreCommands 3 %i %i", cmdID, cmdSize);