LLVM 19.0.0git
Public Attributes | List of all members
llvm::xray::XRayFileHeader Struct Reference

XRay traces all have a header providing some top-matter information useful to help tools determine how to interpret the information available in the trace. More...

#include "llvm/XRay/XRayRecord.h"

Public Attributes

uint16_t Version = 0
 Version of the XRay implementation that produced this file.
 
uint16_t Type = 0
 A numeric identifier for the type of file this is.
 
bool ConstantTSC = false
 Whether the CPU that produced the timestamp counters (TSC) move at a constant rate.
 
bool NonstopTSC = false
 Whether the CPU that produced the timestamp counters (TSC) do not stop.
 
uint64_t CycleFrequency = 0
 The number of cycles per second for the CPU that produced the timestamp counter (TSC) values.
 
char FreeFormData [16] = {}
 

Detailed Description

XRay traces all have a header providing some top-matter information useful to help tools determine how to interpret the information available in the trace.

Definition at line 27 of file XRayRecord.h.

Member Data Documentation

◆ ConstantTSC

bool llvm::xray::XRayFileHeader::ConstantTSC = false

Whether the CPU that produced the timestamp counters (TSC) move at a constant rate.

Definition at line 37 of file XRayRecord.h.

Referenced by llvm::xray::readBinaryFormatHeader().

◆ CycleFrequency

uint64_t llvm::xray::XRayFileHeader::CycleFrequency = 0

The number of cycles per second for the CPU that produced the timestamp counter (TSC) values.

Useful for estimating the amount of time that elapsed between two TSCs on some platforms.

Definition at line 45 of file XRayRecord.h.

Referenced by llvm::xray::readBinaryFormatHeader().

◆ FreeFormData

char llvm::xray::XRayFileHeader::FreeFormData[16] = {}

◆ NonstopTSC

bool llvm::xray::XRayFileHeader::NonstopTSC = false

Whether the CPU that produced the timestamp counters (TSC) do not stop.

Definition at line 40 of file XRayRecord.h.

Referenced by llvm::xray::readBinaryFormatHeader().

◆ Type

uint16_t llvm::xray::XRayFileHeader::Type = 0

A numeric identifier for the type of file this is.

Best used in combination with Version.

Definition at line 33 of file XRayRecord.h.

Referenced by llvm::xray::readBinaryFormatHeader().

◆ Version

uint16_t llvm::xray::XRayFileHeader::Version = 0

Version of the XRay implementation that produced this file.

Definition at line 29 of file XRayRecord.h.

Referenced by llvm::xray::readBinaryFormatHeader().


The documentation for this struct was generated from the following file: