123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef ANDROID_RS_DEBUG_HELPER_H
- #define ANDROID_RS_DEBUG_HELPER_H
- #include "rsUtils.h"
- #include "rsInternalDefines.h"
- #if !defined(RS_VENDOR_LIB) && !defined(RS_COMPATIBILITY_LIB)
- #include <utils/CallStack.h>
- #endif
- namespace android {
- namespace renderscript {
- class DebugHelper {
- public:
- DebugHelper() {
- #if !defined(RS_VENDOR_LIB) && !defined(RS_COMPATIBILITY_LIB)
- mStack.update(2);
- #endif
- }
- void dump() {
- #if !defined(RS_VENDOR_LIB) && !defined(RS_COMPATIBILITY_LIB)
- ALOGV("%s", mStack.toString().string());
-
- #endif
- }
- private:
- #if !defined(RS_VENDOR_LIB) && !defined(RS_COMPATIBILITY_LIB)
- CallStack mStack;
- #endif
- };
- }
- }
- #endif //ANDROID_RS_DEBUG_HELPER_H
|