# floatTrace

A float trace record carrying label, origin, values, note.

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 floatTrace
```

- text label: Stores label as text.
- text origin: Stores origin as text.
- list of float values: Stores values as list of float.
- text note: Stores note as text.
- floatTrace(text label, text origin, list of float values, text note): Float trace.
- HasValues() returns bool: Has values.
- Count() returns int: Count.
- FirstValue() returns float: First value.
- LastValue() returns float: Last value.
- HasNaN() returns bool: Has na n.
- HasPositiveInfinity() returns bool: Has positive infinity.
- HasNegativeInfinity() returns bool: Has negative infinity.
- HasNonFinite() returns bool: Has non finite.
- NonFiniteCount() returns int: Non finite count.
- Minimum() returns float: Minimum.
- Maximum() returns float: Maximum.
- Span() returns float: Span.
- Describe() returns text: Describe.

## Use floatTrace

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.
floatTrace sample = floatTrace("Player health", "origin", [], "note")
Console.Log(Text.From(sample.label))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__floattrace"
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--floatTrace/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## floatTrace.HasValues

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Has values.
floatTrace instance = floatTrace("Player health", "origin", [], "note")
bool result = instance.HasValues()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__floattrace"
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--floatTrace/method-HasValues-5 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## floatTrace.Count

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Count.
floatTrace instance = floatTrace("Player health", "origin", [], "note")
int result = instance.Count()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__floattrace"
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--floatTrace/method-Count-6 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## floatTrace.FirstValue

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// First value.
floatTrace instance = floatTrace("Player health", "origin", [], "note")
float result = instance.FirstValue()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__floattrace"
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--floatTrace/method-FirstValue-7 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## floatTrace.LastValue

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Last value.
floatTrace instance = floatTrace("Player health", "origin", [], "note")
float result = instance.LastValue()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__floattrace"
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--floatTrace/method-LastValue-8 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## floatTrace.HasNaN

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Has na n.
floatTrace instance = floatTrace("Player health", "origin", [], "note")
bool result = instance.HasNaN()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__floattrace"
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--floatTrace/method-HasNaN-9 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## floatTrace.HasPositiveInfinity

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Has positive infinity.
floatTrace instance = floatTrace("Player health", "origin", [], "note")
bool result = instance.HasPositiveInfinity()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__floattrace"
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--floatTrace/method-HasPositiveInfinity-10 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## floatTrace.HasNegativeInfinity

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Has negative infinity.
floatTrace instance = floatTrace("Player health", "origin", [], "note")
bool result = instance.HasNegativeInfinity()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__floattrace"
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--floatTrace/method-HasNegativeInfinity-11 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## floatTrace.HasNonFinite

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Has non finite.
floatTrace instance = floatTrace("Player health", "origin", [], "note")
bool result = instance.HasNonFinite()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__floattrace"
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--floatTrace/method-HasNonFinite-12 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## floatTrace.NonFiniteCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Non finite count.
floatTrace instance = floatTrace("Player health", "origin", [], "note")
int result = instance.NonFiniteCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__floattrace"
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--floatTrace/method-NonFiniteCount-13 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## floatTrace.Minimum

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Minimum.
floatTrace instance = floatTrace("Player health", "origin", [], "note")
float result = instance.Minimum()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__floattrace"
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--floatTrace/method-Minimum-14 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## floatTrace.Maximum

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Maximum.
floatTrace instance = floatTrace("Player health", "origin", [], "note")
float result = instance.Maximum()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__floattrace"
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--floatTrace/method-Maximum-15 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## floatTrace.Span

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.profiling

// Span.
floatTrace instance = floatTrace("Player health", "origin", [], "note")
float result = instance.Span()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_profiling__floattrace"
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--floatTrace/method-Span-16 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## floatTrace.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.
floatTrace instance = floatTrace("Player health", "origin", [], "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__floattrace"
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--floatTrace/method-Describe-17 --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
