summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/include/hidl/HidlInternal.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/base/include/hidl/HidlInternal.h b/base/include/hidl/HidlInternal.h
index d81dd9c..2a86c9e 100644
--- a/base/include/hidl/HidlInternal.h
+++ b/base/include/hidl/HidlInternal.h
@@ -156,7 +156,13 @@ struct HidlInstrumentor {
const std::string &insterface);
virtual ~HidlInstrumentor();
- protected:
+ public:
+ const std::vector<InstrumentationCallback>& getInstrumentationCallbacks() {
+ return mInstrumentationCallbacks;
+ }
+ bool isInstrumentationEnabled() { return mEnableInstrumentation; }
+
+ protected:
// Set mEnableInstrumentation based on system property
// hal.instrumentation.enable, register/de-register instrumentation
// callbacks if mEnableInstrumentation is true/false.