Closed Bug 387713 Opened 17 years ago Closed 15 years ago

indicate active/inactive status of items in cache

Categories

(Core :: Networking: Cache, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jo.hermans, Unassigned)

Details

I was looking why some images never seem to be removed from memory, apparently because they're counted as active (inactive storage was always 0), even after they would be removed from the bfcache. Basically, I wanted to know what was in the bfcache, and what wasn't.

In order to see the difference between active storage (locked in memory) and inactive storage (not locked, can be removed when memory is needed), can't we have an indication somewhere in <about:cache?device=memory> if its status is ?

Just an idea, inspired by bug 288486.
Something like :

     // Status
     mBuffer.AppendLiteral("\n<b>        Status:</b> ");
     if (entryInfo->IsInUse()) {
         mBuffer.AppendLiteral("active");
     } else {
         mBuffer.AppendLiteral("inactive");
     }

in nsAboutCache::VisitEntry() ?
Why not write a patch and ask for a review ?
I don't have the possibility to compile and test patches.
Closing my own bug, this doesn't apply anymore now that images aren't stored in the memory cache device anymore.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.