jazzband/django-silk

Profiles don't seem to be created

Open

#215 opened on 2017年10月4日

GitHub で見る
 (5 comments) (0 reactions) (0 assignees)Python (3,958 stars) (319 forks)batch import
help wanted

説明

Using the latest master version, there seems to me that the only way to get profiling is to decorate a method/function with the silk_profile decorator.

The only place where Profile objects are created is here, and it happens for every profile object given by the DataCollector.profiles method. Now those profile objects are only registered using the register_profile in the _finalise_queries method which is part of the silk_profile decorator. From what I found, the decorator is only used for dynamic profiling throughout the project.

Note that the .prof files are being generated correctly.

Am I doing something wrong here?

コントリビューターガイド