зеркало из https://github.com/mozilla/pjs.git
Add new style classes to the leak/bloat logs. This should increase the bloat statistics. r=attinasi
This commit is contained in:
Родитель
5499ecc323
Коммит
ae458d11a9
|
@ -2033,7 +2033,9 @@ inline
|
|||
#endif
|
||||
PRUint32 nsStyleContextData::AddRef(void)
|
||||
{
|
||||
return ++mRefCnt;
|
||||
++mRefCnt;
|
||||
NS_LOG_ADDREF(this,mRefCnt,"nsStyleContextData",sizeof(*this));
|
||||
return mRefCnt;
|
||||
}
|
||||
|
||||
#ifndef DEBUG
|
||||
|
@ -2042,7 +2044,9 @@ inline
|
|||
PRUint32 nsStyleContextData::Release(void)
|
||||
{
|
||||
NS_ASSERTION(mRefCnt > 0, "RefCount error in nsStyleContextData");
|
||||
if (0 == --mRefCnt) {
|
||||
--mRefCnt;
|
||||
NS_LOG_RELEASE(this,mRefCnt,"nsStyleContextData");
|
||||
if (0 == mRefCnt) {
|
||||
#ifdef NOISY_DEBUG
|
||||
printf("deleting nsStyleContextData instance: (%ld)\n", (long)(--gInstanceCount));
|
||||
#endif
|
||||
|
|
|
@ -1384,13 +1384,20 @@ StyleSetImpl::PrintTimer(PRUint32 aTimerID)
|
|||
// many items sharing the same ID, and that there are many unique IDs, so
|
||||
// this is a comprimise between a sorted-list based lookup and a hash-type
|
||||
// lookup which is not possible due to non-guaranteed-unique keys.
|
||||
//
|
||||
|
||||
MOZ_DECL_CTOR_COUNTER(StyleContextCache);
|
||||
|
||||
StyleContextCache::StyleContextCache(void)
|
||||
:mCount(0)
|
||||
{ }
|
||||
{
|
||||
MOZ_COUNT_CTOR(StyleContextCache);
|
||||
}
|
||||
|
||||
StyleContextCache:: ~StyleContextCache(void)
|
||||
{ mHashTable.Reset(); }
|
||||
{
|
||||
mHashTable.Reset();
|
||||
MOZ_COUNT_DTOR(StyleContextCache);
|
||||
}
|
||||
|
||||
PRUint32 StyleContextCache::Count(void)
|
||||
{
|
||||
|
|
|
@ -2033,7 +2033,9 @@ inline
|
|||
#endif
|
||||
PRUint32 nsStyleContextData::AddRef(void)
|
||||
{
|
||||
return ++mRefCnt;
|
||||
++mRefCnt;
|
||||
NS_LOG_ADDREF(this,mRefCnt,"nsStyleContextData",sizeof(*this));
|
||||
return mRefCnt;
|
||||
}
|
||||
|
||||
#ifndef DEBUG
|
||||
|
@ -2042,7 +2044,9 @@ inline
|
|||
PRUint32 nsStyleContextData::Release(void)
|
||||
{
|
||||
NS_ASSERTION(mRefCnt > 0, "RefCount error in nsStyleContextData");
|
||||
if (0 == --mRefCnt) {
|
||||
--mRefCnt;
|
||||
NS_LOG_RELEASE(this,mRefCnt,"nsStyleContextData");
|
||||
if (0 == mRefCnt) {
|
||||
#ifdef NOISY_DEBUG
|
||||
printf("deleting nsStyleContextData instance: (%ld)\n", (long)(--gInstanceCount));
|
||||
#endif
|
||||
|
|
|
@ -1384,13 +1384,20 @@ StyleSetImpl::PrintTimer(PRUint32 aTimerID)
|
|||
// many items sharing the same ID, and that there are many unique IDs, so
|
||||
// this is a comprimise between a sorted-list based lookup and a hash-type
|
||||
// lookup which is not possible due to non-guaranteed-unique keys.
|
||||
//
|
||||
|
||||
MOZ_DECL_CTOR_COUNTER(StyleContextCache);
|
||||
|
||||
StyleContextCache::StyleContextCache(void)
|
||||
:mCount(0)
|
||||
{ }
|
||||
{
|
||||
MOZ_COUNT_CTOR(StyleContextCache);
|
||||
}
|
||||
|
||||
StyleContextCache:: ~StyleContextCache(void)
|
||||
{ mHashTable.Reset(); }
|
||||
{
|
||||
mHashTable.Reset();
|
||||
MOZ_COUNT_DTOR(StyleContextCache);
|
||||
}
|
||||
|
||||
PRUint32 StyleContextCache::Count(void)
|
||||
{
|
||||
|
|
|
@ -2033,7 +2033,9 @@ inline
|
|||
#endif
|
||||
PRUint32 nsStyleContextData::AddRef(void)
|
||||
{
|
||||
return ++mRefCnt;
|
||||
++mRefCnt;
|
||||
NS_LOG_ADDREF(this,mRefCnt,"nsStyleContextData",sizeof(*this));
|
||||
return mRefCnt;
|
||||
}
|
||||
|
||||
#ifndef DEBUG
|
||||
|
@ -2042,7 +2044,9 @@ inline
|
|||
PRUint32 nsStyleContextData::Release(void)
|
||||
{
|
||||
NS_ASSERTION(mRefCnt > 0, "RefCount error in nsStyleContextData");
|
||||
if (0 == --mRefCnt) {
|
||||
--mRefCnt;
|
||||
NS_LOG_RELEASE(this,mRefCnt,"nsStyleContextData");
|
||||
if (0 == mRefCnt) {
|
||||
#ifdef NOISY_DEBUG
|
||||
printf("deleting nsStyleContextData instance: (%ld)\n", (long)(--gInstanceCount));
|
||||
#endif
|
||||
|
|
|
@ -1384,13 +1384,20 @@ StyleSetImpl::PrintTimer(PRUint32 aTimerID)
|
|||
// many items sharing the same ID, and that there are many unique IDs, so
|
||||
// this is a comprimise between a sorted-list based lookup and a hash-type
|
||||
// lookup which is not possible due to non-guaranteed-unique keys.
|
||||
//
|
||||
|
||||
MOZ_DECL_CTOR_COUNTER(StyleContextCache);
|
||||
|
||||
StyleContextCache::StyleContextCache(void)
|
||||
:mCount(0)
|
||||
{ }
|
||||
{
|
||||
MOZ_COUNT_CTOR(StyleContextCache);
|
||||
}
|
||||
|
||||
StyleContextCache:: ~StyleContextCache(void)
|
||||
{ mHashTable.Reset(); }
|
||||
{
|
||||
mHashTable.Reset();
|
||||
MOZ_COUNT_DTOR(StyleContextCache);
|
||||
}
|
||||
|
||||
PRUint32 StyleContextCache::Count(void)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче