On 7/1/14, 1:02 PM, Nicolas B. Pierron wrote:
If we go through the RDP, then I guess we want the asynchronous
tracing to just provide an ArrayBuffer of its log based on a list of
callbacks (not functions), such as we can easily write the server-side
of the pipeline.
Then, I guess we want a second function into which we feed the
ArrayBuffer and it calls all the callbacks (provided as a list to the
first function). And this would be on the client side of the Debugger.
// producer
var watched = ["enterFunction", "leaveFunction", "setObject",
"newObject", "freeObject"];
dbg.addLogListener(watched, function (stream) {
// ... send stream over the network, or locally ...
});
// consumer
var watcher = {
enterFunction: function (event) { ... };
leaveFunction: function (event) { ... };
setObject: function (event) { ... };
newObject: function (event) { ... };
freeObject: function (event) { ... };
};
function onStreamReceived(stream) {
dbg.dispatchLogEvents(stream, watcher);
}
Yes, this would be nice.
_______________________________________________
dev-tech-js-engine-internals mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals