type TSubstringThreadStats = record
The counters of the calling thread's memory for long texts, as Substring.ThreadStats returns them.
Examples
A long text is counted among the thread's live memory.
delphi
uses Substr;
procedure Example;
var s: Substring;
st: TSubstringThreadStats;
begin
s := Substring.Create('x', 1000);
st := Substring.ThreadStats;
Assert(st.LiveBlocks >= 1);
end;
Fields
| Name | Type | Description |
|---|---|---|
| BorrowedRefs | NativeInt | The uncounted references taken on this thread to blocks of other threads. |
| CachedBlocks | NativeInt | The freed blocks held in this thread's cache. |
| CacheGets | NativeInt | 1 once this thread has a block cache: its record, taken from the memory manager. |
| CacheHits | NativeInt | The blocks served from the cache. |
| ForeignReleases | NativeInt | The counted references to other threads' blocks dropped on this thread. |
| LiveBlocks | NativeInt | The blocks this thread allocated that are still referenced. |
| MemFrees | NativeInt | The blocks returned to the memory manager. |
| MemGets | NativeInt | The blocks taken from the memory manager. |