chromium/third_party/blink/renderer/core/timing/profiler_sample.idl

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://wicg.github.io/js-self-profiling/#the-profilersample-dictionary
// https://github.com/WICG/js-self-profiling/pull/64
enum ProfilerMarker { "gc", "layout", "paint", "script", "style" };

dictionary ProfilerSample {
  required DOMHighResTimeStamp timestamp;
  unsigned long long stackId;
  [RuntimeEnabled=ExperimentalJSProfilerMarkers, CrossOriginIsolated] ProfilerMarker marker;
};