All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
AllocationRecord.h
1 #pragma once
2 
3 #include "Types.h"
4 #include "AllocationSite.h"
5 #include "Backtrace.h"
6 
7 namespace Eegeo
8 {
10  {
11  AllocationRecord(size_t _size, int _alignment);
12  void* GetPayload();
13 
14  static AllocationRecord* GetFromPayload(void* payload);
15  static void SetRecordForPayload(void* payload, AllocationRecord* record);
16  static size_t GetTotalSizeRequired(size_t payloadSize, int payloadAlignment);
17 
18  u64 allocationIndex;
19  size_t size;
20  int alignment;
21 
22  AllocationSite site;
23  const char* tag;
24  void* threadId;
25  int elementCount;
26 
27  Backtrace trace;
28  AllocationRecord* next;
29  };
30 
31 };