Hey guys,
I've had some complaints from users about memory use in my extension. I
just started digging into it, but I'm having a hard time figuring out
what exactly the task manager is reporting. After restarting Chrome and
opening the task manager, it reports that my extension is using roughly
5 megs of memory. (Why 5 megs? Not sure, but it seems each new tab
takes up about the same, so I'm assuming that's the cost of the
background page.)
Anyway, I've created a very simple browser action as a test (pasted
below). Keeping the task manager open and clicking my browser action
shows my extension's memory use increase. On pretty much every single
click. Anywhere from 2k to 30k or so. I would expect things to level
off at some point, but it doesn't seem to be happening. My extension is
now up to 7 megs from the original 5 megs. I've let Chrome sit for a
while and I don't see any signs of that extra memory getting cleaned up.
Any idea why this would happen? This is going to make it difficult to
track memory in my extension. :)
- Colin
My simple browser action:
<html>
<head>
<script>
function HandleLoad() {
var x = {};
window.close();
}
</script>
</head>
<body onload="HandleLoad();">
</body>
</html>
--
You received this message because you are subscribed to the Google Groups
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/chromium-extensions?hl=en.