Reviewers: rdayal, acleung, skybrian, johnlenz,

Description:
Add instrumentation to the GWT Compiler
1) New deferred binding property <set-property
name="compiler.instrument" value="profile"/>
2) New Immortal Type, Instrumentation.java that adds top level utility
functions instrument, profileEnter, profileExit, and profileFunction
3) Altered GenerateJavaScriptAST, with instrumentation on, every static
method and virtual method is wrapped with a call to profileFunction()
4) Instrumentation.profileFunction() logs data to GWT Lightweight
Statistics, subsystem 'profile', evtGroup is enter/exit, and an extra
'method' field says which method is called


Please review this at http://gwt-code-reviews.appspot.com/1614804/

Affected files:
  M dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java
  M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
A dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Instrumentation.java
  M dev/core/test/com/google/gwt/dev/jjs/impl/CodeSplitter2Test.java
  M user/src/com/google/gwt/core/CompilerParameters.gwt.xml


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to