Here's a typical CherryPy profile - does anything here look odd?  Can
anyone interpret what's taking the longest here?  I have no experience
with Python profiling...

----------------------------------
Sun May  6 00:22:07 2007    /var/log/CherryPy/cp_0016.prof

         90430 function calls (69241 primitive calls) in 3.660 CPU
seconds

   Ordered by: cumulative time

   ncalls  tottime  percall  cumtime  percall
filename:lineno(function)
        1    0.000    0.000    3.660    3.660 <string>:2(default)
        1    0.000    0.000    3.660    3.660 profile:0(<bound method
Request._run of <cherrypy._cphttptools.Request object at 0x47e38fcc>>)
        1    0.000    0.000    3.660    3.660 controllers.py:
325(expose)
        1    0.010    0.010    3.660    3.660 database.py:298(so_rwt)
        1    0.000    0.000    3.660    3.660 _cphttptools.py:82(_run)
        1    0.000    0.000    3.660    3.660 <string>:
4(run_with_transaction)
        1    0.000    0.000    3.660    3.660 _cphttptools.py:
241(main)
        1    0.000    0.000    3.650    3.650 <string>:4(_expose)
        1    0.000    0.000    3.640    3.640 controllers.py:
348(<lambda>)
        1    0.000    0.000    3.640    3.640 controllers.py:
368(_execute_func)
        1    0.000    0.000    3.550    3.550 kidsupport.py:
142(render)
        1    0.000    0.000    3.550    3.550 base.py:99(render)
        1    0.000    0.000    3.550    3.550 controllers.py:
27(_process_output)
   349/25    0.010    0.000    3.530    0.141 :0(join)
        1    0.000    0.000    3.530    3.530 serialization.py:
102(serialize)
        1    0.000    0.000    3.530    3.530 kid/__init__.py:
274(serialize)
     1325    0.080    0.000    3.520    0.003 serialization.py:
302(generate)
     1225    0.100    0.000    3.340    0.003 serialization.py:
138(format_stream)
 3665/914    0.150    0.000    3.050    0.003 parser.py:207(_coalesce)
      914    0.010    0.000    2.970    0.003 serialization.py:
469(inject_meta_tags)
 7327/911    0.160    0.000    2.960    0.003 parser.py:172(_track)
 2732/911    0.070    0.000    2.940    0.003 filter.py:
23(apply_matches)
      6/2    0.100    0.017    2.660    1.330 parser.py:94(expand)
      919    0.000    0.000    2.520    0.003 master.py:26(_pull)
      4/3    0.000    0.000    2.440    0.813 meta.py:101(lockwidget)
      4/3    0.000    0.000    2.440    0.813 kidsupport.py:
176(transform)
      4/3    0.000    0.000    2.440    0.813 base.py:228(display)
        9    0.000    0.000    1.790    0.199 model.py:
235(derived_uri)
        9    0.000    0.000    1.790    0.199 model.py:245(derive)
        6    0.000    0.000    1.670    0.278 Image.py:1250(resize)
       66    0.000    0.000    1.160    0.018
display_sidebar_projects_widget.py:25(_pull)
        6    1.110    0.185    1.110    0.185 :0(stretch)
       79    0.000    0.000    0.790    0.010
display_main_content_projects_widget.py:25(_pull)
        6    0.000    0.000    0.560    0.093 ImageFile.py:115(load)
       57    0.540    0.009    0.540    0.009 :0(decode)
      670    0.020    0.000    0.230    0.000 display_links_widget.py:
25(_pull)
  842/334    0.030    0.000    0.190    0.001 <string>:1(<lambda>)
10325/1819    0.170    0.000    0.180    0.000 parser.py:154(_pull)
        1    0.000    0.000    0.160    0.160 parser.py:419(feed)
       19    0.000    0.000    0.160    0.008 parser.py:375(__iter__)
        1    0.000    0.000    0.160    0.160 parser.py:
341(_buildForeign)
        1    0.030    0.030    0.160    0.160 :0(ParseFile)
       19    0.000    0.000    0.160    0.008 parser.py:
358(_expat_stream)
        1    0.000    0.000    0.160    0.160 :0(Parse)
        1    0.000    0.000    0.160    0.160 pyexpat.c:
878(ExternalEntityRef)
       18    0.000    0.000    0.160    0.009 parser.py:127(strip)
      896    0.010    0.000    0.150    0.000 sitetemplate.py:
66(_match_func)
     1763    0.070    0.000    0.130    0.000 pyexpat.c:854(Default)
        6    0.000    0.000    0.100    0.017 JpegImagePlugin.py:
385(_save)
        6    0.000    0.000    0.100    0.017 Image.py:1360(save)
        6    0.000    0.000    0.100    0.017 ImageFile.py:458(_save)
        6    0.100    0.017    0.100    0.017 :0(encode_to_file)
      185    0.010    0.000    0.100    0.001 main.py:902(get)
        1    0.000    0.000    0.090    0.090 controllers.py:
87(default)
        1    0.000    0.000    0.090    0.090 errorhandling.py:
68(try_call)
       22    0.000    0.000    0.080    0.004 joins.py:
197(performJoin)
     1436    0.060    0.000    0.080    0.000 serialization.py:
723(tagname)
     6186    0.080    0.000    0.080    0.000 :0(isinstance)
2171/1633    0.040    0.000    0.070    0.000 :0(getattr)
      610    0.010    0.000    0.070    0.000 format.py:322(filter)
      702    0.010    0.000    0.060    0.000 serialization.py:
454(is_formatted)
       55    0.010    0.000    0.060    0.001 :0(sort)
       31    0.000    0.000    0.060    0.002 joins.py:
77(_applyOrderBy)
      607    0.010    0.000    0.060    0.000 element.py:58(append)
      8/4    0.000    0.000    0.060    0.015 meta.py:119(widget_init)
        9    0.010    0.001    0.060    0.007 joins.py:
138(performJoin)
     1763    0.020    0.000    0.060    0.000 parser.py:450(_default)
      610    0.010    0.000    0.060    0.000 format.py:
329(text_filter)
      108    0.010    0.000    0.050    0.000
display_links_object_projects_widget.py:25(_pull)
      609    0.020    0.000    0.050    0.000 serialization.py:
457(is_inline)
      254    0.000    0.000    0.050    0.000 joins.py:104(cmper)
     3827    0.050    0.000    0.050    0.000 :0(startswith)
      610    0.030    0.000    0.050    0.000 format.py:
398(simple_whitespace)
     1497    0.020    0.000    0.040    0.000 parser.py:
194(to_unicode)
     4669    0.040    0.000    0.040    0.000 :0(append)
       41    0.010    0.000    0.040    0.001 dbconnection.py:
218(_runWithConnection)
       13    0.000    0.000    0.040    0.003 main.py:939(_init)
       48    0.000    0.000    0.040    0.001 main.py:
1154(_SO_selectInit)
        5    0.010    0.002    0.040    0.008 sresults.py:
151(__iter__)
      695    0.030    0.000    0.030    0.000 serialization.py:
811(qname)
     2557    0.030    0.000    0.030    0.000 :0(pop)
       46    0.030    0.001    0.030    0.001 :0(execute)
       46    0.000    0.000    0.030    0.001 dbconnection.py:
296(_executeRetry)
      810    0.010    0.000    0.030    0.000 main.py:
970(_SO_loadValue)
        5    0.010    0.002    0.030    0.006 base.py:269(stdvars)
      119    0.000    0.000    0.030    0.000 template_util.py:
135(make_attrib)
        1    0.000    0.000    0.030    0.030 widgets.py:251(__init__)
       43    0.000    0.000    0.030    0.001 dbconnection.py:
710(next)
  407/140    0.000    0.000    0.030    0.000 template_util.py:
154(generate_attrib)
        5    0.000    0.000    0.030    0.006 kidsupport.py:
56(load_template)
        1    0.000    0.000    0.020    0.020 widgets.py:206(__init__)
       19    0.000    0.000    0.020    0.001 config.py:210(get)
        2    0.000    0.000    0.020    0.010 model.py:
21(has_relationship_type)
        5    0.000    0.000    0.020    0.004 utils.py:45(get_locale)
       31    0.000    0.000    0.020    0.001 dbconnection.py:
319(queryAll)
        9    0.000    0.000    0.020    0.002 Image.py:1879(open)
        5    0.000    0.000    0.020    0.004 utils.py:54(_get_locale)
       40    0.000    0.000    0.020    0.001 config.py:107(get)
       10    0.000    0.000    0.020    0.002 dbconnection.py:
339(_queryOne)
      252    0.020    0.000    0.020    0.000 database.py:220(__get__)
------------------------------

On May 6, 12:58 pm, Christoph Zwerschke <[EMAIL PROTECTED]> wrote:
> W-Mark Kubacki wrote:
> > AFAIK, the bug is in <=kid-0.9.5. As this is the latest version released
> > you have to patch 'kid' by hand. [1]
>
> Don't worry. With the latest TurboKid it's not necessary to patch Kid.
> I.e. you need to *either* update TurboKid *or* patch Kid.
>
> -- Chris


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to