monitoring function call in debug logs

R

royi.scalemp

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).
 
I

Ian Collins

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.
 
M

mark_bluemel

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top