Dynamic analysis examines software while it runs, using observed runtime behavior rather than source code alone. It can measure energy consumption and environmental impact. section 8.5.2
Practical applications include:
- Use microbenchmarks to measure small code snippets in isolation. section 8.5.2
- Use profilers to inspect CPU behavior and memory allocation in greater detail. section 8.5.2
- Treat environmental-impact plugins and research prototypes cautiously when multiplatform support or maintenance is uncertain. section 8.5.2
Tool choices by ecosystem
Java developers can use JMH for microbenchmarks and VisualVM, JDK Flight Recorder with Mission Control, or Async-Profiler for deeper runtime analysis. Python developers can use pytest-benchmark or py-spy. section 8.5.2
