Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: Source/core/fetch/MemoryCache.cpp

Issue 189833009: Trace where timers were scheduled in Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/fetch/FontResource.cpp ('k') | Source/core/fetch/Resource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/fetch/FontResource.cpp ('k') | Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698