473,327 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

definition of sub-functions in the hotshot profiler

what is the definition of sub-functions in the hotshot profiler? and just
as important what is not sub-functions

from the output I can see that functions I made and functions in
/usr/lib/python2.4/textwrap.py is considered sub-functions, but I call a
lot of other functions in the python library and they are not in the
output, so how come textwrap is?
--code

import hotshot, hotshot.stats
prof = hotshot.Profile("openAnswerWindow.prof")
prof.runcall(self.openAnswerWindow)
prof.close()
stats = hotshot.stats.load("openAnswerWindow.prof")
stats.sort_stats('time', 'calls')
stats.print_stats()

--output

195 function calls in 0.005 CPU seconds

Ordered by: internal time, call count

ncalls tottime percall cumtime percall filename:lineno(function)
1 0.001 0.001 0.005 0.005 /home/lars/skole/scriptsprog/rapport/code/m/kw/KeywordWindow.py:399(openAnswerWindow)
18 0.001 0.000 0.002 0.000 m/kw/AnswerWindow.py:22(setText)
9 0.001 0.000 0.001 0.000 include/FancyListViewItem.py:7(__init__)
1 0.000 0.000 0.003 0.003 m/kw/AnswerWindow.py:53(setQuestionItem)
18 0.000 0.000 0.001 0.000 /usr/lib/python2.4/textwrap.py:292(wrap)
18 0.000 0.000 0.000 0.000 /usr/lib/python2.4/textwrap.py:265(wrap)
9 0.000 0.000 0.001 0.000 m/kw/AnswerWindow.py:11(__init__)
18 0.000 0.000 0.000 0.000 /usr/lib/python2.4/textwrap.py:94(__init__)
9 0.000 0.000 0.001 0.000 /home/lars/skole/scriptsprog/rapport/code/include/IntColumnListViewItem.py:7(__init__)
36 0.000 0.000 0.000 0.000 m/kw/AnswerWindow.py:29(text)
1 0.000 0.000 0.000 0.000 /home/lars/skole/scriptsprog/rapport/code/m/kw/QuestionSetModel.py:378(getAllAnswers)
18 0.000 0.000 0.000 0.000 /usr/lib/python2.4/textwrap.py:131(_split)
18 0.000 0.000 0.000 0.000 /usr/lib/python2.4/textwrap.py:114(_munge_whitespace)
18 0.000 0.000 0.000 0.000 /usr/lib/python2.4/textwrap.py:192(_wrap_chunks)
2 0.000 0.000 0.000 0.000 m/kw/AnswerWindow.py:48(setTitle)
1 0.000 0.000 0.000 0.000 m/kw/AnswerWindow.py:71(clearAll)
0 0.000 0.000 profile:0(profiler)
Mar 23 '06 #1
0 1065

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Wildpeaks | last post by:
My brain must be running slow because of New Year, but I'm missing the trick to define fields for a package. In php, I'd do: ---- <?php class MyObj{ var $param1; function...
5
by: Laser Lu | last post by:
Can we define events in a class when coding using VBScript in ASP? I still have the second question, even if the answer is positive. That is whether the two standard events of a calss module in VB,...
9
by: Dave H | last post by:
Hello, I have a query regarding definition lists. Is it good practice semantically to use the dt and dd elements to mark up questions and answers in a frequently asked questions list, or FAQ? ...
44
by: Steven T. Hatton | last post by:
This may seem like such a simple question, I should be embarrassed to ask it. The FAQ says an object is "A region of storage with associated semantics." OK, what exactly is meant by "associated...
7
by: Charles Law | last post by:
Can anyone convert the following C++ interface definition to VB.NET? I have had a go, but I cannot make the Load function work and the IsDirty function gives an error (Object not set to an...
4
by: Murph | last post by:
Hi, I'm new to ASP.NET and have a problem which i'm hoping will be easy to answer... i have only used VB, HTML and Flash up until now! I am designing an ASP page which uses OleDb to retrieve...
2
by: Agnes | last post by:
every time i write my code, I need to right click mouse , and set collapse to definition]. How I can i set it globally or automically ?? thanks from agnes
4
by: Internet User | last post by:
What is the definition of a field in VB.net (other than database functions)? How does one distinguish between a "field" and a "property"? Or are fields and properties related to each other in some...
10
by: akselo | last post by:
Hi folks, I am working on a routine that will select a sample of parcels from a table. Each parcel belongs to a census tract, and depending on which tract, a certain calculation is applied. The...
18
by: dspfun | last post by:
Hi! The words "expression" and "statement" are often used in C99 and C- textbooks, however, I am not sure of the clear defintion of these words with respect to C. Can somebody provide a sharp...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.