class MemProfilerPass

Declaration

class MemProfilerPass : public PassInfoMixin { /* full declaration omitted */ };

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.

Declared at: llvm/include/llvm/Transforms/Instrumentation/MemProfiler.h:30

Inherits from: PassInfoMixin

Method Overview

  • public MemProfilerPass()
  • public static bool isRequired()
  • public llvm::PreservedAnalyses run(llvm::Function & F, llvm::FunctionAnalysisManager & AM)

Methods

MemProfilerPass()

Declared at: llvm/include/llvm/Transforms/Instrumentation/MemProfiler.h:32

static bool isRequired()

Declared at: llvm/include/llvm/Transforms/Instrumentation/MemProfiler.h:34

llvm::PreservedAnalyses run(
    llvm::Function& F,
    llvm::FunctionAnalysisManager& AM)

Declared at: llvm/include/llvm/Transforms/Instrumentation/MemProfiler.h:33

Parameters

llvm::Function& F
llvm::FunctionAnalysisManager& AM