LLVM 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::MemProfilerPass Class Reference

Public interface to the memory profiler pass for instrumenting code to profile memory accesses. More...

#include "llvm/Transforms/Instrumentation/MemProfiler.h"

Inheritance diagram for llvm::MemProfilerPass:
Inheritance graph
[legend]

Public Member Functions

 MemProfilerPass ()
 
PreservedAnalyses run (Function &F, FunctionAnalysisManager &AM)
 
- Public Member Functions inherited from llvm::PassInfoMixin< MemProfilerPass >
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)
 

Static Public Member Functions

static bool isRequired ()
 
- Static Public Member Functions inherited from llvm::PassInfoMixin< MemProfilerPass >
static StringRef name ()
 Gets the name of the pass we are mixed into.
 

Detailed Description

Public interface to the memory profiler pass for instrumenting code to profile memory accesses.

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.

Definition at line 33 of file MemProfiler.h.

Constructor & Destructor Documentation

◆ MemProfilerPass()

MemProfilerPass::MemProfilerPass ( )
explicitdefault

Member Function Documentation

◆ isRequired()

static bool llvm::MemProfilerPass::isRequired ( )
inlinestatic

Definition at line 37 of file MemProfiler.h.

◆ run()

PreservedAnalyses MemProfilerPass::run ( Function F,
FunctionAnalysisManager AM 
)

The documentation for this class was generated from the following files: