Structure describing a memory resource event.
More...
#include <vecmem/memory/instrumenting_memory_resource.hpp>
|
| enum class | type { ALLOCATION
, DEALLOCATION
} |
| | Classify an event as an alloction or a deallocation.
|
|
| | memory_event (type t, std::size_t s, std::size_t a, void *p, std::size_t ns) |
| | Construct an allocation/deallocation event.
|
|
|
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.
|
Structure describing a memory resource event.
◆ 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] | t | The type of event (allocation or deallocation). |
| [in] | s | The size of the request. |
| [in] | a | The alignment of the request. |
| [in] | p | The pointer that was returned or deallocated. |
| [in] | ns | The time taken to perform the request in nanoseconds. |
The documentation for this struct was generated from the following files: