equal
deleted
inserted
replaced
25 #if defined(_DEBUG) || defined(_DEBUG_RELEASE) |
25 #if defined(_DEBUG) || defined(_DEBUG_RELEASE) |
26 |
26 |
27 // |
27 // |
28 // ONLY INCLUDED IN DEBUG BUILDS |
28 // ONLY INCLUDED IN DEBUG BUILDS |
29 // |
29 // |
|
30 |
|
31 void PrintOpenFiles() |
|
32 { |
|
33 CCacheManager* manager = CCacheManagerFactory::CacheManager(); |
|
34 TInt allocatedSegmentCount = manager ? manager->Stats().iAllocatedSegmentCount : 0; |
|
35 TInt lockedSegmentCount = manager ? manager->Stats().iLockedSegmentCount : 0; |
|
36 TInt fileCount = manager ? manager->Stats().iFileCount : 0; |
|
37 TInt filesOnClosedQueue = manager ? manager->Stats().iFilesOnClosedQueue : 0; |
|
38 |
|
39 RDebug::Print(_L("TRACE: Open files %d allocatedSegmentCount %d lockedSegmentCount %d fileCount %d filesOnClosedQueue %d\n"), |
|
40 Files->Count(), allocatedSegmentCount, lockedSegmentCount, fileCount, filesOnClosedQueue); |
|
41 |
|
42 Files->Lock(); |
|
43 TInt count=Files->Count(); |
|
44 |
|
45 for (TInt n=0; n<count; n++) |
|
46 { |
|
47 CFileCB* file=(CFileCB*)(*Files)[n]; |
|
48 |
|
49 RDebug::Print(_L("%3d: %C:%S fc %x sz %lx\n"), n, file->Drive().DriveNumber() + 'A', &file->FileNameF(), file->FileCache(), file->CachedSize64()); |
|
50 } |
|
51 Files->Unlock(); |
|
52 } |
30 |
53 |
31 void PrintHeapSize(const TDesC& aMessage) |
54 void PrintHeapSize(const TDesC& aMessage) |
32 // |
55 // |
33 // Display the total memory available |
56 // Display the total memory available |
34 // |
57 // |