jazzband / django-silk

Silky smooth profiling for Django
MIT License
4.35k stars 333 forks source link

Allow option to delete profiles #652

Closed viralj closed 6 months ago

viralj commented 1 year ago

Added a new config option that will allow user to clear profiler profiles from storage when Clear DB is called. This is helpful functionality especially in development environment where frequent DB cleaning is done.

codecov[bot] commented 1 year ago

Codecov Report

Merging #652 (8d4b13e) into master (274898f) will increase coverage by 0.07%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #652      +/-   ##
==========================================
+ Coverage   86.51%   86.59%   +0.07%     
==========================================
  Files          52       52              
  Lines        2091     2103      +12     
==========================================
+ Hits         1809     1821      +12     
  Misses        282      282              
Impacted Files Coverage Δ
silk/config.py 90.47% <ø> (ø)
silk/views/clear_db.py 97.29% <100.00%> (+1.29%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

viralj commented 1 year ago

All checks have passed and the updated code implements helpful functionality.