Skip to main content

EventKind

Enum EventKind 

Source
pub enum EventKind {
Show 63 variants NtReadFile, ReadFile, FileRead, FileOpen, FileClose, MemoryMap, MemoryUnmap, SyncWait, SyncSignal, ThreadCreate, ThreadWakeup, MemoryAlloc, MemoryFree, D3d12(D3d12Call), ResourceUpload, FenceOperation, ShaderCreate, PsoCreate, Present, WinUnixTransition, ServerCall, PathTranslation, CompatibilityAlloc, Syscall, IoUringSubmit, IoUringComplete, IoRead, PageFault, ContextSwitch, SchedulerWakeup, FsLatency, CommandListCreate, Barrier, DescriptorOp, ResourceStateTrack, PipelineCreate, ShaderTranslate, CacheHit, CacheMiss, FenceWait, FenceSignal, VkQueueSubmit, VkCommandBuffer, VkPipelineCreate, VkMemoryAlloc, VkCopy, VkBarrier, VkTimelineSync, VkPresent, GpuTimestamp, GpuIdleBubble, GpuUtilization, GpuDraw, GpuComputeDispatch, KatraSubsystemState, KatraGraphOp, KatraCounter, KatraPrefetch, KatraDecompress, KatraStaging, KatraEpoch, KatraAllocate, KatraIoWait,
}
Expand description

Every kind of event KatraProfiler can capture (KatraProfiler §5).

Grouped by the layer that produces the event. Append-only.

Variants§

§

NtReadFile

NtReadFile

§

ReadFile

ReadFile

§

FileRead

A semantic file read (explicit or inferred; spans API layers).

§

FileOpen

File open (CreateFile)

§

FileClose

File close

§

MemoryMap

MapViewOfFile / NtMapViewOfSection

§

MemoryUnmap

UnmapViewOfFile

§

SyncWait

Waiting on a synchronization object (event, mutex, semaphore, …)

§

SyncSignal

Signaling a synchronization object

§

ThreadCreate

Thread creation

§

ThreadWakeup

Thread wakeup

§

MemoryAlloc

Heap allocation (RtlAllocateHeap, new, …)

§

MemoryFree

Heap free

§

D3d12(D3d12Call)

A D3D12 API call (see D3d12Call)

§

ResourceUpload

Uploading data into a resource (semantic operation).

§

FenceOperation

A fence operation (signal/wait, generic)

§

ShaderCreate

Shader creation

§

PsoCreate

PSO creation

§

Present

Present

§

WinUnixTransition

Windows→Unix transition

§

ServerCall

A wineserver call

§

PathTranslation

File/path translation

§

CompatibilityAlloc

Compatibility-layer allocation

§

Syscall

A syscall

§

IoUringSubmit

An io_uring submission batch

§

IoUringComplete

An io_uring completion

§

IoRead

An asynchronous file read (any backend)

§

PageFault

A page fault

§

ContextSwitch

A context switch

§

SchedulerWakeup

A scheduler wakeup

§

FsLatency

Filesystem latency sample

§

CommandListCreate

Command-list creation

§

Barrier

A resource barrier/transition

§

DescriptorOp

Descriptor activity

§

ResourceStateTrack

Resource state tracking

§

PipelineCreate

Pipeline creation

§

ShaderTranslate

Shader translation (DXIL → IR → SPIR-V)

§

CacheHit

A cache hit

§

CacheMiss

A cache miss

§

FenceWait

Waiting on a fence value

§

FenceSignal

Signaling a fence value

§

VkQueueSubmit

vkQueueSubmit

§

VkCommandBuffer

Command-buffer lifecycle

§

VkPipelineCreate

Vulkan pipeline creation

§

VkMemoryAlloc

Vulkan memory allocation

§

VkCopy

A copy operation

§

VkBarrier

A Vulkan barrier

§

VkTimelineSync

Timeline synchronization

§

VkPresent

vkQueuePresentKHR

§

GpuTimestamp

A GPU timestamp sample

§

GpuIdleBubble

A GPU idle bubble

§

GpuUtilization

GPU utilization sample

§

GpuDraw

A GPU draw

§

GpuComputeDispatch

A GPU compute dispatch

§

KatraSubsystemState

A Katra subsystem state change (coverage reporting)

§

KatraGraphOp

A semantic-graph operation

§

KatraCounter

A Katra counter (aggregate or delta)

§

KatraPrefetch

A KatraFlow prefetch decision

§

KatraDecompress

A Katra decompression operation

§

KatraStaging

A Katra staging operation

§

KatraEpoch

A Katra epoch transition

§

KatraAllocate

A Katra arena allocation

§

KatraIoWait

A Katra I/O wait

Implementations§

Source§

impl EventKind

Source

pub fn as_str(self) -> &'static str

Stable string name.

Trait Implementations§

Source§

impl Clone for EventKind

Source§

fn clone(&self) -> EventKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for EventKind

Source§

impl Debug for EventKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for EventKind

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for EventKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for EventKind

Source§

impl Hash for EventKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for EventKind

Source§

fn eq(&self, other: &EventKind) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for EventKind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for EventKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.