大网数据广告活动
性能与资源

Retrieving Additional Event Tracing Data

· 52CE 我爱测

Once you have begun an event tracing session, you can use TraceSetInformation to instruct the system to return additional event tracing data.

Once you have begun an event tracing session, you can use TraceSetInformation to instruct the system to return additional event tracing data. The additional information will be placed in the extended data section of the relevant event trace.

The following procedure describes how to use the TraceSetInformation function to retrieve additional data from an event tracing session.

To retrieve additional event tracing data

  1. Start your session with a call to StartTrace.

    For more information, see Configuring and Starting an Event Tracing Session.

  2. Call TraceSetInformation to set additional event tracing data.

    use the EVENT_INFO_CLASS enumeration in the ClassInformation parameter to describe the additional information you wish to retrieve. The following example describes how to call TraceSetInformation, using the session handle returned from the call to StartTrace, and the TraceProviderBinaryTracking value from EVENT_INFO_CLASS.

    BOOLEAN enabled = TRUE;
    Win32Error error = TraceSetInformation(
        m_sessionHandle,
        TraceProviderBinaryTracking,
        &enabled,
        sizeof(enabled));
    
  3. Alternately, you can use TraceQueryInformation to retrieve information about the current event tracing session settings.

    Like TraceSetInformation, TraceQueryInformation uses the EVENT_INFO_CLASS enumeration to describe what information to retrieve from the system.

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 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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