承接 magefine/performance-mess-detector 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

magefine/performance-mess-detector

最新稳定版本:1.0.2

Composer 安装命令:

composer require magefine/performance-mess-detector

包简介

This Magento 2 module provides tools to monitor and improve performance by detecting and logging potential bottlenecks in the system. It specifically focuses on tracking slow controller actions, repeated SQL queries, and other performance issues that may impact your Magento store.

README 文档

README

Overview

This Magento 2 module provides tools to monitor and improve performance by detecting and logging potential bottlenecks in the system. It specifically focuses on tracking slow controller actions, repeated SQL queries, and other performance issues that may impact your Magento store.

Features

  • Controller Performance Tracking
    Logs the execution time of all controller actions and identifies actions that exceed a configurable threshold (e.g., 500 ms).

  • SQL Query Optimization
    Detects identical or repeated SQL queries executed during a single request cycle. Detects slow queries.

  • Customizable Thresholds
    Allows you to configure thresholds for what constitutes a "slow" action or query via the Magento Admin panel. (INCOMING SOON)

  • Full stack trace of any logged notice

  • Detailed Logging
    Logs all detected issues, including the following:

    • Full action name of the controller.
    • Class name of the controller.
    • Execution time in milliseconds.

Installation

1. Composer Installation

composer require vendor/performance-mess-detector
bin/magento module:enable Magefine_PerformanceMessDetector
bin/magento setup:upgrade
bin/magento cache:flush

2. Manual Installation

  • Download or clone this repository into the app/code/Magefine/PerformanceMessDetector directory.

  • Run the following commands:

bin/magento module:enable Magefine_PerformanceMessDetector
bin/magento setup:upgrade
bin/magento cache:flush

3. Usage

The module logs detected performance issues in the following log files:

var/log/debug.log

Examples:

[2024-11-23T21:46:31.127886+00:00] main.DEBUG: [PMD] Slow action detected : cms_index_index (Magento\Cms\Controller\Index\Index\Interceptor) http://magento.local:8080/ | Execution time : 1027 ms [] []
[PMD] MULTIPLE IDENTICAL SQL QUERIES DETECTED : {"url":"http:\/\/magento.local:8080\/","query":"SELECT `e`.*, IF(at_include_in_menu.value_i...

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2024-11-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固