JET_THREADSTATS Structure

Applies to: Windows | Windows Server

JET_THREADSTATS Structure

The JET_THREADSTATS structure contains cumulative statistics on the work performed by the database engine on the current thread. This information is returned via JetGetThreadStats.

Windows Vista:  The JET_THREADSTATS structure is introduced in Windows Vista.

    typedef struct {
      unsigned long cbStruct;
      unsigned long cPageReferenced;
      unsigned long cPageRead;
      unsigned long cPagePreread;
      unsigned long cPageDirtied;
      unsigned long cPageRedirtied;
      unsigned long cLogRecord;
      unsigned long cbLogRecord;
    } JET_THREADSTATS;

Members

cbStruct

The size of the returned JET_THREADSTATS structure, in bytes.

Note  The JET_THREADSTATS structure will expand in the future to contain more statistics. New statistics will be added to the end of the structure and can be retrieved with an increased output buffer size. The presence of additional statistics can be inferred by a larger cbStruct value.

cPageReferenced

The total number of database pages visited by the database engine on the current thread.

cPageRead

The total number of database pages fetched from disk by the database engine on the current thread.

cPagePreread

The total number of database pages prefetched from disk by the database engine on the current thread.

cPageDirtied

The total number of database pages, with no unwritten changes, that have been modified by the database engine on the current thread.

cPageRedirtied

The total number of database pages, with unwritten changes, that have been modified by the database engine on the current thread.

cLogRecord

The total number of transaction log records that have been generated by the database engine on the current thread.

cbLogRecord

The total size in bytes of transaction log records that have been generated by the database engine on the current thread.

Requirements

Requirement Value

Client

Requires Windows Vista.

Server

Requires Windows Server 2008.

Header

Declared in Esent.h.

See Also

JetGetThreadStats