diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-11-25 16:01:13 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-25 16:01:13 -0500 |
| commit | 35d65cceb8aa4360accc0db30b2b1448159e7d26 (patch) | |
| tree | 34694475702f28f564546d6e61c114507e179b41 /src/memory_profiling.hpp | |
| parent | 6b241d7b5d5a9db087c02113b4556d45b0a62e56 (diff) | |
| parent | a647a88dfc6cdef66316399f10084b35f738b093 (diff) | |
| download | zig-35d65cceb8aa4360accc0db30b2b1448159e7d26.tar.gz zig-35d65cceb8aa4360accc0db30b2b1448159e7d26.zip | |
Merge pull request #3502 from mikdusan/stage1-mem-diet
unembed ConstExprValue from IrInstruction and intern 1-possible-value types
Diffstat (limited to 'src/memory_profiling.hpp')
| -rw-r--r-- | src/memory_profiling.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/memory_profiling.hpp b/src/memory_profiling.hpp index 6d43d81e3c..56321564d0 100644 --- a/src/memory_profiling.hpp +++ b/src/memory_profiling.hpp @@ -13,6 +13,14 @@ #include <stddef.h> #include <stdio.h> +struct MemprofInternCount { + size_t x_undefined; + size_t x_void; + size_t x_null; + size_t x_unreachable; +}; +extern MemprofInternCount memprof_intern_count; + void memprof_init(void); void memprof_alloc(const char *name, size_t item_count, size_t type_size); |
