Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tetris [2009/10/16 21:44] aspectscript |
tetris [2009/10/26 17:35] (current) aspectscript |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Tetris Game ====== | ====== Tetris Game ====== | ||
- | This is a demonstration of how the overhead introduced by AspectScript in an interactive application is negligible. Please try the game and let us know if you feel any noticeable difference!. | + | This is a demonstration of how the overhead introduced by AspectScript in an interactive application is negligible. Please try the game and let us know if you feel any noticeable difference! |
- | At the left it is the [[http:// | + | On the left it is the [[http:// |
- | At the right it is the instrumented version, with one global aspect deployed this way: | + | On the right it is the instrumented version, with one global aspect deployed this way (the pointcut matches all the join points it sees and the advice just proceeds): |
<code java> | <code java> | ||
var pointcut = function(){ return true; }; | var pointcut = function(){ return true; }; | ||
- | var advice | + | var advice |
AspectScript.around(pointcut, | AspectScript.around(pointcut, | ||
</ | </ | ||
- | At the bottom of the page can be observed | + | The counter below the game frames shows the number of jp seen by the aspect. |
< | < | ||
Line 20: | Line 20: | ||
< | < | ||
- | <div style=" | + | <div style=" |
| | ||
<script type=" | <script type=" |