mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 04:02:41 +00:00
GC add 'string' to dumpNumberOfInstances
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user