mercredi 28 juillet 2010

évaluer la vitesse d'exécution d'une fonction

Voici un petit snippet assez intéressant permettant d'évaluer la vitesse d'exécution d'une fonction sous symfony.

$timer = sfTimerManager::getTimer ('ldap_request'); // Démarrer le timer
// Code
$timer->addTime (); // Arreter le timer et enregistrer le temps

Vous devriez voir apparaitre dans la debug bar ldap_request qui représente le temps d'execution de votre fonction.

19 commentaires:

Anonyme a dit…

Nice dispatch and this fill someone in on helped me alot in my college assignement. Thank you for your information.

Kamagatos a dit…

you are welcome :)

Anonyme a dit…

Piece of writing writing is also a fun, if you be
acquainted with afterward you can write if not it is complex to write.

Also visit my homepage; NFL Jerseys Cheap

Anonyme a dit…

Thank you for the auspicious writeup. It in fact
was a amusement account it. Look advanced to far added agreeable from you!
However, how could we communicate?

Also visit my blog post ... Kris Letang Authentic Jersey

Anonyme a dit…

Nice post. I learn something new and challenging on websites I stumbleupon
on a daily basis. It will always be interesting to read through content from other
authors and practice a little something from their sites.

Visit my webpage; Abercrombie Et Fitch

Anonyme a dit…

I do not know if it's just me or if everyone else experiencing problems with your site. It seems like some of the written text in your content are running off the screen. Can someone else please provide feedback and let me know if this is happening to them too? This might be a issue with my browser because I've had this happen before.

Here is my webpage http://www.tedxyse.Com/

Anonyme a dit…

I'm truly enjoying the design and layout of your website. It's a
very easy on the eyes which makes it much more pleasant for me to
come here and visit more often. Did you hire out a designer
to create your theme? Excellent work!

Review my homepage: Michael Kors Handbags

Anonyme a dit…

Hello, Neat post. There's an issue with your site in internet explorer, may test this? IE still is the market chief and a good part of folks will omit your wonderful writing due to this problem.

my site :: Cheap Louis Vuitton Handbags

Anonyme a dit…

I'm really enjoying the design and layout of your website. It's a very easy on
the eyes which makes it much more enjoyable for me
to come here and visit more often. Did you hire out
a designer to create your theme? Excellent work!

Also visit my web-site - Wholesale Jerseys

Anonyme a dit…

Magnificent beat ! I would like to apprentice whilst you amend your site, how could i subscribe for a weblog website?

The account aided me a appropriate deal. I were tiny bit
familiar of this your broadcast provided shiny clear idea

my web site :: michael kors canada

Anonyme a dit…

This text is worth everyone's attention. Where can I find out more?

My weblog :: Full Report

Anonyme a dit…

Yesterday, while I was at work, my sister stole my apple ipad and tested to see if it can survive
a 30 foot drop, just so she can be a youtube sensation.
My iPad is now broken and she has 83 views.

I know this is entirely off topic but I had to share it with someone!

Have a look at my website :: extra resources

Anonyme a dit…

Hurrah, that's what I was searching for, what a material! present here at this blog, thanks admin of this web site.

My web site - Cheap Oakley Sunglasses

Anonyme a dit…

What i do not understood is in fact how you are now not actually much more smartly-liked than you may be right
now. You're very intelligent. You know thus considerably on the subject of this topic, made me for my part imagine it from a lot of various angles. Its like men and women don't seem to be involved unless it is something to do with Woman gaga!
Your personal stuffs great. Always maintain it up!

Feel free to visit my webpage: Nike Free Run Sko

Anonyme a dit…

Just desire to say your article is as surprising. The clarity in your publish is simply cool and i could think you're an expert on this subject. Well with your permission let me to seize your RSS feed to keep up to date with coming near near post. Thank you one million and please continue the rewarding work.

Also visit my homepage :: Sac a main Guess ()

Anonyme a dit…

I like the valuable information you provide in your articles.
I'll bookmark your blog and check again here regularly. I am quite sure I will learn many new stuff right here! Good luck for the next!

Feel free to visit my website: Nike Free

Anonyme a dit…

What's up to all, the contents existing at this web site are in fact remarkable for people knowledge, well, keep up the good work fellows.

my webpage; Cheap Nfl jerseys

Anonyme a dit…

Do you mind if I quote a couple of your articles as long as I provide
credit and sources back to your webpage? My website is in the exact same niche as
yours and my visitors would genuinely benefit
from some of the information you provide here.
Please let me know if this alright with you. Thanks!

Also visit my homepage: Michael Kors Outlet

Anonyme a dit…

I have read so many articles concerning the blogger lovers but this post is
genuinely a pleasant piece of writing, keep it up.

Here is my website Nike Black Blazers