Profiler
A profiler is software that measures and analyzes a program’s runtime behavior or resource use to characterize performance and identify bottlenecks.
Troubleshooting Java, Second Edition
A profiler is a software tool that measures and records runtime behavior such as execution time, resource usage, and call activity.
- How it is used
- Guides investigations of hidden execution, abnormal CPU or memory use, latency, locks, deadlocks, and SQL behavior.
- How deep it goes
- Explains sampling, detailed profiling, resource monitoring, SQL interception, lock profiling, and thread dumps, while requiring follow-up diagnosis.
- Examples
- Uses VisualVM, producer-consumer threads, memory leaks, generated SQL, cross joins, locks, deadlocks, and thread dumps.
- What you can do after
- Diagnose/debug with VisualVM by sampling execution, narrowing code, measuring methods, inspecting resources, retrieving SQL, and escalating to lock or thread-dump analysis.
Read how Troubleshooting Java, Second Edition explains profiler →
Troubleshooting Java: Read, debug, and optimize JVM applications
A software analysis tool that measures program execution, such as time spent in code, to help identify performance problems.
- How it is used
- Uses profiling to locate executing code and investigate resource consumption, latency, memory, and service communication.
- How deep it goes
- Walks through resource and thread views, method and SQL observations, and heap-dump analysis using example applications.
- Examples
- Uses a producer-consumer race condition and a products endpoint with repeated repository calls to illustrate investigation.
- What you can do after
- Diagnose/debug with VisualVM and JProfiler by inspecting resource use, execution, SQL queries, heap data, and communication.
Read how Troubleshooting Java: Read, debug, and optimize JVM applications explains profiler →
Fast by Default
A platform profiler is a performance-analysis tool integrated with or designed for a specific operating system and its runtime environment.
- How it is used
- Locates CPU, memory, and runtime bottlenecks before release by measuring representative user flows against budgets.
- How deep it goes
- Explains sampling, tracing, call trees, self versus cumulative time, and platform-specific escalation to system tracing.
- Examples
- Uses a Python request profile, mobile startup and scrolling checks, a 200-image export, and an idle progress-bar timer.
- What you can do after
- Diagnose/debug with it by tracing expensive paths to changeable code and validating improvements against measured budgets.
100 Go Mistakes and How to Avoid Them
A profiler is a software tool that collects and analyzes runtime measurements such as execution time, memory use, or resource consumption of an application.
- How it is used
- Uses profiling to investigate application performance, contention, and possible memory leaks.
- How deep it goes
- Explains profile types, HTTP activation, and CPU sampling mechanics, including default duration and interrupt interval.
- Examples
- Uses an HTTP server, a benchmark-generated CPU profile, and a pprof viewer command.
- What you can do after
- Operate/configure Go pprof to expose profiling endpoints, collect a CPU profile, and open a saved profile.
Read how 100 Go Mistakes and How to Avoid Them explains profiler →
The Art of Code
A performance profiler measures and attributes software execution time or resource consumption to program operations.
- How it is used
- Uses runtime measurements to investigate efficient code, memory footprints, energy consumption, and environmental impact.
- How deep it goes
- Connects profiling to CPU behavior and memory allocation, but stops short of explaining setup or trace interpretation.
- Examples
- Names VisualVM, JDK Flight Recorder, Async-Profiler, py-spy, PerfView, pprof, cargo-flamegraph, and Clinic.js.
- What you can do after
- Diagnoses targeted performance or resource issues with language-specific profilers while accounting for overhead and setup costs.
Also covered in
- React in Depth
- .NET in Action, Second Edition
- Software Engineering for Data ScientistsIn early access (MEAP)
What to know first
- garbage collectionGarbage collection is an automated process that identifies and reclaims or removes memory, data, or other items no longer reachable or needed by a system.
- memory leakA memory leak is the unintended retention of allocated memory that is no longer needed, preventing it from being reclaimed for reuse.
- stack traceA stack trace is a diagnostic record of the active or recently unwound function or method calls at a point in program execution, often including source locations.
- threadA thread is a distinct sequence of execution with its own control flow and state, managed or scheduled by a processor, runtime, or operating system.
Related concepts
- VisualVMincludes · VisualVM is a Java monitoring and profiling tool for inspecting running applications, JVM behavior, resource usage, and performance.
- garbage collectionuses · Garbage collection is an automated process that identifies and reclaims or removes memory, data, or other items no longer reachable or needed by a system.
- JProfilerincludes · JProfiler is a Java profiling tool for analyzing application performance, resource use, and execution behavior.
- memory profilerincludes · A memory profiler is a software tool that analyzes a program's memory allocation, usage, retention, and release during execution.
- profilingused by · Program profiling is the measurement and analysis of software execution behavior and resource use to characterize performance and identify bottlenecks.
- samplinguses · Sampling is a procedure for selecting items from a collection or generating outcomes from a probability distribution according to a specified rule.
Questions about profiler
What is profiler?
A profiler is software that measures and analyzes a program’s runtime behavior or resource use to characterize performance and identify bottlenecks.
Which Manning books explain profiler?
Troubleshooting Java, Second Edition, Troubleshooting Java: Read, debug, and optimize JVM applications, Fast by Default, 100 Go Mistakes and How to Avoid Them and The Art of Code.
What should I know before learning profiler?
Manning books that teach profiler usually introduce garbage collection, memory leak, stack trace and thread first.
What kinds of profiler are there?
Kinds of profiler include VisualVM, JProfiler and memory profiler.
What is profiler also called?
Profiler is also called profiling tool.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.




