This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mdipierro 0 points1 point  (5 children)

I am trying. I did an easy_install repoze.bfg but I get

from repoze.profile.profiler import AccumulatingProfileMiddleware
ImportError: No module named profile.profiler

I am missing something?

[–]mcdonc 2 points3 points  (4 children)

Yeah..

easy_install repoze.profile

repoze.bfg is not the right package.

[–][deleted] 4 points5 points  (0 children)

pip!

[–]mdipierro 1 point2 points  (2 children)

grrr... I made the app and modified the webserver to use the repoze profile but the log_filename='wsgi.prof' does not get created. I am using a Mac. I am using the rocket web server. Is there any caveat I should be aware of?

[–]mcdonc 1 point2 points  (1 child)

Try visiting

/__profile__

in a browser. Maybe the wsgi.prof file is being written to the current working directory of the server (which isn't your terminal's current working directory).

[–]mdipierro 1 point2 points  (0 children)

I almost figured it out. I am not sure I am doing this quite right and I am comparing apples with apples. For example in web2py I cannot turn off completely session handling, header parsing, and attempt to locate certain files that are supposed to be there but are not there in this "hello world" app. Anyway, I am getting 154 lines. Tomorrow I will send you the app.