Function profilerEvent

  • Decorates a method with a ProfilerEvent.sample call.

    Parameters

    • Optionalname: string

      Optional.Specifies the name of the profiler sample.If not specified, will use the name of the method.

    Returns ((target: any, key: string, descriptor: PropertyDescriptor) => void)

      • (target, key, descriptor): void
      • Parameters

        • target: any
        • key: string
        • descriptor: PropertyDescriptor

        Returns void

    ProfilerEvent.sample