✨ New plugin timings logging feature
If enabled (via Settings > Server > Debug options) this will write two new files to the logging dir, plugintimings.log and plugintimings.csv, which contain timing information for each and every hook or implementation call on plugins registered with OctoPrint. This should be helpful to debug any kind of performance issues caused by third party plugins. It should also be a valuable tool to debug performance issues with bundled plugins. As requested in #1241
This commit is contained in:
1 parent
24204efab6
commit
22ce8e4c24
15 files changed
+153
-20
No files matched your search
@@ -20,8 +20,10 @@ def run_server(basedir, configfile, host, port, v6_only, debug, allow_root, logg
|
||||
|
||||
def log_startup(recorder=None, safe_mode=None, **kwargs):
|
||||
from octoprint.logging import get_divider_line
|
||||
from octoprint.logging.handlers import PluginTimingsLogHandler
|
||||
|
||||
logger = logging.getLogger("octoprint.startup")
|
||||
PluginTimingsLogHandler.arm_rollover()
|
||||
|
||||
logger.info(get_divider_line("*"))
|
||||
logger.info("Starting OctoPrint {}".format(__display_version__))
|
||||
|
||||
Reference in new issue
Block a user