Suggest an editImprove this articleRefine the answer for “What is profiling (code profiling)?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**Profiling** is the process of measuring how code actually behaves at runtime: how long it takes, how much memory it consumes, which functions are slow, and where delays and blocking occur. **Key point:** profiling is a way to see where your code spends its resources and find out why it does not run as fast as it should.Shown above the full answer for quick recall.Answer (EN)Image**Profiling** is the process of measuring how code actually behaves at runtime: how long it takes, how much memory it consumes, which functions are slow, and where delays and blocking occur. --- ### What profiling shows: 1. **Function execution time** - which functions are called, how often, how long each one takes 2. **Call stack** - who calls whom, nesting depth, execution order 3. **Hot paths** - the most resource-intensive parts of the code, bottlenecks 4. **Blocking points** - long tasks, JS functions that hurt responsiveness 5. **Paint, Layout, GC intervals** - helps you understand how the browser works and what slows down the interface --- ### Why profiling is needed: - finding performance bottlenecks - spotting excessive or frequent function calls - finding delays, freezes, and hangs - optimizing rendering, animations, event handling --- ### Where it is used: - **Chrome DevTools → the Performance tab** - records an activity profile on the timeline - **Node.js** - CPU and heap profilers (for example, `--inspect` + Chrome DevTools) - **React Profiler** - analyzes component render time - **Python, Java, C++** - built-in or third-party CPU/memory profilers --- **Conclusion:** Profiling is a way to see where your code spends its resources and find out why it does not run as fast as it should. It is not just logic, it is facts about time and memory.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.