GC add 'string' to dumpNumberOfInstances

This commit is contained in:
Andreas Rumpf
2018-01-21 10:59:09 +01:00
parent c99f952dfb
commit e5af08cc12

View File

@@ -38,6 +38,11 @@ when defined(nimTypeNames):
if h == 1: break
proc dumpNumberOfInstances* =
# also add the allocated strings to the list of known types:
if strDesc.nextType == nil:
strDesc.nextType = nimTypeRoot
strDesc.name = "string"
nimTypeRoot = addr strDesc
var a: InstancesInfo
var n = 0
var it = nimTypeRoot