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
Copy file name to clipboardExpand all lines: src/memoryprofiler.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -503,7 +503,7 @@ var emscriptenMemoryProfiler = {
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
505
varheap_base=Module['___heap_base'];
506
-
varheap_end=_sbrk();
506
+
varheap_end=_sbrk({{{to64('0')}}});
507
507
html+="<br />DYNAMIC memory area size: "+self.formatBytes(heap_end-heap_base);
508
508
html+=". start: "+toHex(heap_base,width);
509
509
html+=". end: "+toHex(heap_end,width)+".";
@@ -612,8 +612,8 @@ var emscriptenMemoryProfiler = {
612
612
calls.sort((a,b)=>b[sortIdx]-a[sortIdx]);
613
613
}
614
614
html+='<h4>Allocation sites with more than '+self.formatBytes(self.trackedCallstackMinSizeBytes)+' of accumulated allocations, or more than '+self.trackedCallstackMinAllocCount+' simultaneously outstanding allocations:</h4>'
0 commit comments