---

** [tickets:#2262] base: Improve TRACE_ENTER, TRACE_LEAVE macros**

**Status:** review
**Milestone:** 5.2.FC
**Created:** Fri Jan 13, 2017 09:35 AM UTC by Hans Nordebäck
**Last Updated:** Fri Jan 13, 2017 09:35 AM UTC
**Owner:** Hans Nordebäck


Improve TRACE_ENTER, TRACE_LEAVE macros for C++ functions. A new class Trace is 
introduced to make TRACE_ENTER/TRACE_LEAVE consistent. The Trace destructor 
will handle all missing TRACE_LEAVE at runtime (RAII idiom). TRACE_LEAVEs 
without a matching TRACE_ENTER are handled at compile time. To identify all 
missing TRACE_LEAVE zeroes are written as line number:

Jan 13 10:03:48.925438 osafamfd [491:src/amf/amfd/sg_nored_fsm.cc:0325] >> 
susi_success: 1
  :
Jan 13 10:03:48.929056 osafamfd [491:src/amf/amfd/sg_nored_fsm.cc:0000] << 
susi_success

The trace2dot tool and e.g. dotty can be used to get a graphical view of the 
call graph.


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to