473,805 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python profiler

Hello All,

I am trying to find a profiler that can measure the
memory usage in a Python program. I would like to
gather some statistics about object usages. For
example, I would like to be able to see how much time
it takes to search for an item in a dict object, how
many times it has to access the symbol table to
retrieve a specific item, and things like that.

Thanks,

Dave

_______________ _______________ ____
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
Sep 30 '05 #1
2 2373
In message <ma************ *************** **********@pyth on.org>, Celine
& Dave <zh******@yahoo .com> writes
I am trying to find a profiler that can measure the
memory usage in a Python program.
I would like to
gather some statistics about object usages. For
Python Memory Validator.
Apply for beta here:

http://www.softwareverify.com/beta.php?product=PMVB000
example, I would like to be able to see how much time
it takes to search for an item in a dict object,
That is something for a performance profiler, not a memory profiler.
Python Performance Validator will help you there.
how
many times it has to access the symbol table to
retrieve a specific item, and things like that.


Python Coverage Validator will help you there.
Python Performance Validator will help you there.

http://www.softwareverify.com

Windows NT/2000/XP/and above(vista, etc)

Stephen
--
Stephen Kellett
Object Media Limited http://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting
Oct 1 '05 #2
look in the gc module ...

Celine & Dave wrote:
Hello All,

I am trying to find a profiler that can measure the
memory usage in a Python program. I would like to
gather some statistics about object usages. For
example, I would like to be able to see how much time
it takes to search for an item in a dict object, how
many times it has to access the symbol table to
retrieve a specific item, and things like that.

Thanks,

Dave

_______________ _______________ ____
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

Oct 4 '05 #3

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

Similar topics

3
2764
by: Nicolas Lehuen | last post by:
Hi, Is it me, or does anyone else get significantly better pystone results under Cygwin versus the standard Win32 build ? CYGWIN 1.5.6 + python 2.3.3-1 : $ time python /usr/lib/python2.3/hotshot/stones.py Pystone(1.1) time for 50000 passes = 2.344 This machine benchmarks at 21331.1 pystones/second 850004 function calls in 4.371 CPU seconds
1
1457
by: Scott Brady Drummonds | last post by:
Hi, everyone, I have a tool I've written in Python that is taking many hours to run but I believe could be running in less than an hour with a more clever implementation. As such, I'm trying to use the profiler to spot the weak points. However, when following the instructions for using the profiler at http://www.python.org/doc/current/lib/profile.html, I'm not having any luck. I've tried letting the program run for about five or ten...
6
3757
by: cournape | last post by:
Hi there, I have some scientific application written in python. There is a good deal of list processing, but also some "simple" computation such as basic linear algebra involved. I would like to speed things up implementing some of the functions in C. So I need profiling. I first tried to use the default python profiler, but profiling my application multiplies the execution time by a factor between 10 and 100 ! So I decided to give a...
1
1405
by: Brian Quinlan | last post by:
I have a misinformed theory that I'd like to share with the list. I believe that profiler calibration no longer makes sense in Python 2.4 because C functions are tracked and they have a different call overhead than Python functions (and calibration is done only using Python functions). Here is my reasoning (in code form): % c:\python24\python .... >>> import profile
3
2114
by: looping | last post by:
Hi, I noticed a big speed improvement in some of my script that use os.walk and I write a small script to check it: import os for path, dirs, files in os.walk('D:\\FILES\\'): pass Results on Windows XP after some run to fill the disk cache (with ~59000 files and ~3500 folders): Python 2.4.3 : 45s
0
289
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 407 open ( +1) / 3484 closed ( +5) / 3891 total ( +6) Bugs : 936 open ( +5) / 6363 closed (+14) / 7299 total (+19) RFE : 246 open ( +1) / 244 closed ( +0) / 490 total ( +1) New / Reopened Patches ______________________
1
3181
by: Davy | last post by:
Hi all, Is there any Python Profiler GUI like Matlab? I found the Matlab Profiler is very intuitive and easy to use. Best regards, Davy
0
10607
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10104
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7645
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5541
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4317
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3843
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.