I want to count imported class' methods executions while script running. And stop the script according the method executions limit.
I tried to use the __getattribute__
to count executions in inherited class, but it is too hard to use it for such a simple problem (at least at first glance).