I saw your pasted code - on the pastebin. The problem is that you are wrapping the iter method of a class. It is only called once for each loop that is started.
And it shoud return imediatelly with an iterator object -- what would be profilable is the calls to the "next" method on the object returned by iter (this is what is called in each for loop interacton) Which means that without changing anything, instead of using your profiler as a decorator on a call to iter you'd use that code in some other way around the yield statement inside taht iter Other than that, you will be better of using timeit. Timeit or other already existing profiles to avoid such traps, as are listed on the comments.
I saw your pasted code - on the pastebin. The problem is that you are wrapping the __iter__ method of a class. It is only called once for each loop that is started.
And it shoud return imediatelly with an iterator object -- what would be profilable is the calls to the "next" method on the object returned by __iter__ (this is what is called in each for loop interacton). Which means that without changing anything, instead of using your profiler as a decorator on a call to __iter__ you'd use that code in some other way around the yield statement inside taht __iter__ Other than that, you will be better of using timeit. Timeit or other already existing profiles to avoid such traps, as are listed on the comments.
And it shoud return imediatelly with an iterator object -- what would be profilable is the calls to the "next" method on the object returned by __iter__ (this is what is called in each for loop interacton). Other than that, you will be better of using timeit. Timeit or other already existing profiles to avoid such traps, as are listed on the comments.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.