Working in Python 3.6, it's easy to profile function performance on toy examples
or in a local development context.
However, I needed to profile the performance of some functions
in a production context.
I couldn’t find any good tools for doing this,
so I wrote my own. I present Function-Profiler, a lightweight module
that records calls to functions as well as their execution times, and
outputs statistics about them.

The GitHub repository, containing its documentation, is available
here. Take a look!
You can also install it directly via pip3 install function-profiler.