← ZIO Profiling docs

SamplingProfiler

zio.profiling.sampling.SamplingProfiler
final case class SamplingProfiler(samplingPeriod: Duration = ...)

Attributes

Source
SamplingProfiler.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def profile[R, E](zio: ZIO[R, E, Any]): ZIO[R, E, ProfilingResult]

Profile a program and get the resulting profile data.

Profile a program and get the resulting profile data.

Attributes

Source
SamplingProfiler.scala

Create a runtime that will profile all effects executed with it. Use runtime.environment.get in order to get a reference to the supervisor. Make sure to shut down the runtime when done.

Create a runtime that will profile all effects executed with it. Use runtime.environment.get in order to get a reference to the supervisor. Make sure to shut down the runtime when done.

Attributes

Source
SamplingProfiler.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product