| 75 | } |
| 76 | |
| 77 | void LogMemory::RecordRawAllocation(const string& operation, |
| 78 | const int64 step_id, size_t num_bytes, |
| 79 | void* ptr, Allocator* allocator) { |
| 80 | MemoryLogRawAllocation allocation; |
| 81 | allocation.set_step_id(step_id); |
| 82 | allocation.set_operation(operation); |
| 83 | allocation.set_num_bytes(static_cast<int64>(num_bytes)); |
| 84 | allocation.set_ptr(reinterpret_cast<uintptr_t>(ptr)); |
| 85 | allocation.set_allocation_id(allocator->AllocationId(ptr)); |
| 86 | allocation.set_allocator_name(allocator->Name()); |
| 87 | OutputToLog(allocation); |
| 88 | } |
| 89 | |
| 90 | void LogMemory::RecordRawDeallocation(const string& operation, |
| 91 | const int64 step_id, void* ptr, |
nothing calls this directly
no test coverage detected