Bug 840809 (part 2) - Measure RegExpCompartment::inUse_. r=sstangl.

--HG--
extra : rebase_source : 6eb3e6d42f0dd09eb62ffc887b0e6243de2f7202
This commit is contained in:
Nicholas Nethercote 2013-02-14 11:11:46 -08:00
parent 9fe308c74c
commit 7126c6f594

View File

@ -711,7 +711,10 @@ RegExpCompartment::get(JSContext *cx, HandleAtom atom, JSString *opt, RegExpGuar
size_t
RegExpCompartment::sizeOfExcludingThis(JSMallocSizeOfFun mallocSizeOf)
{
return map_.sizeOfExcludingThis(mallocSizeOf);
size_t n = 0;
n += map_.sizeOfExcludingThis(mallocSizeOf);
n += inUse_.sizeOfExcludingThis(mallocSizeOf);
return n;
}
/* Functions */