Lines Matching refs:nAlloc
54 ImpDbgStackTree* Add( sal_uIntPtr nAlloc, sal_uIntPtr* pBP, sal_uIntPtr nIP );
136 ImpDbgStackTree* ImpDbgStackTree::Add( sal_uIntPtr nAlloc, sal_uIntPtr *pBP, sal_uIntPtr nIP ) in Add() argument
142 return pLeft_->Add( nAlloc, pBP, nIP ); in Add()
148 return pRight_->Add( nAlloc, pBP, nIP ); in Add()
155 nBytes_ += nAlloc; in Add()
156 nBytesLeak_ += nAlloc; in Add()
160 nMax_ = nMin_ = nAlloc; in Add()
161 else if ( nMax_ < nAlloc ) in Add()
162 nMax_ = nAlloc; in Add()
163 else if ( nMin_ > nAlloc ) in Add()
164 nMin_ = nAlloc; in Add()
174 return pCaller_->Add( nAlloc, pBP, nIP ); in Add()
237 void* DbgGetStackTree( sal_uIntPtr nAlloc ) in DbgGetStackTree() argument
251 pReturn = pImpDbgStackTreeRoot->Add( nAlloc, pBP, nIP ); in DbgGetStackTree()
260 void DbgFreeStackTree( void* pVoid, sal_uIntPtr nAlloc ) in DbgFreeStackTree() argument
266 if ( nAlloc < p->nMin_ ) in DbgFreeStackTree()
267 nAlloc = p->nMin_; in DbgFreeStackTree()
270 p->nBytesLeak_ -= nAlloc; in DbgFreeStackTree()
276 nAlloc += p->nBytesLeak_ - p->nMax_ * p->nCountLeak_; in DbgFreeStackTree()
282 DbgFreeStackTree( (void*)(p->pSub_), nAlloc ); in DbgFreeStackTree()