Documentation
    Preparing search index...

    Function mark

    • Record a performance mark, if enabled and supported.

      Parameters

      • name: string

        The name for the performance mark.

      Returns void

      Creates a named mark using performance.mark(name) when:

      • Running in development mode,
      • options.perf is true,
      • The Performance API is available.

      Use together with measure to create durations between two marks.

      mark("build:start");
      // … work …
      mark("build:end");
      measure("build", "build:start", "build:end");