473,386 Members | 1,886 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,386 software developers and data experts.

Re: some kind of trace facility ?

n Sat, Aug 9, 2008 at 4:14 PM, Stef Mientki <st**********@gmail.comwrote:
hello,

I want to investigate on a regular base the flow of my Python (most of them
using wxPython) programs.
So I want to have some log facilty, that logs things like
- every time a function / method is called
- the time spent in that function / method (or even better start / finish
time)
- in case the function / method has some predefined variables, the values of
these variables
- the caller

As an extra condition, I'm only interested in my own program modules
(located in a specific subdirectory).

Is there a module available that can perform such a task ?
Any hints to get started ?

thanks,
Stef Mientki
As is often the case, I have never used this technique, but have read about it:

You may want to investigate a logging decorator. Python's Decorator
module has a decorator factory that should allow you to log at least
the calls. I'm not sure it would help you much with the time the
method took, but I could very well be wrong about that.

--
Stand Fast,
tjg. [Timothy Grant]
Aug 10 '08 #1
0 648

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

Similar topics

4
by: Ashish | last post by:
Hello, Is there a way to print stack trace in a c++ application? I would like to do this before asserting in a situation that can't be handled. Thanks, -Ashish
9
by: GDCII | last post by:
Does anyone know what the DB2 equivalent is for Oracle:Trace or SQl Server Profiler ? Thanks Gary
1
by: Stu | last post by:
Can somebody please explain what the facility paramter is in the openlog() system call. void openlog(const char *ident, int logopt, int facility); The solaris man page says this: The...
5
by: martin | last post by:
Hi, The trace class seems to me to be very usefull however there are a few features of it that have to confused. I am using visual studio 2003. the IDE will not let me write ...
0
by: Henry | last post by:
Dear Group: In testing web applicaiton with trace enabled, I noticed that the content of the trace.axd is reset/cleared automatically on every application restart. Can someone advice if that is...
2
by: GMK | last post by:
HI ALL I'M COMING FROM A FOX PRO BACKGROUND WHERE I COULD IN A VERY EASY WAY CREATE A SEACH FACILITY BY PRESSING N F1 AND ANOTHER WINDOW WILL DIRECTLY APPEAR WHICH WOULD LET THE USER TO SEARCH...
9
by: Joe Rattz | last post by:
I can't seem to get to trace.axd. I have turned tracing on in web.config. Here is how I currently have i configured: <trace enabled="true" requestLimit="10" pageOutput="false"...
1
by: aimslife | last post by:
Hi, I created simple DLL project using vs2k5. I need to print debug statements in ouput window during debug mode. I tried to use TRACE macro in project and include windows.h header file but...
8
by: nospam | last post by:
I have a C binary which is built from numerous .c and .h source files. How can I trace through which functions are being called when I execute the binary? Ideally I'd like to just see the function...
2
by: Stef Mientki | last post by:
hello, I want to investigate on a regular base the flow of my Python (most of them using wxPython) programs. So I want to have some log facilty, that logs things like - every time a function /...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.