Backed out changeset 4d9c70392f0e (bug 1174612) for total mochitest bustage.

CLOSED TREE
This commit is contained in:
Ryan VanderMeulen 2015-06-15 16:47:11 -04:00
Родитель 42d8db701c
Коммит 74cbad03d6
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -66,7 +66,6 @@ MemoryStats.dump = function (testNumber,
var mrm = MemoryStats._getService("@mozilla.org/memory-reporter-manager;1",
"nsIMemoryReporterManager");
let statMessage = "";
for (var stat in MemoryStats._hasMemoryStatistics) {
var supported = MemoryStats._hasMemoryStatistics[stat];
var firstAccess = false;
@ -81,15 +80,11 @@ MemoryStats.dump = function (testNumber,
MemoryStats._hasMemoryStatistics[stat] = supported;
}
if (supported == MEM_STAT_SUPPORTED) {
let sizeInMB = Math.round(mrm[stat] / (1024 * 1024));
statMessage += " | " + stat + " " + sizeInMB + "MB";
info("MEMORY STAT " + stat + " after test: " + mrm[stat]);
} else if (firstAccess) {
info("MEMORY STAT " + stat + " not supported in this build configuration.");
}
}
if (statMessage.length > 0) {
info("MEMORY STAT" + statMessage);
}
if (dumpAboutMemory) {
var basename = "about-memory-" + testNumber + ".json.gz";