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.