Tracing Performance in Effect Typescript Without Many Packages

are there easy way to trace performance without adding 7,8 new packages ?
const task = Effect.gen(function* () {
  yield* Effect.sleep("2 seconds");
  console.log("task");
}).pipe(Effect.withSpan("task")); //expect print: execute time 2000

const program = Effect.gen(function* () {
  yield* task;
  yield* task;
  console.log("end");
});

const MainLayer = Layer.mergeAll(Layer.empty).pipe(
  Layer.provide(Logger.pretty),
);
const runnable = program.pipe(Effect.provide(MainLayer));
Was this page helpful?