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

Commit 059476a2 authored by Chris Craik's avatar Chris Craik
Browse files

Avoid creating Caches instance with gfxinfo dump

bug:17509891
Change-Id: I182851068ba04926d60226b3ace95efea59eac45
parent ec89863a
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -50,10 +50,13 @@ void RenderNode::outputLogBuffer(int fd) {
    fprintf(file, "\nRecent DisplayList operations\n");
    logBuffer.outputCommands(file);

    if (Caches::hasInstance()) {
        String8 cachesLog;
        Caches::getInstance().dumpMemoryUsage(cachesLog);
    fprintf(file, "\nCaches:\n%s", cachesLog.string());
    fprintf(file, "\n");
        fprintf(file, "\nCaches:\n%s\n", cachesLog.string());
    } else {
        fprintf(file, "\nNo caches instance.\n");
    }

    fflush(file);
}