+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)
#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
- (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 */