![]() |
ATLAS Offline Software
|
Service providing "device memory monitoring". More...
#include <MemoryMonitorSvc.h>
Classes | |
| struct | MemoryAllocKey |
| Key used in the memory allocation/deallocation monitoring maps. More... | |
| struct | MemoryCopyKey |
| Key used in the memory copy monitoring map. More... | |
Public Member Functions | |
Function(s) inherited from @c AthService | |
| virtual StatusCode | finalize () override |
| Finalize the service. | |
Function(s) inherited from @c IMemoryMonitorSvc | |
| virtual void | memoryAllocated (const std::string &component, const std::string &device, std::size_t bytes) override |
| Notify the service that a memory allocation has been made. | |
| virtual void | memoryDeallocated (const std::string &component, const std::string &device, std::size_t bytes) override |
| Notify the service that a memory deallocation has been made. | |
| virtual void | memoryCopied (const std::string &component, vecmem::copy::type::copy_type type, std::size_t bytes) override |
| Notify the service that a memory copy has been made. | |
Private Attributes | |
Objects collecting the monitoring data | |
| std::map< MemoryAllocKey, std::size_t > | m_allocations |
| All the memory allocations. | |
| std::mutex | m_allocationsMutex |
Mutex for m_allocations. | |
| std::map< MemoryAllocKey, std::size_t > | m_deallocations |
| All the memory deallocations. | |
| std::mutex | m_deallocationsMutex |
Mutex for m_deallocations. | |
| std::map< MemoryCopyKey, std::size_t > | m_copies |
| All the memory copies. | |
| std::mutex | m_copiesMutex |
Mutex for m_copies. | |
Service providing "device memory monitoring".
Definition at line 20 of file MemoryMonitorSvc.h.
|
overridevirtual |
Finalize the service.
Definition at line 35 of file MemoryMonitorSvc.cxx.
|
overridevirtual |
Notify the service that a memory allocation has been made.
Definition at line 80 of file MemoryMonitorSvc.cxx.
|
overridevirtual |
Notify the service that a memory copy has been made.
Definition at line 96 of file MemoryMonitorSvc.cxx.
|
overridevirtual |
Notify the service that a memory deallocation has been made.
Definition at line 88 of file MemoryMonitorSvc.cxx.
|
private |
All the memory allocations.
Definition at line 78 of file MemoryMonitorSvc.h.
|
private |
Mutex for m_allocations.
Definition at line 80 of file MemoryMonitorSvc.h.
|
private |
All the memory copies.
Definition at line 104 of file MemoryMonitorSvc.h.
|
private |
Mutex for m_copies.
Definition at line 106 of file MemoryMonitorSvc.h.
|
private |
All the memory deallocations.
Definition at line 82 of file MemoryMonitorSvc.h.
|
private |
Mutex for m_deallocations.
Definition at line 84 of file MemoryMonitorSvc.h.