diff options
author | Joe Onorato <joeo@android.com> | 2009-09-23 16:37:36 -0700 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2009-09-23 17:26:07 -0700 |
commit | 9ac2c66f0171593113238635c6a7921c41215e77 (patch) | |
tree | 77b1468329a63d5bf1e98e7c6dce739a313afce9 /libs/rs/rsThreadIO.cpp | |
parent | 8799b96ea09d5fdd9904dd9de3002c0a9cd28fdc (diff) | |
download | frameworks_base-9ac2c66f0171593113238635c6a7921c41215e77.zip frameworks_base-9ac2c66f0171593113238635c6a7921c41215e77.tar.gz frameworks_base-9ac2c66f0171593113238635c6a7921c41215e77.tar.bz2 |
Make the renderscript timing logging available by setting debug.rs.profile=1
Diffstat (limited to 'libs/rs/rsThreadIO.cpp')
-rw-r--r-- | libs/rs/rsThreadIO.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/rs/rsThreadIO.cpp b/libs/rs/rsThreadIO.cpp index db4bb81..4072f06 100644 --- a/libs/rs/rsThreadIO.cpp +++ b/libs/rs/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); |