add wraparound support to C2 physics
[openc2e.git] / tools / memstats.cpp
blobf249f778927063f1d7b6b4cdcd2561de67ecb469
1 #include "caosVar.h"
2 #include "AgentRef.h"
3 #include "Agent.h"
4 #include "CompoundAgent.h"
5 #include "PointerAgent.h"
6 #include "SimpleAgent.h"
7 #include "caosVM.h"
9 #include <string>
10 std::string datapath; // because some files link to it
12 int main() {
13 #define PSIZE(t) printf("Size of (%s): %zu\n", #t, sizeof (t))
14 boost::variant< int, float, AgentRef, std::string> variant;
16 PSIZE(Agent);
17 PSIZE(CompoundAgent);
18 PSIZE(PointerAgent);
19 PSIZE(SimpleAgent);
21 PSIZE(AgentRef);
22 PSIZE(variant);
23 PSIZE(std::string);
24 PSIZE(caosVar);
25 PSIZE(caosVM);
26 PSIZE(boost::weak_ptr<Agent>);
27 return 0;