diff CodeAnalysis/GenerateOrthancSDK.py @ 190:0cb98433a382 java-code-model

print statistics
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Jul 2024 17:27:44 +0200
parents 7e8085f80df5
children b0f096d2339e
line wrap: on
line diff
--- a/CodeAnalysis/GenerateOrthancSDK.py	Tue Jul 02 17:03:08 2024 +0200
+++ b/CodeAnalysis/GenerateOrthancSDK.py	Tue Jul 02 17:27:44 2024 +0200
@@ -438,3 +438,12 @@
             'enumerations' : sortedEnumerations,
             'global_functions' : sortedGlobalFunctions,
         }))
+
+
+countMethods = 0
+for c in sortedClasses:
+    countMethods += len(c['methods'])
+
+print('\nNumber of wrapped global functions: %d' % len(sortedGlobalFunctions))
+print('Number of wrapped methods: %d\n' % countMethods)
+print('Total number of wrapped global functions or methods: %d\n' % (len(sortedGlobalFunctions) + countMethods))