LLVM  14.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]
Collaboration diagram for llvm::MemProfilerPass:
Collaboration 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. More...
 

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 28 of file MemProfiler.h.

Constructor & Destructor Documentation

◆ MemProfilerPass()

MemProfilerPass::MemProfilerPass ( )
explicit

Definition at line 256 of file MemProfiler.cpp.

Member Function Documentation

◆ isRequired()

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

Definition at line 32 of file MemProfiler.h.

◆ run()

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

Definition at line 258 of file MemProfiler.cpp.

References llvm::PreservedAnalyses::all(), F, M, and llvm::PreservedAnalyses::none().


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