    "console-profile-start": {},
    "timeline-data": {
      name: Arg(0, "string"),
      data: Arg(1, "json"),
      recordings: Arg(2, "array:performance-recording"),
    },
  },

  methods: {
    connect: {
      request: { options: Arg(0, "nullable:json") },
      response: RetVal("json"),
    },

    canCurrentlyRecord: {
      request: {},
      response: { value: RetVal("json") },
    },

    startRecording: {
      request: {
        options: Arg(0, "nullable:json"),
      },
      response: {
        recording: RetVal("nullable:performance-recording"),
      },
    },

    stopRecording: {
      request: {
        options: Arg(0, "performance-recording"),
      },
      response: {
        recording: RetVal("performance-recording"),
      },
    },

    isRecording: {
      request: {},
      response: { isRecording: RetVal("boolean") },
    },

    getRecordings: {
      request: {},
      response: { recordings: RetVal("array:performance-recording") },
    },

    getConfiguration: {
      request: {},
      response: { config: RetVal("json") },
    },

    setProfilerStatusInterval: {
      request: { interval: Arg(0, "number") },
      oneway: true,
    },
  },
});

exports.performanceSpec = performanceSpec;
PK