| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   74     , m_maxDeferredPruneDeadCapacity(cDeferredPruneDeadCapacityFactor * cDefault
     CacheCapacity) |   74     , m_maxDeferredPruneDeadCapacity(cDeferredPruneDeadCapacityFactor * cDefault
     CacheCapacity) | 
|   75     , m_delayBeforeLiveDecodedPrune(cMinDelayBeforeLiveDecodedPrune) |   75     , m_delayBeforeLiveDecodedPrune(cMinDelayBeforeLiveDecodedPrune) | 
|   76     , m_liveSize(0) |   76     , m_liveSize(0) | 
|   77     , m_deadSize(0) |   77     , m_deadSize(0) | 
|   78 #ifdef MEMORY_CACHE_STATS |   78 #ifdef MEMORY_CACHE_STATS | 
|   79     , m_statsTimer(this, &MemoryCache::dumpStats) |   79     , m_statsTimer(this, &MemoryCache::dumpStats) | 
|   80 #endif |   80 #endif | 
|   81 { |   81 { | 
|   82 #ifdef MEMORY_CACHE_STATS |   82 #ifdef MEMORY_CACHE_STATS | 
|   83     const double statsIntervalInSeconds = 15; |   83     const double statsIntervalInSeconds = 15; | 
|   84     m_statsTimer.startRepeating(statsIntervalInSeconds); |   84     m_statsTimer.startRepeating(statsIntervalInSeconds, FROM_HERE); | 
|   85 #endif |   85 #endif | 
|   86     m_pruneTimeStamp = m_pruneFrameTimeStamp = FrameView::currentFrameTimeStamp(
     ); |   86     m_pruneTimeStamp = m_pruneFrameTimeStamp = FrameView::currentFrameTimeStamp(
     ); | 
|   87 } |   87 } | 
|   88  |   88  | 
|   89 MemoryCache::~MemoryCache() |   89 MemoryCache::~MemoryCache() | 
|   90 { |   90 { | 
|   91     if (m_prunePending) |   91     if (m_prunePending) | 
|   92         blink::Platform::current()->currentThread()->removeTaskObserver(this); |   92         blink::Platform::current()->currentThread()->removeTaskObserver(this); | 
|   93 } |   93 } | 
|   94  |   94  | 
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  682                 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()); |  682                 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()); | 
|  683  |  683  | 
|  684             current = prev; |  684             current = prev; | 
|  685         } |  685         } | 
|  686     } |  686     } | 
|  687 } |  687 } | 
|  688  |  688  | 
|  689 #endif // MEMORY_CACHE_STATS |  689 #endif // MEMORY_CACHE_STATS | 
|  690  |  690  | 
|  691 } // namespace WebCore |  691 } // namespace WebCore | 
| OLD | NEW |