Log the size of the cache along with its efficiency.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2033 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: CharacterManager.java,v 1.24 2002/12/07 00:49:36 mdb Exp $
|
||||
// $Id: CharacterManager.java,v 1.25 2002/12/07 01:10:25 shaper Exp $
|
||||
|
||||
package com.threerings.cast;
|
||||
|
||||
@@ -185,8 +185,9 @@ public class CharacterManager
|
||||
// periodically report our action cache performance
|
||||
if (!_cacheStatThrottle.throttleOp()) {
|
||||
int[] eff = _frames.getTrackedEffectiveness();
|
||||
Log.debug("CharacterManager LRU [hits=" + eff[0] +
|
||||
", misses=" + eff[1] + "].");
|
||||
Log.debug("CharacterManager LRU " +
|
||||
"[hits=" + eff[0] + ", misses=" + eff[1] +
|
||||
", size=" + _frames.size() + "].");
|
||||
}
|
||||
|
||||
return frames;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ImageManager.java,v 1.29 2002/12/07 01:00:58 shaper Exp $
|
||||
// $Id: ImageManager.java,v 1.30 2002/12/07 01:10:25 shaper Exp $
|
||||
|
||||
package com.threerings.media;
|
||||
|
||||
@@ -157,8 +157,9 @@ public class ImageManager
|
||||
if (!_cacheStatThrottle.throttleOp()) {
|
||||
int size = getCachedImageSize() / 1024;
|
||||
int[] eff = _imgs.getTrackedEffectiveness();
|
||||
Log.debug("ImageManager LRU [size=" + size + "k pixels" +
|
||||
", hits=" + eff[0] + ", misses=" + eff[1] + "].");
|
||||
Log.debug("ImageManager LRU [area=" + size + "k pixels" +
|
||||
", size=" + _imgs.size() + ", hits=" + eff[0] +
|
||||
", misses=" + eff[1] + "].");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user