FMX.Types.Log.Trace
Delphi
class function Trace<TResult>(const Tag: string; const Func: TFunc<TLogToken, TResult>; const Threshold: Integer = -1): TResult; overload;
class function Trace<TResult>(const Tag: string; const Func: TFunc<TResult>; const Threshold: Integer = -1): TResult; overload;
class procedure Trace(const Tag: string; const Proc: TProc<TLogToken>; const Threshold: Integer = -1); overload;
class procedure Trace(const Tag: string; const Proc: TProc; const Threshold: Integer = -1); overload;
C++
template<typename TResult> __classmethod TResult __fastcall Trace(const System::UnicodeString Tag, const System::DelphiInterface<System::Sysutils::TFunc__2<TLogToken*,TResult> > Func, const int Threshold = 0xffffffff)/* overload */;
template<typename TResult> __classmethod TResult __fastcall Trace(const System::UnicodeString Tag, const System::DelphiInterface<System::Sysutils::TFunc__1<TResult> > Func, const int Threshold = 0xffffffff)/* overload */;
__classmethod void __fastcall Trace(const System::UnicodeString Tag, const System::DelphiInterface<System::Sysutils::TProc__1<TLogToken*> > Proc, const int Threshold = 0xffffffff)/* overload */;
__classmethod void __fastcall Trace(const System::UnicodeString Tag, const System::Sysutils::_di_TProc Proc, const int Threshold = 0xffffffff)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Types.pas FMX.Types.hpp |
FMX.Types | Log |
Description
Performs a timed execution of Func
or Proc
and prints the execution times.
If the specified method is a function (Func
), Trace returns the result of the execution of that function.
The optional parameter of type TLogToken of the specified method can be used to mark specific points where timestamps should be taken, in addition to the timestamp of the complete execution of the specified method.