mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 08:31:55 +08:00
- Refactored the GetStats method to improve memory management by utilizing an object pool for stats initialization. - Enhanced error rate calculation and added average response time metrics for better performance insights. - Streamlined path and referer statistics collection, ensuring only relevant data is processed and displayed. - Improved sorting and selection logic for top paths and referers, enhancing the clarity of metrics reporting. - Updated comments for better code readability and understanding of the metrics collection process. These changes enhance the efficiency and accuracy of the metrics collector, providing more reliable performance data and insights.