Bug 1068988 - Part 1: Add byte size to the allocation log; r=shu

This commit is contained in:
Nick Fitzgerald
2015-07-09 09:21:16 -07:00
parent 94adf0e0f6
commit fe2fd27489
21 changed files with 265 additions and 46 deletions

View File

@@ -3562,6 +3562,11 @@ JSObject::addSizeOfExcludingThis(mozilla::MallocSizeOf mallocSizeOf, JS::ClassIn
// - ( 2.8%, 95.3%): RegExp
// - ( 1.0%, 96.4%): Proxy
// Note that any JSClass that is special cased below likely needs to
// specify the JSCLASS_DELAY_METADATA_CALLBACK flag, or else we will
// probably crash if the object metadata callback attempts to get the
// size of the new object (which Debugger code does) before private
// slots are initialized.
} else if (is<ArgumentsObject>()) {
info->objectsMallocHeapMisc += as<ArgumentsObject>().sizeOfMisc(mallocSizeOf);
} else if (is<RegExpStaticsObject>()) {