wrong debug time accumulators

Author Message

Marko Žmak

Monday 23 January 2006 3:14:20 pm

I've been doing some optimizations on my site, so I started examining eZ timing points. I found out that the time accumulators displayed on the bottom are not consistent. Total execution time doesn't seem to be the sum of all acumulators. Why? Here's the ouptut:

Timing points:
Checkpoint Elapsed Rel. Elapsed Memory Rel. Memory
Module start 'content' 0.0000 sec 0.0721 sec 0.0000KB 0.0000KB
Module end 'content' 0.0721 sec 0.8162 sec 0.0000KB 0.0000KB
End 0.8883 sec 0.0000KB 0.0000KB
Total runtime: 3.3168 sec
Time accumulators:
Accumulator Elapsed Percent Count Average
ini_load
Load cache 0.0328 sec 0.8468% 11 0.0030 sec
FindInputFiles 0.0192 sec 0.4947% 11 0.0017 sec
Mysql Total
Mysql_queries 0.0151 sec 0.3898% 32 0.0005 sec
Looping result 0.0141 sec 0.3643% 31 0.0005 sec
TS translator
TS init 0.0169 sec 0.4361% 4 0.0042 sec
TS cache load 0.0099 sec 0.2547% 4 0.0025 sec
TS context load 0.0072 sec 0.1848% 4 0.0018 sec
Template Total 0.8794 sec 22.7% 2 0.4397 sec
Template load 0.0216 sec 0.5571% 2 0.0108 sec
Template processing 0.8571 sec 22.1066% 2 0.4285 sec
Template load and register function 0.0049 sec 0.1265% 3 0.0016 sec
override
Cache load 0.0176 sec 0.4532% 3 0.0059 sec
XML
Image XML parsing 0.0093 sec 0.2396% 3 0.0031 sec
Sytem overhead
Fetch class attribute name 0.0018 sec 0.0466% 1 0.0018 sec
class_abstraction
Instantiating content class attribute 0.0027 sec 0.0705% 1 0.0027 sec
Total script time: 3.8771 sec

Acourding to whis, Total time should be 1,9 sec, bu it's 3,8. How come? Where's the missing time?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Mark Marsiglio

Monday 13 February 2006 10:49:54 pm

I notice this issue as well. I am running a site that, when cached, will load anywhere from .20 to .80 seconds. When it is at .20, the accumulators add up to the right amount of seconds, and equal 100%.

When at .80 seconds total, the accumulators still add up to .20, and they total only about 25%. It would appear that some loads are seeing some phantom time loss.

I am running ez on some other servers that do not seem to experience this problem. They are actually slower servers, but render pages in as little as .08 seconds.

In all cases, the servers are running a PHP Acccelerator. In the most recent case the hardware is a 8-core Xeon server with 4gb RAM, so the processing horsepower seems like it should render the page a little better.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 01:01:00
Script start
Timing: Jan 19 2025 01:01:00
Module start 'layout'
Timing: Jan 19 2025 01:01:00
Module start 'content'
Timing: Jan 19 2025 01:01:01
Module end 'content'
Timing: Jan 19 2025 01:01:01
Script end

Main resources:

Total runtime0.7451 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 590.2891152.6250
Module start 'layout' 0.00890.0039 742.914139.4453
Module start 'content' 0.01280.7308 782.3594545.2969
Module end 'content' 0.74360.0014 1,327.656312.1641
Script end 0.7450  1,339.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4709160.0002
Check MTime0.00140.1889160.0001
Mysql Total
Database connection0.00050.069910.0005
Mysqli_queries0.685091.9406540.0127
Looping result0.00060.0803520.0000
Template Total0.704594.520.3522
Template load0.00270.360820.0013
Template processing0.701794.183520.3509
Template load and register function0.00010.015210.0001
states
state_id_array0.00150.201610.0015
state_identifier_array0.00080.105620.0004
Override
Cache load0.00220.2929430.0001
Sytem overhead
Fetch class attribute can translate value0.00120.157820.0006
Fetch class attribute name0.00180.235940.0004
XML
Image XML parsing0.00140.188420.0007
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00100.1314230.0000
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs