Revision: 56720
          http://sourceforge.net/p/brlcad/code/56720
Author:   brlcad
Date:     2013-08-09 19:01:42 +0000 (Fri, 09 Aug 2013)
Log Message:
-----------
document the new bu_heap_log() function including the BU_HEAP_PRINT environment 
variable to turn on debug logging during application exit.

Modified Paths:
--------------
    brlcad/trunk/include/bu.h

Modified: brlcad/trunk/include/bu.h
===================================================================
--- brlcad/trunk/include/bu.h   2013-08-09 18:47:43 UTC (rev 56719)
+++ brlcad/trunk/include/bu.h   2013-08-09 19:01:42 UTC (rev 56720)
@@ -3864,6 +3864,24 @@
  */
 BU_EXPORT extern void bu_heap_put(void *ptr, size_t sz);
 
+/**
+ * Convenience typedef for the printf()-style callback function used
+ * during application exit to print summary statistics.
+ */
+typedef int (*bu_heap_func_t)(const char *, ...);
+
+/**
+ * This function registers and returns the current printing function
+ * that will be used during application exit (via an atexit() handler)
+ * if the BU_HEAP_PRINT environment variable is set.  Statistics on
+ * calls to bu_heap_get() and bu_heap_put() will be logged.  If log is
+ * NULL, the currently set function will remain unchanged and will be
+ * returned.
+ */
+BU_EXPORT extern bu_heap_func_t bu_heap_log(bu_heap_func_t log);
+
+
+
 /** @} */
 
 /** @addtogroup log */

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to