大网数据广告活动
磁盘与文件系统

JET_THREADSTATS Structure

· 52CE 我爱测

Learn more about: 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

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 04/11/2016
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。