Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Feature for Debug Window

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
jotango
Smarty Rookie


Joined: 20 Apr 2005
Posts: 13

PostPosted: Tue Aug 30, 2005 7:15 pm    Post subject: Feature for Debug Window Reply with quote

I really like the feature that shows me how long the various parts of the template took to load (e.g. files). However, this level of detail is not enough and I frequently resort to microtiming stuff. It would be really great if the smarty debug window would offer more info about the currently generated page:

- which loops took how long (while, foreach etc)
- which query took how long

Thanks!

Jan
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Aug 30, 2005 7:20 pm    Post subject: Reply with quote

Have you thought of using a PHP code profiler?
Back to top
View user's profile Send private message Visit poster's website
jotango
Smarty Rookie


Joined: 20 Apr 2005
Posts: 13

PostPosted: Tue Aug 30, 2005 7:23 pm    Post subject: Reply with quote

No, not really. Zend seemed a bit expensive right now. Can you recommend one? That would be very helpful!

Thanks!
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Aug 30, 2005 7:50 pm    Post subject: Reply with quote

The point is, Smarty isn't really the place to be putting profiling code, it has performance costs. You won't get your query times from Smarty anyways. A php-level debugger would be the best place to profile your code. The Smarty compiled templates should show up there as well. I don't have a recommendation, you'll have to do some research.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP