Back to articles
Shareable Diagnostics: Generating HTML Reports From Production Profiling

Shareable Diagnostics: Generating HTML Reports From Production Profiling

via Dev.toBill Tu

You've just diagnosed a production performance issue. loop-detective told you that processPayload at /app/handlers/payment.js:127 consumed 54% of CPU, that three HTTP calls to the payment gateway averaged 1.8 seconds, and that the event loop lagged 12 times during the 30-second capture. Now you need to share this with your team. You copy-paste the terminal output into Slack. The ANSI color codes turn into garbage. The bar charts become meaningless characters. The carefully formatted report becomes an unreadable wall of text. This is why we built HTML report output for node-loop-detective v2.0.0 . loop-detective 12345 --html report.html One flag. One file. Open it in any browser. Share it anywhere. The Problem With Terminal Output Terminal output is perfect for the person running the diagnostic. It's immediate, it's colorful, it's right there. But it has three fundamental limitations: It doesn't travel well. ANSI escape codes render as [31m in Slack, email, Jira, and most text editors.

Continue reading on Dev.to

Opens in a new tab

Read Full Article
4 views

Related Articles