Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af4d763b authored by Suren Baghdasaryan's avatar Suren Baghdasaryan
Browse files

Fix unnecessary DmaBuffer copying in getIonMappedSizeKb



Change the loop to access DmaBuffer by reference rather than copying it.

Bug: 138148041
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
Change-Id: I47fb49deb46d24897d75f350f4b47679cad37542
parent 2410d673
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -826,7 +826,7 @@ static jlong android_os_Debug_getIonMappedSizeKb(JNIEnv* env, jobject clazz) {
        }
    }

    for (dmabufinfo::DmaBuffer buf : dmabufs) {
    for (const dmabufinfo::DmaBuffer& buf : dmabufs) {
        ionPss += buf.size() / 1024;
    }