By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,193 Members | 843 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,193 IT Pros & Developers. It's quick & easy.

monitoring function call in debug logs

P: n/a
Hello,
I have a logging system and I want to add log for every call and
return from function,
Have any idea or know any tools?
(by the way performance is big issue in this system but lets put it
aside for now).

Mar 20 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
ro**********@gmail.com wrote:
Hello,
I have a logging system and I want to add log for every call and
return from function,
Have any idea or know any tools?
(by the way performance is big issue in this system but lets put it
aside for now).
Not in standard C without instrumenting the code. You tools may provide
a means to do this, check your documentation for profiler options.

--
Ian Collins.
Mar 20 '07 #2

P: n/a
On 20 Mar, 08:55, royi.scal...@gmail.com wrote:
Hello,
I have a logging system and I want to add log for every call and
return from function,
Have any idea or know any tools?
(by the way performance is big issue in this system but lets put it
aside for now).
This is a text book example of what's often termed Aspect Oriented
Programming. There are fairly good tools to do this in Java, but not
really much in C.

You could look at AspectC - there are two sets of software called
this, but the C (rather than C++) version is at aspectc.net. The
approach is essentially a preprocessing one.

Mar 20 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.