heap-snapshot-file.js 547 B

123456789101112131415161718192021
  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 heapSnapshotFileSpec = generateActorSpec({
  7. typeName: "heapSnapshotFile",
  8. methods: {
  9. transferHeapSnapshot: {
  10. request: {
  11. snapshotId: Arg(0, "string")
  12. }
  13. }
  14. },
  15. });
  16. exports.heapSnapshotFileSpec = heapSnapshotFileSpec;