[Repoze-dev] [issue169] repoze.profile: useless profile recorded when application is a generator

2010-11-29 Thread jkarp
jkarp added the comment: Thanks! That works for me. I appreciate your work, repoze.profile was just what I was looking for. -- status: testing -> chatting __ Repoze Bugs <http://bugs.repoze.org/is

[Repoze-dev] [issue169] repoze.profile: useless profile recorded when application is a generator

2010-11-24 Thread jkarp
jkarp added the comment: I tried the changes you made; I don't they fix it. You made it iterate inside __call__, but that is not enough, iteration needs to happen inside self.profiler.runctx() or the profiler won't capture the execution. The change I originally suggested seems to wo

[Repoze-dev] [issue169] repoze.profile: useless profile recorded when application is a generator

2010-11-24 Thread jkarp
New submission from jkarp : When repoze.profile is given an application to wrap that takes the form of a generator, you end up with a useless profile that has only the entries ":1()" and "{method 'disable' of '_lsprof.Profiler' objects}". This is becaus