jazzband/django-silk

Profiles don't seem to be created

Aperta

#215 aperta il 4 ott 2017

 (5 commenti) (0 reazioni) (0 assegnatari)Python (319 fork)batch import
help wanted

Metriche repository

Star
 (3958 stelle)
Metriche merge PR
 (Merge medio 4h 49m) (1 PR mergiata in 30 g)

Descrizione

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?

Guida contributor