hi,<br>i need to trap all method calls in a class in order to update a counter which is increased whenever a method is called and decreased whenever method returns. in order to that i am trying to write a decorator for all the methods.<br>
<br>see the code here with error.<br>-------<br><a href="http://codepad.org/2w7JVvDB">http://codepad.org/2w7JVvDB</a><br>----<br>any suggestions? any other better way of doing it?<br>