Icon TTraceRecord

Unit: dbisamtb

TTraceRecord = packed record DateTime: TDateTime; EventType:
      TTraceEventType; ElapsedTime: LongWord; RemoteEncryption:
      Boolean; RemoteCompression: Byte; RemoteHost: ShortString;
      RemoteAddress: ShortString; RemotePort: Integer; RemoteService:
      ShortString; RemoteUser: ShortString; RemoteRequestID: Word;
      RemoteRequestName: ShortString; RemoteRequestSize: Integer;
      RemoteReplyResultID: Word; RemoteReplyResultName: ShortString;
      RemoteReplySize: Integer; end

This type is used as a parameter to the TDBISAMSession OnRemoteTrace event. The fields of the record are as follows:

FieldDescription
DateTimeIndicates the date and time of the trace message.
EventTypeIndicates the type of event represented by the trace message.
ElapsedTimeIndicates the total elapsed time for the event in milliseconds.
RemoteEncryptionIndicates whether the current session is encrypted.
RemoteCompressionIndicates the current compression level. This value normally ranges from 0 (no compression) to 9 (best compression), but in some cases may actually appear in the trace record as values greater than or equal to 10. In these cases, the compression has been adjusted by the engine due to the size of the data being too small (less than 1024 bytes). The adjusted compression level can be found by doing this calculation:

RemoteCompression mod 10

And the original compression level before the adjustment can be found by using the following calculation:

RemoteCompression div 10

Any adjustments to the compression such as this are active for the current request or response only and do not persist any further.
RemoteHostIndicates the host name of the database server that the session is connecting or connected to.
RemoteAddressIndicates the IP address of the database server that the session is connecting or connected to.
RemotePortIndicates the port of the database server that the session is connecting or connected to.
RemoteServiceIndicates the service name of the database server that the session is connecting or connected to.
RemoteUserIndicates the user name of the current session.
RemoteRequestIDIndicates the request ID of the current request.
RemoteRequestNameIndicates the request name of the current request.
RemoteRequestSizeIndicates the size, in bytes, of the current request.
RemoteReplyResultIDIndicates the reply result ID of the current reply from the database server.
RemoteReplyResultNameIndicates the reply result name of the current reply from the database server.
RemoteReplySizeIndicates the reply result size, in bytes, of the current reply from the database server.
Image