Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
process_event(attributes)
# Convert attributes to higher level requested data, will
# call prcess_event for each new event that it creates
if args.attributeparse:
process_scope_attributes(attributes['scopes'], process_event)
for f in filters:
f.finish()
if args.profile:
pr.disable()
print("Profiler Results")
print("----------------")
s = get_stream()
sortby = 'cumulative'
ps = pstats.Stats(pr, stream=s).sort_stats(sortby)
ps.print_stats()
print(s.getvalue())