Profile Struct

Definition

A disposable struct for profiling code execution.

public value class Profile : IDisposable
public struct Profile : IDisposable
type Profile = struct
    interface IDisposable
Public Structure Profile
Implements IDisposable
Inheritance
Profile
Implements

Fields

Name Description
Data

Gets the collected profiling data.

Properties

Name Description
IsEnabled

Gets whether profiling is enabled.

Methods

Name Description
Dispose()

Disposes the profile and records the elapsed time.

Enable()

Enables profiling and initializes data structures.

FrameBegin(String, Int32)

Begins a new profiling frame.

FrameEnd(String)

Ends the current profiling frame.

FramePartition(String, Int32)

Creates a partition within the current frame.

Start()

Starts profiling.

Stop()

Stops profiling and unwinds the stack.

Applies to