Collapse the table of content
Expand the table of content
展开 最小化
EN
此内容没有您的语言版本,但有英语版本。

JET_THREADSTATS Structure

Windows

Last modified: January 09, 2012

Applies to: Windows | Windows Server

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

Client

Requires Windows Vista.

Server

Requires Windows Server 2008.

Header

Declared in Esent.h.

See Also

显示:
© 2015 Microsoft