Registers resource so a GC without disposeTracked is reported as a leak. Returns a numeric id for reportFinalized; 0 in production.
resource
0
creationSite is recorded as-is when supplied. Otherwise the stack at this call is captured and recorded as the site.
creationSite
Optional
Registers
resourceso a GC without disposeTracked is reported as a leak. Returns a numeric id for reportFinalized;0in production.creationSiteis recorded as-is when supplied. Otherwise the stack at this call is captured and recorded as the site.