Reviewers: jat,

Description:
In some enviromnents we are seeing what appear to be stale RPC metrics
following a browser refresh.  This patch reads a user-defined variable
__gwtStatsSessionId at module startup, and copies it into a GWT variable
$session.  Each time a lightweight stats event is generated, its
'session' field is set to the value of $sessionId.

User code may use this to deal with stale events by comparing
stats.session to $sessionId and rejecting events where they are unequal.

The root cause of the stale events is curently unknown.


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

Affected files:
   dev/core/src/com/google/gwt/core/ext/linker/impl/HostedModeTemplate.js
   dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html
   dev/core/src/com/google/gwt/core/linker/IFrameLinker.java
   dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js
   dev/core/src/com/google/gwt/core/linker/XSLinker.java
   dev/core/src/com/google/gwt/core/linker/XSTemplate.js
   dev/core/src/com/google/gwt/dev/js/ast/JsRootScope.java
    
dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Stats.java
   user/src/com/google/gwt/core/client/impl/AsyncFragmentLoader.java
   user/src/com/google/gwt/user/client/rpc/impl/RemoteServiceProxy.java



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

Reply via email to