sunhailin-Leo / fastapi_profiler

A FastAPI Middleware of https://github.com/joerick/pyinstrument to check your service performance.
MIT License
231 stars 13 forks source link

TypeError: Profile.print_stats() got an unexpected keyword argument 'stream' #18

Open PaleNeutron opened 6 days ago

PaleNeutron commented 6 days ago
                    if self._output_type == "prof":
                        s = StringIO()
>                       self._profiler.print_stats(stream=s)
E                       TypeError: Profile.print_stats() got an unexpected keyword argument 'stream'
sunhailin-Leo commented 5 days ago

@PaleNeutron

PaleNeutron commented 4 days ago
Name: fastapi_profiler
Version: 1.4.1

Name: fastapi
Version: 0.110.3

Name: pyinstrument
Version: 5.0.0
sunhailin-Leo commented 2 days ago

@PaleNeutron

PaleNeutron commented 2 days ago

Python 3.10