Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…19221) * feat: finer frappe Recorder control with decorator (#19220) Currently frappe recorder can be enabled globally and profiles every request. This is often way too much info. If you already know where problem lies you use this decorator sparingly to only profile relevant functions. Usage: ```py from frappe.recorder import record_queries @record_queries def sus_slow_function(): frappe.db.sql("select everything from everywhere") ``` (cherry picked from commit ec3f705) * Update test_recorder.py Co-authored-by: Ankush Menat <ankush@frappe.io>
- Loading branch information
1 parent
458707e
commit 3b18e7e
Showing
2 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters