Public interface to the memory profiler pass for instrumenting code to profile memory accesses.
Declared in <llvm/Transforms/Instrumentation/MemProfInstrumentation.h>
class MemProfilerPass
: public RequiredPassInfoMixin<MemProfilerPass>
The profiler itself is a function pass that works by inserting various calls to the MemProfiler runtime library functions. The runtime library essentially replaces malloc() and free() with custom implementations that record data about the allocations.
| Name | Description |
|---|---|
RequiredPassInfoMixin<MemProfilerPass> | A CRTP mix-in for passes that should not be skipped. |
| Name | Description |
|---|---|
MemProfilerPass [constructor] | Construct a MemProfiler function pass. |
run | Run MemProfiler instrumentation over the function. |
| Name | Description |
|---|---|
isRequired | Return true; required passes cannot be skipped. |