RMM  23.12
RAPIDS Memory Manager
Public Member Functions | Public Attributes | List of all members
rmm::mr::tracking_resource_adaptor< Upstream >::allocation_info Struct Reference

Information stored about an allocation. Includes the size and a stack trace if the tracking_resource_adaptor was initialized to capture stacks. More...

#include <tracking_resource_adaptor.hpp>

Public Member Functions

 allocation_info (std::size_t size, bool capture_stack)
 Construct a new allocation info object. More...
 

Public Attributes

std::unique_ptr< rmm::detail::stack_trace > strace
 Stack trace of the allocation.
 
std::size_t allocation_size
 Size of the allocation.
 

Detailed Description

template<typename Upstream>
struct rmm::mr::tracking_resource_adaptor< Upstream >::allocation_info

Information stored about an allocation. Includes the size and a stack trace if the tracking_resource_adaptor was initialized to capture stacks.

Constructor & Destructor Documentation

◆ allocation_info()

template<typename Upstream >
rmm::mr::tracking_resource_adaptor< Upstream >::allocation_info::allocation_info ( std::size_t  size,
bool  capture_stack 
)
inline

Construct a new allocation info object.

Parameters
sizeSize of the allocation
capture_stackIf true, capture the stack trace for the allocation

The documentation for this struct was generated from the following file: