performance-entries.js 651 B

1234567891011121314151617181920212223242526
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. "use strict";
  5. const { Arg, generateActorSpec } = require("devtools/shared/protocol");
  6. const performanceEntriesSpec = generateActorSpec({
  7. typeName: "performanceEntries",
  8. events: {
  9. "entry": {
  10. type: "entry",
  11. // object containing performance entry name, type, origin, and epoch.
  12. detail: Arg(0, "json")
  13. }
  14. },
  15. methods: {
  16. start: {},
  17. stop: {}
  18. }
  19. });
  20. exports.performanceEntriesSpec = performanceEntriesSpec;