diff options
author | 2019-08-06 01:42:19 +0000 | |
---|---|---|
committer | 2019-08-06 01:42:19 +0000 | |
commit | 008181ebab2d77afc461b1026b82bc4a166c3b5d (patch) | |
tree | 2868de1975f2b1bcfad0f4483e641f0f9b6c6ade /libs/binder/Stability.cpp | |
parent | 7a129feb164e5bdf912032ba8dc452bac88eaa6d (diff) | |
parent | 64ae917b3380a9121f9057eb6847802331ffa057 (diff) |
Merge "libbinder: add way to debug print stability"
Diffstat (limited to 'libs/binder/Stability.cpp')
-rw-r--r-- | libs/binder/Stability.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/binder/Stability.cpp b/libs/binder/Stability.cpp index 0bcce5bf94..0a10a1d354 100644 --- a/libs/binder/Stability.cpp +++ b/libs/binder/Stability.cpp @@ -28,6 +28,10 @@ void Stability::markVintf(IBinder* binder) { LOG_ALWAYS_FATAL_IF(result != OK, "Should only mark known object."); } +void Stability::debugLogStability(const std::string& tag, const sp<IBinder>& binder) { + ALOGE("%s: stability is %s", tag.c_str(), stabilityString(get(binder.get())).c_str()); +} + void Stability::tryMarkCompilationUnit(IBinder* binder) { (void) set(binder, kLocalStability, false /*log*/); } |