Reviewers: Mads Ager, Søren Gjesse,

Description:
We've got complains that sending afterCompile events to debug message
handler may have considerable impact on the profiler when inspected
script does lots of 'eval's. The proposed solution is to request source
of the compiled script lazily instead of sending it in afterCompile
event.

Corresponding Chromium bug:
http://code.google.com/p/chromium/issues/detail?id=15913

Please review this at http://codereview.chromium.org/149176

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     src/debug-delay.js


Index: src/debug-delay.js
===================================================================
--- src/debug-delay.js  (revision 2345)
+++ src/debug-delay.js  (working copy)
@@ -991,7 +991,6 @@
    }
    o.body = {};
    o.body.script = this.script_;
-  o.setOption('includeSource', true);

    return o.toJSONProtocol();
  }



--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to