userlibandfileserver/fileserver/sfile/sf_debug.cpp
branchRCL_3
changeset 21 e7d2d738d3c2
parent 19 4a8fed1c0ef6
child 41 0ffb4e86fcc9
equal deleted inserted replaced
20:597aaf25e343 21:e7d2d738d3c2
   448 		case KControlIoCacheCount:
   448 		case KControlIoCacheCount:
   449 			{
   449 			{
   450 			TIOCacheValues cacheValues;
   450 			TIOCacheValues cacheValues;
   451 			cacheValues.iCloseCount= RequestAllocator::CloseCount();
   451 			cacheValues.iCloseCount= RequestAllocator::CloseCount();
   452 			cacheValues.iFreeCount= RequestAllocator::FreeCount();
   452 			cacheValues.iFreeCount= RequestAllocator::FreeCount();
   453 			cacheValues.iAllocated=	RequestAllocator::AllocatedCount();
   453 			cacheValues.iAllocated=	0;	// no longer used
   454 			cacheValues.iTotalCount= RequestAllocator::TotalCount();
   454 			cacheValues.iTotalCount= RequestAllocator::RequestCount();
       
   455 			cacheValues.iRequestCountPeak = RequestAllocator::RequestCountPeak();
       
   456 
       
   457 			cacheValues.iOpFreeCount= OperationAllocator::FreeCount();
       
   458 			cacheValues.iOpRequestCount= OperationAllocator::RequestCount();
       
   459 			cacheValues.iOpRequestCountPeak = OperationAllocator::RequestCountPeak();
       
   460 
       
   461 
   455 			TPckgBuf<TIOCacheValues> pkgBuf(cacheValues);
   462 			TPckgBuf<TIOCacheValues> pkgBuf(cacheValues);
   456 
   463 
   457 			// ensure we only write what the client buffer can hold -
   464 			// ensure we only write what the client buffer can hold -
   458 			// this allows TIOCacheValues to increase in size without breaking BC
   465 			// this allows TIOCacheValues to increase in size without breaking BC
   459 			pkgBuf.SetLength(Min(pkgBuf.MaxLength(), aRequest->Message().GetDesMaxLengthL(2)));
   466 			pkgBuf.SetLength(Min(pkgBuf.MaxLength(), aRequest->Message().GetDesMaxLengthL(2)));