Mercurial > hg > orthanc-stone
comparison Platforms/Wasm/Defaults.cpp @ 878:8f7930f589ef am-dev
comments
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 03 Jul 2019 10:26:51 +0200 |
parents | f7e5ee59ba17 |
children | 92a043b8e431 |
comparison
equal
deleted
inserted
replaced
877:f7e5ee59ba17 | 878:8f7930f589ef |
---|---|
40 #ifdef __cplusplus | 40 #ifdef __cplusplus |
41 extern "C" { | 41 extern "C" { |
42 #endif | 42 #endif |
43 | 43 |
44 #if 0 | 44 #if 0 |
45 // rewrite malloc/free in order to monitor allocations. We actually only monitor large allocations (like images ...) | |
46 | |
45 size_t bigChunksTotalSize = 0; | 47 size_t bigChunksTotalSize = 0; |
46 std::map<void*, size_t> allocatedBigChunks; | 48 std::map<void*, size_t> allocatedBigChunks; |
47 | 49 |
48 extern void* emscripten_builtin_malloc(size_t bytes); | 50 extern void* emscripten_builtin_malloc(size_t bytes); |
49 extern void emscripten_builtin_free(void* mem); | 51 extern void emscripten_builtin_free(void* mem); |