OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) | 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) |
4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) | 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) |
5 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
6 | 6 |
7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "core/workers/WorkerLoaderProxy.h" | 34 #include "core/workers/WorkerLoaderProxy.h" |
35 #include "core/workers/WorkerThread.h" | 35 #include "core/workers/WorkerThread.h" |
36 #include "public/platform/Platform.h" | 36 #include "public/platform/Platform.h" |
37 #include "weborigin/SecurityOrigin.h" | 37 #include "weborigin/SecurityOrigin.h" |
38 #include "weborigin/SecurityOriginHash.h" | 38 #include "weborigin/SecurityOriginHash.h" |
39 #include "wtf/Assertions.h" | 39 #include "wtf/Assertions.h" |
40 #include "wtf/CurrentTime.h" | 40 #include "wtf/CurrentTime.h" |
41 #include "wtf/MathExtras.h" | 41 #include "wtf/MathExtras.h" |
42 #include "wtf/TemporaryChange.h" | 42 #include "wtf/TemporaryChange.h" |
43 #include "wtf/text/CString.h" | 43 #include "wtf/text/CString.h" |
44 #include <stdio.h> | |
45 | 44 |
46 using namespace std; | 45 using namespace std; |
47 | 46 |
48 namespace WebCore { | 47 namespace WebCore { |
49 | 48 |
50 static MemoryCache* gMemoryCache; | 49 static MemoryCache* gMemoryCache; |
51 | 50 |
52 static const unsigned cDefaultCacheCapacity = 8192 * 1024; | 51 static const unsigned cDefaultCacheCapacity = 8192 * 1024; |
53 static const unsigned cDeferredPruneDeadCapacityFactor = 2; | 52 static const unsigned cDeferredPruneDeadCapacityFactor = 2; |
54 static const int cMinDelayBeforeLiveDecodedPrune = 1; // Seconds. | 53 static const int cMinDelayBeforeLiveDecodedPrune = 1; // Seconds. |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 printf("(%.1fK, %.1fK, %uA, %dR, %d, %d); ", current->decodedSiz
e() / 1024.0f, (current->encodedSize() + current->overheadSize()) / 1024.0f, cur
rent->accessCount(), current->hasClients(), current->isPurgeable(), current->was
Purged()); | 678 printf("(%.1fK, %.1fK, %uA, %dR, %d, %d); ", current->decodedSiz
e() / 1024.0f, (current->encodedSize() + current->overheadSize()) / 1024.0f, cur
rent->accessCount(), current->hasClients(), current->isPurgeable(), current->was
Purged()); |
680 | 679 |
681 current = prev; | 680 current = prev; |
682 } | 681 } |
683 } | 682 } |
684 } | 683 } |
685 | 684 |
686 #endif // MEMORY_CACHE_STATS | 685 #endif // MEMORY_CACHE_STATS |
687 | 686 |
688 } // namespace WebCore | 687 } // namespace WebCore |
OLD | NEW |