Hwaro::Profiler
Inherits Reference / Object
Constructors
Instance methods
Print timing for heavy BeforeRender asset generation (OG images + image resizing). These often dominate the Render phase on sites with auto OG or responsive images enabled.
Print timing for all lifecycle hooks that ran during the build. This gives visibility into taxonomy, SEO, PWA, AMP, asset, and custom hooks.
Print the per-page Markdown rendering report (sorted by total time, top consumers first)
Total recorded time for a named phase (summed across repeats), or nil
when the phase never ran. Lets the build receipt show per-row timings.
Record timing for expensive asset generation hooks (OG images, image resizing). These are the #1 cost on many sites even with aggressive caching.
Record timing for any lifecycle hook (general per-hook profiling, #561). Called automatically from Lifecycle::Manager#trigger when profiler is enabled.
Record per-page Markdown rendering profiling data. This captures the dominant cost inside the Render phase (Markd + extensions + TOC + shortcode prep).
Record per-template profiling data
Start timing a phase. Phase-level timing is collected even when full
profiling is disabled — it costs two clock reads per phase and feeds
the per-row timings in the build receipt. The detailed per-template /
per-page collectors and all reports stay gated on --profile.