def gltf_export_mesh():
profiler.enable()
# ...
profiler.disable()
def glTF2_post_export_callback(export_settings):
for obj in export_settings['gltf_user_extensions']:
if isinstance(obj, glTF2ExportUserExtension):
obj.print_profiling_stats()