# profileReport

A profile report record carrying label, timings, traces, floatTraces, events, and related state.

Last updated: 2026-09-09

Package: compute.profiling | Status: source-declared

Tags: compute, compute.profiling, cpu, method, profiling, source-example, thing, yeho

Collect and describe compute timing, work, and profiling records.

```yh
external thing profileReport
```

- text label: Stores label as text.
- list of profileTiming timings: Stores timings as list of profileTiming.
- list of profileTrace traces: Stores traces as list of profileTrace.
- list of floatTrace floatTraces: Stores float traces as list of floatTrace.
- list of executionEvent events: Stores events as list of executionEvent.
- memoryTimeline memory: Stores memory as memoryTimeline.
- text note: Stores note as text.
- profileReport(text label, text note): Profile report.
- AddTiming(profileTiming timing): Add timing.
- AddTrace(profileTrace trace): Add trace.
- AddFloatTrace(floatTrace trace): Add float trace.
- AddEvent(executionEvent event): Add event.
- AddMemorySample(memorySample sample): Add memory sample.
- SetMemoryTimeline(memoryTimeline timeline): Set memory timeline.
- TimingCount() returns int: Timing count.
- TraceCount() returns int: Trace count.
- FloatTraceCount() returns int: Float trace count.
- EventCount() returns int: Event count.
- MemorySampleCount() returns int: Memory sample count.
- MemoryPeakBytes() returns int: Memory peak bytes.
- Describe() returns text: Describe.

## Use profileReport

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

Verification: type checked

```yh
using compute.profiling

// Collect and describe compute timing, work, and profiling records.
profileReport sample = profileReport("Player health", "note")
Console.Log(Text.From(sample.label))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__profilereport"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.profiling"
version = "0.1.0"
path = "../../../yeho/packages/compute/profiling"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.profiling--profileReport/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## profileReport.AddTiming

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Add timing.
profileReport instance = profileReport("Player health", "note")
profileTiming argument_timing = profileTiming("Player health", "stage", "origin", 1, 1, "note")
instance.AddTiming(argument_timing)
Console.Log("AddTiming completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__profilereport"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.profiling"
version = "0.1.0"
path = "../../../yeho/packages/compute/profiling"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.profiling--profileReport/method-AddTiming-8 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## profileReport.AddTrace

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Add trace.
profileReport instance = profileReport("Player health", "note")
profileTrace argument_trace = profileTrace("Player health", shapeTrace("Player health", "origin", tensorShape("element Type", []), "note"), valueTrace("Player health", "origin", [], "note"), "note")
instance.AddTrace(argument_trace)
Console.Log("AddTrace completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__profilereport"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.profiling"
version = "0.1.0"
path = "../../../yeho/packages/compute/profiling"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.profiling--profileReport/method-AddTrace-9 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## profileReport.AddFloatTrace

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Add float trace.
profileReport instance = profileReport("Player health", "note")
floatTrace argument_trace = floatTrace("Player health", "origin", [], "note")
instance.AddFloatTrace(argument_trace)
Console.Log("AddFloatTrace completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__profilereport"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.profiling"
version = "0.1.0"
path = "../../../yeho/packages/compute/profiling"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.profiling--profileReport/method-AddFloatTrace-10 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## profileReport.AddEvent

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Add event.
profileReport instance = profileReport("Player health", "note")
executionEvent argument_event = executionEvent("Player health", "stage", "cpu-oracle", "subject", profileTiming("Player health", "stage", "origin", 1, 1, "note"), "ready", "note")
instance.AddEvent(argument_event)
Console.Log("AddEvent completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__profilereport"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.profiling"
version = "0.1.0"
path = "../../../yeho/packages/compute/profiling"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.profiling--profileReport/method-AddEvent-11 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## profileReport.AddMemorySample

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Add memory sample.
profileReport instance = profileReport("Player health", "note")
memorySample argument_sample = memorySample("Player health", "stage", "device", 4, 4, 4, 4, "note")
instance.AddMemorySample(argument_sample)
Console.Log("AddMemorySample completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__profilereport"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.profiling"
version = "0.1.0"
path = "../../../yeho/packages/compute/profiling"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.profiling--profileReport/method-AddMemorySample-12 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## profileReport.SetMemoryTimeline

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Set memory timeline.
profileReport instance = profileReport("Player health", "note")
memoryTimeline argument_timeline = memoryTimeline("Player health", "note")
instance.SetMemoryTimeline(argument_timeline)
Console.Log("SetMemoryTimeline completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__profilereport"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.profiling"
version = "0.1.0"
path = "../../../yeho/packages/compute/profiling"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.profiling--profileReport/method-SetMemoryTimeline-13 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## profileReport.TimingCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Timing count.
profileReport instance = profileReport("Player health", "note")
int result = instance.TimingCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__profilereport"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.profiling"
version = "0.1.0"
path = "../../../yeho/packages/compute/profiling"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.profiling--profileReport/method-TimingCount-14 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## profileReport.TraceCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Trace count.
profileReport instance = profileReport("Player health", "note")
int result = instance.TraceCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__profilereport"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.profiling"
version = "0.1.0"
path = "../../../yeho/packages/compute/profiling"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.profiling--profileReport/method-TraceCount-15 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## profileReport.FloatTraceCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Float trace count.
profileReport instance = profileReport("Player health", "note")
int result = instance.FloatTraceCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__profilereport"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.profiling"
version = "0.1.0"
path = "../../../yeho/packages/compute/profiling"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.profiling--profileReport/method-FloatTraceCount-16 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## profileReport.EventCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Event count.
profileReport instance = profileReport("Player health", "note")
int result = instance.EventCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__profilereport"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.profiling"
version = "0.1.0"
path = "../../../yeho/packages/compute/profiling"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.profiling--profileReport/method-EventCount-17 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## profileReport.MemorySampleCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Memory sample count.
profileReport instance = profileReport("Player health", "note")
int result = instance.MemorySampleCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__profilereport"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.profiling"
version = "0.1.0"
path = "../../../yeho/packages/compute/profiling"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.profiling--profileReport/method-MemorySampleCount-18 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## profileReport.MemoryPeakBytes

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Memory peak bytes.
profileReport instance = profileReport("Player health", "note")
int result = instance.MemoryPeakBytes()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__profilereport"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.profiling"
version = "0.1.0"
path = "../../../yeho/packages/compute/profiling"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.profiling--profileReport/method-MemoryPeakBytes-19 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## profileReport.Describe

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Describe.
profileReport instance = profileReport("Player health", "note")
text result = instance.Describe()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__profilereport"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.profiling"
version = "0.1.0"
path = "../../../yeho/packages/compute/profiling"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.profiling--profileReport/method-Describe-20 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

Source: yeho/packages/compute/profiling/profiling.yh

AI training permission: https://demonhunterlabs.com/ai-use
