vecmem 1.30.0
Loading...
Searching...
No Matches
vecmem::instrumenting_memory_resource::memory_event Struct Reference

Structure describing a memory resource event. More...

#include <vecmem/memory/instrumenting_memory_resource.hpp>

Public Types

enum class  type { ALLOCATION , DEALLOCATION }
 Classify an event as an alloction or a deallocation.

Public Member Functions

 memory_event (type t, std::size_t s, std::size_t a, void *p, std::size_t ns)
 Construct an allocation/deallocation event.

Public Attributes

type m_type
 The type of event (allocation or deallocation).
std::size_t m_size
 The size of the request.
std::size_t m_align
 The alignment of the request.
void * m_ptr
 The pointer that was returned or deallocated.
std::size_t m_time
 The time taken to perform the request in nanoseconds.

Detailed Description

Structure describing a memory resource event.

Constructor & Destructor Documentation

◆ memory_event()

vecmem::instrumenting_memory_resource::memory_event::memory_event ( type t,
std::size_t s,
std::size_t a,
void * p,
std::size_t ns )

Construct an allocation/deallocation event.

Parameters
[in]tThe type of event (allocation or deallocation).
[in]sThe size of the request.
[in]aThe alignment of the request.
[in]pThe pointer that was returned or deallocated.
[in]nsThe time taken to perform the request in nanoseconds.

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