[Repoze-dev] repoze.profile and cProfile

Tres Seaver tseaver at palladion.com
Mon Mar 17 21:22:08 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alec Flett wrote:
> Enclosed is a small patch to make repoze.profile use cProfile if it is  
> available. The APIs should be the same, and this appears to work on OS  
> X / Leopard's default python 2.5

Thanks for the patch.  It needs to adjust both places where the profiler
is instantiated (the original one gets tossed by default after the first
request).  I'm attaching an updated patch for those playing along at home.

Merged for repoze.profile 0.4.  Thanks again!


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH3xlA+gerLs4ltQ4RAjM2AJ4lj2JYNhSkNiJBk440f6Ow0Qnw9gCeMBqo
2k1a9P772IACrJ/2TwfZmak=
=nbwU
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alecf_updated.patch
Type: text/x-patch
Size: 453 bytes
Desc: not available
Url : http://lists.repoze.org/pipermail/repoze-dev/attachments/20080317/d2cbd450/attachment.bin 


More information about the Repoze-dev mailing list