userlibandfileserver/fileserver/sfile/sf_debug.cpp
changeset 90 947f0dc9f7a8
parent 0 a41df078684a
child 109 b3a1d9898418
child 176 af6ec97d9189
--- a/userlibandfileserver/fileserver/sfile/sf_debug.cpp	Tue Feb 02 01:24:03 2010 +0200
+++ b/userlibandfileserver/fileserver/sfile/sf_debug.cpp	Fri Apr 16 16:24:37 2010 +0300
@@ -450,8 +450,15 @@
 			TIOCacheValues cacheValues;
 			cacheValues.iCloseCount= RequestAllocator::CloseCount();
 			cacheValues.iFreeCount= RequestAllocator::FreeCount();
-			cacheValues.iAllocated=	RequestAllocator::AllocatedCount();
-			cacheValues.iTotalCount= RequestAllocator::TotalCount();
+			cacheValues.iAllocated=	0;	// no longer used
+			cacheValues.iTotalCount= RequestAllocator::RequestCount();
+			cacheValues.iRequestCountPeak = RequestAllocator::RequestCountPeak();
+
+			cacheValues.iOpFreeCount= OperationAllocator::FreeCount();
+			cacheValues.iOpRequestCount= OperationAllocator::RequestCount();
+			cacheValues.iOpRequestCountPeak = OperationAllocator::RequestCountPeak();
+
+
 			TPckgBuf<TIOCacheValues> pkgBuf(cacheValues);
 
 			// ensure we only write what the client buffer can hold -
@@ -579,6 +586,19 @@
 			EnableFatUtilityFunctions = ETrue;
 			return KErrNone;
 			}
+        case KControlIoSessionCount:
+            {
+            TPckgBuf<TInt> pkgBuf(SessionCount);
+            TInt r=aRequest->Write(2,pkgBuf);
+            return r;
+            }
+        case KControlIoObjectCount:
+            {
+            TPckgBuf<TInt> pkgBuf(ObjectCount);
+            TInt r=aRequest->Write(2,pkgBuf);
+            return r;
+            }
+		
 		}
 #endif