Mercurial > hg > orthanc-python
changeset 190:0cb98433a382 java-code-model
print statistics
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Jul 2024 17:27:44 +0200 |
parents | 87e546600cbe |
children | 30ed49f2487f |
files | CodeAnalysis/GenerateOrthancSDK.py |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
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))