duck.etc.internals.profile_appΒΆ

Module for profiling a Duck application

Module ContentsΒΆ

FunctionsΒΆ

profile_app

Profile a Duck application and write statistics to the stats_filepath.

save_stats

Save profile statistics to the file.

APIΒΆ

duck.etc.internals.profile_app.profile_app(app, stats_filepath: str = 'profile_app_stats.prof', stream=None)[source]ΒΆ

Profile a Duck application and write statistics to the stats_filepath.

This is possible when CTRL-C is used to stop server.

duck.etc.internals.profile_app.save_stats(profiler, stats_filepath: str, stream=None)[source]ΒΆ

Save profile statistics to the file.