TSubstringThreadStats Record

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

NameTypeDescription
BorrowedRefsNativeIntThe uncounted references taken on this thread to blocks of other threads.
CachedBlocksNativeIntThe freed blocks held in this thread's cache.
CacheGetsNativeInt1 once this thread has a block cache: its record, taken from the memory manager.
CacheHitsNativeIntThe blocks served from the cache.
ForeignReleasesNativeIntThe counted references to other threads' blocks dropped on this thread.
LiveBlocksNativeIntThe blocks this thread allocated that are still referenced.
MemFreesNativeIntThe blocks returned to the memory manager.
MemGetsNativeIntThe blocks taken from the memory manager.