gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, objecturi, updated. dbdee9eb7b0bf22f7


From: Sandro Santilli
Subject: [Gnash-commit] [SCM] Gnash branch, objecturi, updated. dbdee9eb7b0bf22f77325dc8a7f953670e68f093
Date: Thu, 23 Sep 2010 08:48:44 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, objecturi has been updated
       via  dbdee9eb7b0bf22f77325dc8a7f953670e68f093 (commit)
       via  f685d83b3c3b546a14de21ccb975f7c6bfb0facd (commit)
      from  a0f2a194599a84598b58312e30df108a051903be (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=dbdee9eb7b0bf22f77325dc8a7f953670e68f093


commit dbdee9eb7b0bf22f77325dc8a7f953670e68f093
Author: Sandro Santilli <address@hidden>
Date:   Thu Sep 23 10:43:57 2010 +0200

    Default to no debugging

diff --git a/libbase/string_table.cpp b/libbase/string_table.cpp
index 0d3d1b6..b873337 100644
--- a/libbase/string_table.cpp
+++ b/libbase/string_table.cpp
@@ -20,7 +20,7 @@
 #include "string_table.h"
 #include <boost/algorithm/string/case_conv.hpp>
 
-#define DEBUG_STRING_TABLE 1
+//#define DEBUG_STRING_TABLE 1
 //#define GNASH_PARANOIA_LEVEL 3
 
 #ifdef DEBUG_STRING_TABLE
diff --git a/libcore/PropertyList.cpp b/libcore/PropertyList.cpp
index 7ac2f76..21ae855 100644
--- a/libcore/PropertyList.cpp
+++ b/libcore/PropertyList.cpp
@@ -38,7 +38,7 @@
 //#define GNASH_DEBUG_PROPERTY 1
 
 // Define this to get stats of property lookups 
-#define GNASH_STATS_PROPERTY_LOOKUPS 1
+//#define GNASH_STATS_PROPERTY_LOOKUPS 1
 
 
 #ifdef GNASH_STATS_PROPERTY_LOOKUPS

http://git.savannah.gnu.org/cgit//commit/?id=f685d83b3c3b546a14de21ccb975f7c6bfb0facd


commit f685d83b3c3b546a14de21ccb975f7c6bfb0facd
Author: Sandro Santilli <address@hidden>
Date:   Thu Sep 23 10:28:45 2010 +0200

    Use the generic KeyLookup class for stats gathering

diff --git a/libcore/asobj/AsBroadcaster.cpp b/libcore/asobj/AsBroadcaster.cpp
index a6fb847..0339289 100644
--- a/libcore/asobj/AsBroadcaster.cpp
+++ b/libcore/asobj/AsBroadcaster.cpp
@@ -31,9 +31,7 @@
 //#define GNASH_DEBUG_BROADCASTER 1
 
 #ifdef GNASH_DEBUG_BROADCASTER
-# include <iostream>
-# include <iomanip>
-# include <map>
+# include "Stats.h"
 #endif
 
 namespace gnash {
@@ -118,14 +116,13 @@ public:
     /// Call a method on the given value
     void operator()(const as_value& v)
     {
-#ifdef GNASH_DEBUG_BROADCASTER
-        static BroadcasterStats stats(getStringTable(_fn));
-#endif
 
         boost::intrusive_ptr<as_object> o = v.to_object(getGlobal(_fn));
         if ( ! o ) return;
 
 #ifdef GNASH_DEBUG_BROADCASTER
+        static stats::KeyLookup stats("BroadcasterVisitor call operator",
+            getStringTable(_fn), 1);
         stats.check(_eventURI.name);
 #endif
 
@@ -432,10 +429,6 @@ asbroadcaster_broadcastMessage(const fn_call& fn)
 
     BroadcasterVisitor visitor(fn); 
     foreachArray(*listeners, visitor);
-#ifdef GNASH_DEBUG_BROADCASTER
-    std::cerr << "BradcasterVisitor dispatched to "
-        << visitor.eventDispatched() << " listeners" << std::endl;
-#endif
 
     const size_t dispatched = visitor.eventsDispatched();
 

-----------------------------------------------------------------------

Summary of changes:
 libbase/string_table.cpp        |    2 +-
 libcore/PropertyList.cpp        |    2 +-
 libcore/asobj/AsBroadcaster.cpp |   13 +++----------
 3 files changed, 5 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]