Substring.ThreadStats Method

class function ThreadStats: TSubstringThreadStats; static;

The calling thread's counters of its memory for long texts.

Returns: TSubstringThreadStats

Examples

A long text is counted among the thread's live memory.

uses Substr;

procedure Example;
var s: Substring;
    st: TSubstringThreadStats;
begin
    s := Substring.Create('x', 1000);
    st := Substring.ThreadStats;
    Assert(st.LiveBlocks >= 1);
end;
See Also: TSubstringThreadStats