Skip to content

Commit

Permalink
report unknown events
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-merzky committed Apr 11, 2024
1 parent b2b9457 commit 3b2b61e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion bin/radical-analytics-check
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ __license__ = 'MIT'

import os
import sys
import pprint

import radical.utils as ru
import radical.analytics as ra
Expand Down Expand Up @@ -72,7 +73,7 @@ if __name__ == '__main__':
print(' session : %s' % sid)
setypes = dict()
states = dict()
for p in session.get(etype=['rp', 'pmgr', 'umgr']):
for p in session.get(etype=['rp', 'pmgr', 'tmgr']):
for e in p.events:
t = e[ru.EVENT]
if t not in setypes: setypes[t] = 1
Expand Down Expand Up @@ -140,6 +141,7 @@ if __name__ == '__main__':
+ list(uetypes.keys())
missing = list()
allkeys = sorted(all_events.keys())
unknown = [e for e in found if e not in all_events]
for e in allkeys:
if e not in found:
missing.append(e)
Expand All @@ -158,6 +160,16 @@ if __name__ == '__main__':

print(' %s %-20s : %s' % (c, e, all_events[e]))
print()

# pprint.pprint(unknown)
# pprint.pprint(all_events)

print()
print(' unknown: %9d' % len(unknown))
for e in sorted(unknown):
print(' ! %-20s' % e)

print()
print('-----------------------------------------------------------')
print()

Expand Down

0 comments on commit 3b2b61e

Please sign in to comment.