You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only export selected data addresses on the Module object (#25576)
Just like for other types of symbols we don't want to export symbols on
the `Module` object itself if they user requested this.
Also, fix the memory profiler to not depend the external export of
`__heap_base` but instead the internal version (like it does for `_sbrk`
and other dependencies.
Copy file name to clipboardExpand all lines: src/memoryprofiler.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -502,7 +502,7 @@ var emscriptenMemoryProfiler = {
502
502
html+='. STACK_MAX: '+toHex(stackMax,width)+'.';
503
503
html+='<br />STACK memory area used now (should be zero): '+self.formatBytes(stackBase-stackCurrent)+'.'+colorBar('#FFFF00')+' STACK watermark highest seen usage (approximate lower-bound!): '+self.formatBytes(stackBase-self.stackTopWatermark);
504
504
505
-
varheap_base=Module['___heap_base'];
505
+
varheap_base=___heap_base;
506
506
varheap_end=_sbrk({{{to64('0')}}});
507
507
html+="<br />DYNAMIC memory area size: "+self.formatBytes(heap_end-heap_base);
0 commit comments