Below is the code I am using:
WORKERTEST.HTM
<!DOCTYPE HTML>
<html>
<head>
<title>Worker example</title>
<script>
worker = new Worker('worker.js');
</script>
</head>
<body>
<div id="results">RESULT</div>
<script>
worker.onmessage = function (event) {
var data = event.data;
document.getElementById('results').innerHTML= data;
};
worker.postMessage();
</script>
</body>
</html>
WORKER.JS
onmessage = function (event) {
setInterval("run()",1);
}
function run(){
response=new Date().getTime();
postMessage(response);
}
Can any explain to me why the web worker continues to increase in
memory size while running?
Is this usual?
--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To post to this group, send email to chromiu...@chromium.org.
To unsubscribe from this group, send email to chromium-html...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/?hl=en.
On Mar 27, 8:02 am, Drew Wilson <atwil...@chromium.org> wrote:
> Resending using correct email address this time:
>
> That's not an expected result - can you please log a bug for this athttp://code.google.com/p/chromium/issues/list?
> > To post to this group, send email to chromium-ht...@chromium.org.
> > To unsubscribe from this group, send email to
> > chromium-html5+unsubscr...@chromium.org<chromium-html5%2Bunsubscr...@chromium.org>