sm6375-common: power-libperfmgr: ADPF: dump ADPF session info
Dump current ADPF profile and ADPF session list into bugreport. Bug: 204444691 Test: adb root && adb shell dumpsys android.hardware.power.IPower/default Test: gpaste/6469309887938560 Change-Id: I17c0d615051f5e51c2e1fe99d17c402f9a65679a
This commit is contained in:
parent
f032fe2747
commit
0118a38571
5 changed files with 33 additions and 1 deletions
|
|
@ -200,6 +200,13 @@ int PowerHintSession::getUclampMin() {
|
|||
return mDescriptor->current_min;
|
||||
}
|
||||
|
||||
void PowerHintSession::dumpToStream(std::ostream &stream) {
|
||||
stream << "ID.Min.Act.Stale(" << getIdString();
|
||||
stream << ", " << mDescriptor->current_min;
|
||||
stream << ", " << mDescriptor->is_active;
|
||||
stream << ", " << isStale() << ")";
|
||||
}
|
||||
|
||||
ndk::ScopedAStatus PowerHintSession::pause() {
|
||||
if (mSessionClosed) {
|
||||
ALOGE("Error: session is dead");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue