concept

Performance profiling — CSS reference

Profiling collects evidence about work on a real execution path. User Timing marks can identify an operation in a recording; its elapsed duration is not a breakdown of style, layout or painting. Use the browser performance tools to inspect those stages and repeat realistic workloads.

Formal Syntax & Structure

css syntaxcss
performance.mark("start"); performance.measure("update", "start");

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>performance-profiling</title><style>body{margin:8px;font:16px/24px sans-serif;color:black;background:white}#a{box-sizing:border-box}
</style><body><div id="a">Sample</div></body></html>
CSS Reference