Author gvanrossum
Recipients debatem1, ebfe, ezio.melotti, giampaolo.rodola, gvanrossum, merwok, pitrou, tleeuwenburg@gmail.com, ubershmekel
Date 2013-02-11.17:54:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1360605251.69.0.923230354828.issue9285@psf.upfronthosting.co.za>
In-reply-to
Content
Brief comments:

- Please don't call it profile -- we already have a module by that name.

- Please make it so that both the decorator and context manager can specify a file where to dump the raw data -- basically it needs to have the same functionality as the functions run()/runctx()/runcall() (the latter TBD, see issue 17130).

- Please also make Profile object itself the context manager -- all you have to do is add __enter__() and __exit__() that call enable() and disable().  (But this doesn't completely replace the global function, which has more functionality -- it prints the profile or dumps the data).
History
Date User Action Args
2013-02-11 17:54:11gvanrossumsetrecipients: + gvanrossum, pitrou, giampaolo.rodola, ezio.melotti, merwok, tleeuwenburg@gmail.com, ebfe, debatem1, ubershmekel
2013-02-11 17:54:11gvanrossumsetmessageid: <1360605251.69.0.923230354828.issue9285@psf.upfronthosting.co.za>
2013-02-11 17:54:11gvanrossumlinkissue9285 messages
2013-02-11 17:54:11gvanrossumcreate