]> err.no Git - sope/commitdiff
added some profiling code from OGo
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Mon, 14 Mar 2005 12:49:41 +0000 (12:49 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Mon, 14 Mar 2005 12:49:41 +0000 (12:49 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@651 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-appserver/NGObjWeb/ChangeLog
sope-appserver/NGObjWeb/Version
sope-appserver/NGObjWeb/WOApplication.m

index 807f93c84cdb75fbe1ba19907a3ec5409c7b71bc..8295b363a892e1878d376eee7a5d10edf78a8c5b 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-13  Helge Hess  <helge.hess@opengroupware.org>
+
+       * WOApplication.m: added some ObjC runtime profiling support (moved in
+         from OGo main object) (v4.5.137)
+
 2005-03-14  Helge Hess  <helge.hess@opengroupware.org>
 
        * SoObjects/SoSubContext.m: updated superclass version check (v4.5.136)
index 075f893fba0f26e85119684382cf0782e0f7f182..0958e2d61d954fcbe04fab07b8f3e03775374dd9 100644 (file)
@@ -1,6 +1,6 @@
 # version file
 
-SUBMINOR_VERSION:=136
+SUBMINOR_VERSION:=137
 
 # v4.5.122 requires libNGExtensions v4.5.153
 # v4.5.91  requires libNGExtensions v4.5.134
index 61bca098e6b568ff7d5e1c764de345286f7b91f2..7685f4d8086a1eacb00f47c8f296297ba33457c9 100644 (file)
 #include <NGObjWeb/WOStatisticsStore.h>
 #include <NGObjWeb/WODynamicElement.h>
 #include <NGObjWeb/WOTemplate.h>
-#import <EOControl/EOControl.h>
+#include <EOControl/EOControl.h>
 #include "common.h"
 #include <time.h>
 
+#if GNU_RUNTIME
+#  include <objc/sarray.h>
+#endif
+
 @interface WOApplication(PrivateMethods)
 + (id)logger;
 - (id)_loadComponentDefinitionWithName:(NSString *)_name
@@ -885,6 +889,17 @@ static NSString *defaultCompRqHandlerClassName = @"WOComponentRequestHandler";
 - (void)awake {
 }
 - (void)sleep {
+#if DEBUG && PRINT_NSSTRING_STATISTICS
+  if ([NSString respondsToSelector:@selector(printStatistics)])
+    [NSString printStatistics];
+#endif
+  
+#if DEBUG && PRINT_OBJC_STATISTICS
+extern int __objc_selector_max_index;
+  printf("nbuckets=%i, nindices=%i, narrays=%i, idxsize=%i\n",
+nbuckets, nindices, narrays, idxsize);
+  printf("maxsel=%i\n", __objc_selector_max_index);
+#endif
 }
 
 /* responder */