Just put

$BOLTstopWatch = true;

in index.php before calling the engine.

It tracks various points in the site processing. You can track other
points by inserting

BOLTstopWatch('Some unique message');

at various point in the code.  Say for example, the beginning and
ending lines of a function, to measure how long that function/command
took. It helps to check various approaches to something, to see which
works faster.

Cheers,
Dan


On Thu, Sep 17, 2009 at 7:44 AM, Mark Marijnissen
<[email protected]> wrote:
>
> can somebody tell me how to use the stopwatch anyway?
>
> On Sep 17, 11:09 am, DrunkenMonk <[email protected]> wrote:
>> Ive got a page that takes over 2 seconds to load.
>>
>> StopWatch:
>> Begin Initialization: 0 seconds (1253177255.91)
>> Initialization Complete: 0.032024 seconds (1253177255.94)
>> Page Creation Complete: 2.837155 seconds (1253177258.78)
>>
>> Which is really starting to annoy me. Whats the best way to find where
>> the time is being spent?
>>
>> If anyone wants to hazard a guess, the things happening are:
>>
>> extract a list of categories with {{p}#types::types}, and for each
>> category:
>>     extract a list of items for that category, and apply a template
>> accessed by {::{+p}.template}:
>>         format the item based on the given template
>>
>> Each item is on a different page and is read in it's entirity. I think
>> I may have the problem.
>> Perhaps I should put them all into one page, and use regions...
>>
>> Or, I could just face the music and create a database plugin.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to