|
1 | 1 | // Copyright 2004-present Facebook. All Rights Reserved.
|
2 |
| -// @generated SignedSource<<633984dcfe87d2822ef0e80c1aab93ef>> |
| 2 | +// @generated SignedSource<<4ab81efd6f767bd583d00c806b7d1d9b>> |
3 | 3 |
|
4 | 4 | #include "MessageTypes.h"
|
5 | 5 |
|
@@ -40,6 +40,10 @@ std::unique_ptr<Request> Request::fromJsonThrowOnError(const std::string &str) {
|
40 | 40 | {"Debugger.stepInto", makeUnique<debugger::StepIntoRequest>},
|
41 | 41 | {"Debugger.stepOut", makeUnique<debugger::StepOutRequest>},
|
42 | 42 | {"Debugger.stepOver", makeUnique<debugger::StepOverRequest>},
|
| 43 | + {"HeapProfiler.startTrackingHeapObjects", |
| 44 | + makeUnique<heapProfiler::StartTrackingHeapObjectsRequest>}, |
| 45 | + {"HeapProfiler.stopTrackingHeapObjects", |
| 46 | + makeUnique<heapProfiler::StopTrackingHeapObjectsRequest>}, |
43 | 47 | {"HeapProfiler.takeHeapSnapshot",
|
44 | 48 | makeUnique<heapProfiler::TakeHeapSnapshotRequest>},
|
45 | 49 | {"Runtime.evaluate", makeUnique<runtime::EvaluateRequest>},
|
@@ -587,6 +591,66 @@ void debugger::StepOverRequest::accept(RequestHandler &handler) const {
|
587 | 591 | handler.handle(*this);
|
588 | 592 | }
|
589 | 593 |
|
| 594 | +heapProfiler::StartTrackingHeapObjectsRequest::StartTrackingHeapObjectsRequest() |
| 595 | + : Request("HeapProfiler.startTrackingHeapObjects") {} |
| 596 | + |
| 597 | +heapProfiler::StartTrackingHeapObjectsRequest::StartTrackingHeapObjectsRequest( |
| 598 | + const dynamic &obj) |
| 599 | + : Request("HeapProfiler.startTrackingHeapObjects") { |
| 600 | + assign(id, obj, "id"); |
| 601 | + assign(method, obj, "method"); |
| 602 | + |
| 603 | + dynamic params = obj.at("params"); |
| 604 | + assign(trackAllocations, params, "trackAllocations"); |
| 605 | +} |
| 606 | + |
| 607 | +dynamic heapProfiler::StartTrackingHeapObjectsRequest::toDynamic() const { |
| 608 | + dynamic params = dynamic::object; |
| 609 | + put(params, "trackAllocations", trackAllocations); |
| 610 | + |
| 611 | + dynamic obj = dynamic::object; |
| 612 | + put(obj, "id", id); |
| 613 | + put(obj, "method", method); |
| 614 | + put(obj, "params", std::move(params)); |
| 615 | + return obj; |
| 616 | +} |
| 617 | + |
| 618 | +void heapProfiler::StartTrackingHeapObjectsRequest::accept( |
| 619 | + RequestHandler &handler) const { |
| 620 | + handler.handle(*this); |
| 621 | +} |
| 622 | + |
| 623 | +heapProfiler::StopTrackingHeapObjectsRequest::StopTrackingHeapObjectsRequest() |
| 624 | + : Request("HeapProfiler.stopTrackingHeapObjects") {} |
| 625 | + |
| 626 | +heapProfiler::StopTrackingHeapObjectsRequest::StopTrackingHeapObjectsRequest( |
| 627 | + const dynamic &obj) |
| 628 | + : Request("HeapProfiler.stopTrackingHeapObjects") { |
| 629 | + assign(id, obj, "id"); |
| 630 | + assign(method, obj, "method"); |
| 631 | + |
| 632 | + dynamic params = obj.at("params"); |
| 633 | + assign(reportProgress, params, "reportProgress"); |
| 634 | + assign(treatGlobalObjectsAsRoots, params, "treatGlobalObjectsAsRoots"); |
| 635 | +} |
| 636 | + |
| 637 | +dynamic heapProfiler::StopTrackingHeapObjectsRequest::toDynamic() const { |
| 638 | + dynamic params = dynamic::object; |
| 639 | + put(params, "reportProgress", reportProgress); |
| 640 | + put(params, "treatGlobalObjectsAsRoots", treatGlobalObjectsAsRoots); |
| 641 | + |
| 642 | + dynamic obj = dynamic::object; |
| 643 | + put(obj, "id", id); |
| 644 | + put(obj, "method", method); |
| 645 | + put(obj, "params", std::move(params)); |
| 646 | + return obj; |
| 647 | +} |
| 648 | + |
| 649 | +void heapProfiler::StopTrackingHeapObjectsRequest::accept( |
| 650 | + RequestHandler &handler) const { |
| 651 | + handler.handle(*this); |
| 652 | +} |
| 653 | + |
590 | 654 | heapProfiler::TakeHeapSnapshotRequest::TakeHeapSnapshotRequest()
|
591 | 655 | : Request("HeapProfiler.takeHeapSnapshot") {}
|
592 | 656 |
|
|
0 commit comments