jazzband/django-silk

Profiles don't seem to be created

Open

#215 建立於 2017年10月4日

在 GitHub 查看
 (5 留言) (0 反應) (0 負責人)Python (3,958 star) (319 fork)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?

貢獻者指南