am 497cb6c0
: Merge "Avoid creating Caches instance with gfxinfo dump" into lmp-mr1-dev
* commit '497cb6c0a9818c5ba27df3e5a50878144505405f': Avoid creating Caches instance with gfxinfo dump
This commit is contained in:
@ -50,10 +50,13 @@ void RenderNode::outputLogBuffer(int fd) {
|
||||
fprintf(file, "\nRecent DisplayList operations\n");
|
||||
logBuffer.outputCommands(file);
|
||||
|
||||
String8 cachesLog;
|
||||
Caches::getInstance().dumpMemoryUsage(cachesLog);
|
||||
fprintf(file, "\nCaches:\n%s", cachesLog.string());
|
||||
fprintf(file, "\n");
|
||||
if (Caches::hasInstance()) {
|
||||
String8 cachesLog;
|
||||
Caches::getInstance().dumpMemoryUsage(cachesLog);
|
||||
fprintf(file, "\nCaches:\n%s\n", cachesLog.string());
|
||||
} else {
|
||||
fprintf(file, "\nNo caches instance.\n");
|
||||
}
|
||||
|
||||
fflush(file);
|
||||
}
|
||||
|
Reference in New Issue
Block a user