;

  // Minimum gap between task clusters for determining First CPU Idle.
  const FCI_MIN_CLUSTER_SEPARATION_MS = 1000;

  // Minimum duration of a task cluster to consider it heavy.
  const TASK_CLUSTER_HEAVINESS_THRESHOLD_MS = 250;

  /**
   * Enum for endpoint types.
   * @enum {string}
   */
  const ENDPOINT_TYPES = {
    LONG_TASK_START: 'LONG_TASK_START',
    LONG_TASK_END: 'LONG_TASK_END',
    REQUEST_START: 'REQUEST_START',
    REQUEST_END: 'REQUEST_END'
  };

  /**
   * @typedef {Object} Endpoint
 