[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog libbase/GC.cpp libbase/GC.h
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog libbase/GC.cpp libbase/GC.h |
Date: |
Tue, 03 Jul 2007 16:06:20 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/07/03 16:06:20
Modified files:
. : ChangeLog
libbase : GC.cpp GC.h
Log message:
* libbase/GC.{cpp,h}: define 3 verbosity levels for the GC
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3650&r2=1.3651
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.cpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.h?cvsroot=gnash&r1=1.15&r2=1.16
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3650
retrieving revision 1.3651
diff -u -b -r1.3650 -r1.3651
--- ChangeLog 3 Jul 2007 15:17:32 -0000 1.3650
+++ ChangeLog 3 Jul 2007 16:06:19 -0000 1.3651
@@ -1,3 +1,7 @@
+2007-07-03 Sandro Santilli <address@hidden>
+
+ * libbase/GC.{cpp,h}: define 3 verbosity levels for the GC
+
2007-07-03 Udo Giacomozzi <address@hidden>
* gui/NullGui.cpp: implement correct timing
Index: libbase/GC.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/GC.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- libbase/GC.cpp 2 Jul 2007 22:48:20 -0000 1.4
+++ libbase/GC.cpp 3 Jul 2007 16:06:20 -0000 1.5
@@ -16,7 +16,7 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-/* $Id: GC.cpp,v 1.4 2007/07/02 22:48:20 strk Exp $ */
+/* $Id: GC.cpp,v 1.5 2007/07/03 16:06:20 strk Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -73,7 +73,7 @@
void
GC::cleanUnreachable()
{
-#ifdef GNASH_GC_DEBUG
+#ifdef GNASH_GC_DEBUG > 1
size_t deleted = 0;
log_debug(_("GC %p: SWEEP SCAN"), (void*)this);
#endif
@@ -122,7 +122,7 @@
#endif
#ifdef GNASH_GC_DEBUG
- log_debug(_("Starting collector: " SIZET_FMT " collectables"),
_resList.size());
+ log_debug(_("GC %p Starting collector: " SIZET_FMT " collectables"),
(void *)this, _resList.size());
#endif // GNASH_GC_DEBUG
#ifndef NDEBUG
Index: libbase/GC.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/GC.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- libbase/GC.h 3 Jul 2007 15:10:08 -0000 1.15
+++ libbase/GC.h 3 Jul 2007 16:06:20 -0000 1.16
@@ -31,7 +31,12 @@
#endif
// Define the following macro to enable GC verbosity
-// Define to > 1 to have info printed about scan of already reachable objects
+// Verbosity levels:
+// 1 - print stats about how many resources are registered and how many
+// are deleted, everytime the GC collector runs.
+// 2 - print a message for every GcResource being registered and being
deleted
+// 3 - print info about the mark scan
+//
//#define GNASH_GC_DEBUG 1
#ifdef GNASH_GC_DEBUG
@@ -101,14 +106,14 @@
if ( _reachable )
{
-#if GNASH_GC_DEBUG > 1
+#if GNASH_GC_DEBUG > 2
log_debug(_("Instance %p of class %s already reachable,
setReachable doing nothing"),
(void*)this, typeid(*this).name());
#endif
return;
}
-#if GNASH_GC_DEBUG > 1
+#if GNASH_GC_DEBUG > 2
log_debug(_("Instance %p of class %s set to reachable, scanning
reachable resources from it"),
(void*)this, typeid(*this).name());
#endif
@@ -270,7 +275,7 @@
/// Mark all reachable resources
void markReachable()
{
-#ifdef GNASH_GC_DEBUG
+#ifdef GNASH_GC_DEBUG > 2
log_debug(_("GC %p: MARK SCAN"), (void*)this);
#endif
_root.markReachableResources();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog libbase/GC.cpp libbase/GC.h,
Sandro Santilli <=