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

Commit f3ed23ec authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Dump gralloc information in dumpsys gfxinfo" into main

parents 562edfb5 2c9a2db8
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -16,7 +16,13 @@

#include "RenderProxy.h"

#include <SkBitmap.h>
#include <SkImage.h>
#include <SkPicture.h>
#include <gui/TraceUtils.h>
#include <pthread.h>
#include <ui/GraphicBufferAllocator.h>

#include "DeferredLayerUpdater.h"
#include "DisplayList.h"
#include "Properties.h"
@@ -29,12 +35,6 @@
#include "utils/Macros.h"
#include "utils/TimeUtils.h"

#include <SkBitmap.h>
#include <SkImage.h>
#include <SkPicture.h>

#include <pthread.h>

namespace android {
namespace uirenderer {
namespace renderthread {
@@ -323,6 +323,9 @@ void RenderProxy::dumpGraphicsMemory(int fd, bool includeProfileData, bool reset
            }
        });
    }
    std::string grallocInfo;
    GraphicBufferAllocator::getInstance().dump(grallocInfo);
    dprintf(fd, "%s\n", grallocInfo.c_str());
}

void RenderProxy::getMemoryUsage(size_t* cpuUsage, size_t* gpuUsage) {