O1Library Docs
Fall 2023
Docs API

# tracing

o1.gui.viewimpl.tracing$
object tracing

This object provides internal tooling that enable o1.gui’s `View`s to record “traces” of ticks and GUI events.

## Attributes

Graph
Supertypes
  class Object
  trait Matchable
  class Any
Self type
  tracing.type

## Members list

### Type members

#### Classlikes

trait GeneratesTrace[Model, TraceData]

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Known subtypes
  trait TraceGeneratingView[Model, TraceData]
  class Traced[TraceData]
  class Traced[TraceData]
  trait TraceGeneratingView[Model, TraceData]
  class Traced[TraceData]
  class Traced[TraceData]
  Show all

case class TraceAborted[TraceData](message: String, partialTrace: Seq[(TraceData, TraceEvent)]) extends RuntimeException

Represents situations where a `View` hasn’t reached its done state in the allotted number of ticks.

Represents situations where a `View` hasn’t reached its done state in the allotted number of ticks.

## Type parameters

TraceData

  the type of the model-state descriptions in the trace

## Parameters

partialTrace

  the trace collected until the view was aborted.

## Attributes

Supertypes
  trait Product
  trait Equals
  class RuntimeException
  class Exception
  class Throwable
  trait Serializable
  class Object
  trait Matchable
  class Any
  Show all

object TraceEvent

This companion object of the sealed `TraceEvent` trait provides implementations for the trait. They can be used for tracing different kinds of events.

This companion object of the sealed `TraceEvent` trait provides implementations for the trait. They can be used for tracing different kinds of events.

## Attributes

Companion
  trait
Supertypes
  trait Sum
  trait Mirror
  class Object
  trait Matchable
  class Any
Self type
  TraceEvent.type

sealed trait TraceEvent

Describes a single tick or GUI event recorded while tracing a `View`. See the `TraceEvent` companion object for specific subtypes.

Describes a single tick or GUI event recorded while tracing a `View`. See the `TraceEvent` companion object for specific subtypes.

## Attributes

Companion
  object
Supertypes
  class Object
  trait Matchable
  class Any
Known subtypes
  object Init.type
  class Input[Info]
  class Tick