HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PDG_MemoryInfo.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * COMMENTS:
7  */
8 
9 #ifndef __PDG_MEMORY_INFO_H__
10 #define __PDG_MEMORY_INFO_H__
11 
12 #include "PDG_API.h"
13 
14 #include <SYS/SYS_Types.h>
15 
16 /**
17  * Memory summary information, used either for a single work item or the
18  * full set of work items/data structures in a node
19  */
21 {
22  /// Zero-initializes the struct
24  : myAttributeMemory(0)
25  , myGraphMemory(0)
26  , myNodeMemory(0)
27  , myWorkItemMemory(0) {}
28 
29  /// The total memory usage
30  inline int64 totalMemory() const
31  {
32  return myAttributeMemory +
33  myGraphMemory +
34  myNodeMemory +
35  myWorkItemMemory;
36  }
37 
38  /// The memory usage of the attributes and associated storage
39  /// structures for all work items in the query.
41 
42  /// Memory usage of internal graph structures
44 
45  /// Memory used by internal node sturctures, if this object was queried
46  /// from a node
48 
49  /// The total memory usage for all work items in the query.
51 };
52 
53 #endif
#define PDG_API
Definition: PDG_API.h:23
int64 myWorkItemMemory
The total memory usage for all work items in the query.
PDG_MemoryInfo()
Zero-initializes the struct.
long long int64
Definition: SYS_Types.h:116
int64 myGraphMemory
Memory usage of internal graph structures.
int64 totalMemory() const
The total memory usage.
int64 myAttributeMemory