Is there a way, using Rhino, to track memory used by the interpreter?

I have a simple script.

var str = "foo";
while(1) {
  str += "foo";
}

This is obviously a bad script to use, but I would like to know if
there is a way of getting notified of large objects, or get notified
when objects are manipulated?

Something similar to setInstructionObserverThreshold would be great.

Is there a way to push a custom obect into the Rhino scope to override
the native object that would normally be created?
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to