← ZIO Profiling docs

SamplingProfilerSupervisor

zio.profiling.sampling.SamplingProfilerSupervisor

Attributes

Source
SamplingProfilerSupervisor.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def onEnd[R, E, A](value: Exit[E, A], fiber: Runtime[E, A])(implicit unsafe: Unsafe): Unit
override def onResume[E, A](fiber: Runtime[E, A])(implicit unsafe: Unsafe): Unit

Attributes

Definition Classes
Source
SamplingProfilerSupervisor.scala
def onStart[R, E, A](environment: ZEnvironment[R], effect: ZIO[R, E, A], parent: Option[Runtime[Any, Any]], fiber: Runtime[E, A])(implicit unsafe: Unsafe): Unit
override def onSuspend[E, A](fiber: Runtime[E, A])(implicit unsafe: Unsafe): Unit

Attributes

Definition Classes
Source
SamplingProfilerSupervisor.scala
def reset(): Unit

Impure api. Reset all collected profiling data

Impure api. Reset all collected profiling data

Attributes

Source
SamplingProfilerSupervisor.scala
def sample(): Unit

Impure api. Run a single sampling step.

Impure api. Run a single sampling step.

Attributes

Source
SamplingProfilerSupervisor.scala
def value(implicit trace: Trace): UIO[ProfilingResult]

Returns an effect that succeeds with the value produced by this supervisor. This value may change over time, reflecting what the supervisor produces as it supervises fibers.

Returns an effect that succeeds with the value produced by this supervisor. This value may change over time, reflecting what the supervisor produces as it supervises fibers.

Attributes

Source
SamplingProfilerSupervisor.scala

Inherited methods

final def ++[B](that: Supervisor[B]): Supervisor[(ProfilingResult, B)]

Returns a new supervisor that performs the function of this supervisor, and the function of the specified supervisor, producing a tuple of the outputs produced by both supervisors.

Returns a new supervisor that performs the function of this supervisor, and the function of the specified supervisor, producing a tuple of the outputs produced by both supervisors.

Attributes

Inherited from:
Supervisor
Source
Supervisor.scala
def map[B](f: ProfilingResult => B): Supervisor[B]

Maps this supervisor to another one, which has the same effect, but whose value has been transformed by the specified function.

Maps this supervisor to another one, which has the same effect, but whose value has been transformed by the specified function.

Attributes

Inherited from:
Supervisor
Source
Supervisor.scala
def onEffect[E, A](fiber: Runtime[E, A], effect: ZIO[_, _, _])(implicit unsafe: Unsafe): Unit

Attributes

Inherited from:
Supervisor
Source
Supervisor.scala