Skip to content

Commit a7ffc2e

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent 2e46796 commit a7ffc2e

23 files changed

+197
-431
lines changed

gen-src/ChromeDevtoolsProtocol/Domain/ProfilerDomain.php

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
use ChromeDevtoolsProtocol\Model\Profiler\ConsoleProfileFinishedEvent;
88
use ChromeDevtoolsProtocol\Model\Profiler\ConsoleProfileStartedEvent;
99
use ChromeDevtoolsProtocol\Model\Profiler\GetBestEffortCoverageResponse;
10-
use ChromeDevtoolsProtocol\Model\Profiler\GetCountersResponse;
11-
use ChromeDevtoolsProtocol\Model\Profiler\GetRuntimeCallStatsResponse;
1210
use ChromeDevtoolsProtocol\Model\Profiler\PreciseCoverageDeltaUpdateEvent;
1311
use ChromeDevtoolsProtocol\Model\Profiler\SetSamplingIntervalRequest;
1412
use ChromeDevtoolsProtocol\Model\Profiler\StartPreciseCoverageRequest;
@@ -37,41 +35,13 @@ public function disable(ContextInterface $ctx): void
3735
}
3836

3937

40-
public function disableCounters(ContextInterface $ctx): void
41-
{
42-
$request = new \stdClass();
43-
$this->internalClient->executeCommand($ctx, 'Profiler.disableCounters', $request);
44-
}
45-
46-
47-
public function disableRuntimeCallStats(ContextInterface $ctx): void
48-
{
49-
$request = new \stdClass();
50-
$this->internalClient->executeCommand($ctx, 'Profiler.disableRuntimeCallStats', $request);
51-
}
52-
53-
5438
public function enable(ContextInterface $ctx): void
5539
{
5640
$request = new \stdClass();
5741
$this->internalClient->executeCommand($ctx, 'Profiler.enable', $request);
5842
}
5943

6044

61-
public function enableCounters(ContextInterface $ctx): void
62-
{
63-
$request = new \stdClass();
64-
$this->internalClient->executeCommand($ctx, 'Profiler.enableCounters', $request);
65-
}
66-
67-
68-
public function enableRuntimeCallStats(ContextInterface $ctx): void
69-
{
70-
$request = new \stdClass();
71-
$this->internalClient->executeCommand($ctx, 'Profiler.enableRuntimeCallStats', $request);
72-
}
73-
74-
7545
public function getBestEffortCoverage(ContextInterface $ctx): GetBestEffortCoverageResponse
7646
{
7747
$request = new \stdClass();
@@ -80,22 +50,6 @@ public function getBestEffortCoverage(ContextInterface $ctx): GetBestEffortCover
8050
}
8151

8252

83-
public function getCounters(ContextInterface $ctx): GetCountersResponse
84-
{
85-
$request = new \stdClass();
86-
$response = $this->internalClient->executeCommand($ctx, 'Profiler.getCounters', $request);
87-
return GetCountersResponse::fromJson($response);
88-
}
89-
90-
91-
public function getRuntimeCallStats(ContextInterface $ctx): GetRuntimeCallStatsResponse
92-
{
93-
$request = new \stdClass();
94-
$response = $this->internalClient->executeCommand($ctx, 'Profiler.getRuntimeCallStats', $request);
95-
return GetRuntimeCallStatsResponse::fromJson($response);
96-
}
97-
98-
9953
public function setSamplingInterval(ContextInterface $ctx, SetSamplingIntervalRequest $request): void
10054
{
10155
$this->internalClient->executeCommand($ctx, 'Profiler.setSamplingInterval', $request);

gen-src/ChromeDevtoolsProtocol/Domain/ProfilerDomainInterface.php

Lines changed: 2 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
use ChromeDevtoolsProtocol\Model\Profiler\ConsoleProfileFinishedEvent;
77
use ChromeDevtoolsProtocol\Model\Profiler\ConsoleProfileStartedEvent;
88
use ChromeDevtoolsProtocol\Model\Profiler\GetBestEffortCoverageResponse;
9-
use ChromeDevtoolsProtocol\Model\Profiler\GetCountersResponse;
10-
use ChromeDevtoolsProtocol\Model\Profiler\GetRuntimeCallStatsResponse;
119
use ChromeDevtoolsProtocol\Model\Profiler\PreciseCoverageDeltaUpdateEvent;
1210
use ChromeDevtoolsProtocol\Model\Profiler\SetSamplingIntervalRequest;
1311
use ChromeDevtoolsProtocol\Model\Profiler\StartPreciseCoverageRequest;
@@ -36,26 +34,6 @@ interface ProfilerDomainInterface
3634
public function disable(ContextInterface $ctx): void;
3735

3836

39-
/**
40-
* Disable counters collection.
41-
*
42-
* @param ContextInterface $ctx
43-
*
44-
* @return void
45-
*/
46-
public function disableCounters(ContextInterface $ctx): void;
47-
48-
49-
/**
50-
* Disable run time call stats collection.
51-
*
52-
* @param ContextInterface $ctx
53-
*
54-
* @return void
55-
*/
56-
public function disableRuntimeCallStats(ContextInterface $ctx): void;
57-
58-
5937
/**
6038
* Call Profiler.enable command.
6139
*
@@ -66,26 +44,6 @@ public function disableRuntimeCallStats(ContextInterface $ctx): void;
6644
public function enable(ContextInterface $ctx): void;
6745

6846

69-
/**
70-
* Enable counters collection.
71-
*
72-
* @param ContextInterface $ctx
73-
*
74-
* @return void
75-
*/
76-
public function enableCounters(ContextInterface $ctx): void;
77-
78-
79-
/**
80-
* Enable run time call stats collection.
81-
*
82-
* @param ContextInterface $ctx
83-
*
84-
* @return void
85-
*/
86-
public function enableRuntimeCallStats(ContextInterface $ctx): void;
87-
88-
8947
/**
9048
* Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
9149
*
@@ -96,26 +54,6 @@ public function enableRuntimeCallStats(ContextInterface $ctx): void;
9654
public function getBestEffortCoverage(ContextInterface $ctx): GetBestEffortCoverageResponse;
9755

9856

99-
/**
100-
* Retrieve counters.
101-
*
102-
* @param ContextInterface $ctx
103-
*
104-
* @return GetCountersResponse
105-
*/
106-
public function getCounters(ContextInterface $ctx): GetCountersResponse;
107-
108-
109-
/**
110-
* Retrieve run time call stats.
111-
*
112-
* @param ContextInterface $ctx
113-
*
114-
* @return GetRuntimeCallStatsResponse
115-
*/
116-
public function getRuntimeCallStats(ContextInterface $ctx): GetRuntimeCallStatsResponse;
117-
118-
11957
/**
12058
* Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
12159
*
@@ -260,7 +198,7 @@ public function awaitConsoleProfileStarted(ContextInterface $ctx): ConsoleProfil
260198

261199

262200
/**
263-
* Reports coverage delta since the last poll (either from an event like this, or from `takePreciseCoverage` for the current isolate. May only be sent if precise code coverage has been started. This event can be trigged by the embedder to, for example, trigger collection of coverage data immediatelly at a certain point in time.
201+
* Reports coverage delta since the last poll (either from an event like this, or from `takePreciseCoverage` for the current isolate. May only be sent if precise code coverage has been started. This event can be trigged by the embedder to, for example, trigger collection of coverage data immediately at a certain point in time.
264202
*
265203
* Listener will be called whenever event Profiler.preciseCoverageDeltaUpdate is fired.
266204
*
@@ -272,7 +210,7 @@ public function addPreciseCoverageDeltaUpdateListener(callable $listener): Subsc
272210

273211

274212
/**
275-
* Reports coverage delta since the last poll (either from an event like this, or from `takePreciseCoverage` for the current isolate. May only be sent if precise code coverage has been started. This event can be trigged by the embedder to, for example, trigger collection of coverage data immediatelly at a certain point in time.
213+
* Reports coverage delta since the last poll (either from an event like this, or from `takePreciseCoverage` for the current isolate. May only be sent if precise code coverage has been started. This event can be trigged by the embedder to, for example, trigger collection of coverage data immediately at a certain point in time.
276214
*
277215
* Method will block until first Profiler.preciseCoverageDeltaUpdate event is fired.
278216
*

gen-src/ChromeDevtoolsProtocol/Model/Debugger/EnableRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
final class EnableRequest implements \JsonSerializable
1313
{
1414
/**
15-
* The maximum size in bytes of collected scripts (not referenced by other heap objects) the debugger can hold. Puts no limit if paramter is omitted.
15+
* The maximum size in bytes of collected scripts (not referenced by other heap objects) the debugger can hold. Puts no limit if parameter is omitted.
1616
*
1717
* @var int|float|null
1818
*/

gen-src/ChromeDevtoolsProtocol/Model/HeapProfiler/StopTrackingHeapObjectsRequest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ final class StopTrackingHeapObjectsRequest implements \JsonSerializable
2121
/** @var bool|null */
2222
public $treatGlobalObjectsAsRoots;
2323

24+
/**
25+
* If true, numerical values are included in the snapshot
26+
*
27+
* @var bool|null
28+
*/
29+
public $captureNumericValue;
30+
2431

2532
public static function fromJson($data)
2633
{
@@ -31,6 +38,9 @@ public static function fromJson($data)
3138
if (isset($data->treatGlobalObjectsAsRoots)) {
3239
$instance->treatGlobalObjectsAsRoots = (bool)$data->treatGlobalObjectsAsRoots;
3340
}
41+
if (isset($data->captureNumericValue)) {
42+
$instance->captureNumericValue = (bool)$data->captureNumericValue;
43+
}
3444
return $instance;
3545
}
3646

@@ -44,6 +54,9 @@ public function jsonSerialize()
4454
if ($this->treatGlobalObjectsAsRoots !== null) {
4555
$data->treatGlobalObjectsAsRoots = $this->treatGlobalObjectsAsRoots;
4656
}
57+
if ($this->captureNumericValue !== null) {
58+
$data->captureNumericValue = $this->captureNumericValue;
59+
}
4760
return $data;
4861
}
4962

gen-src/ChromeDevtoolsProtocol/Model/HeapProfiler/StopTrackingHeapObjectsRequestBuilder.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ final class StopTrackingHeapObjectsRequestBuilder
1111
{
1212
private $reportProgress;
1313
private $treatGlobalObjectsAsRoots;
14+
private $captureNumericValue;
1415

1516

1617
/**
@@ -21,6 +22,7 @@ public function build(): StopTrackingHeapObjectsRequest
2122
$instance = new StopTrackingHeapObjectsRequest();
2223
$instance->reportProgress = $this->reportProgress;
2324
$instance->treatGlobalObjectsAsRoots = $this->treatGlobalObjectsAsRoots;
25+
$instance->captureNumericValue = $this->captureNumericValue;
2426
return $instance;
2527
}
2628

@@ -47,4 +49,16 @@ public function setTreatGlobalObjectsAsRoots($treatGlobalObjectsAsRoots): self
4749
$this->treatGlobalObjectsAsRoots = $treatGlobalObjectsAsRoots;
4850
return $this;
4951
}
52+
53+
54+
/**
55+
* @param bool|null $captureNumericValue
56+
*
57+
* @return self
58+
*/
59+
public function setCaptureNumericValue($captureNumericValue): self
60+
{
61+
$this->captureNumericValue = $captureNumericValue;
62+
return $this;
63+
}
5064
}

gen-src/ChromeDevtoolsProtocol/Model/HeapProfiler/TakeHeapSnapshotRequest.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,19 @@ final class TakeHeapSnapshotRequest implements \JsonSerializable
1919
public $reportProgress;
2020

2121
/**
22-
* If true, a raw snapshot without artifical roots will be generated
22+
* If true, a raw snapshot without artificial roots will be generated
2323
*
2424
* @var bool|null
2525
*/
2626
public $treatGlobalObjectsAsRoots;
2727

28+
/**
29+
* If true, numerical values are included in the snapshot
30+
*
31+
* @var bool|null
32+
*/
33+
public $captureNumericValue;
34+
2835

2936
public static function fromJson($data)
3037
{
@@ -35,6 +42,9 @@ public static function fromJson($data)
3542
if (isset($data->treatGlobalObjectsAsRoots)) {
3643
$instance->treatGlobalObjectsAsRoots = (bool)$data->treatGlobalObjectsAsRoots;
3744
}
45+
if (isset($data->captureNumericValue)) {
46+
$instance->captureNumericValue = (bool)$data->captureNumericValue;
47+
}
3848
return $instance;
3949
}
4050

@@ -48,6 +58,9 @@ public function jsonSerialize()
4858
if ($this->treatGlobalObjectsAsRoots !== null) {
4959
$data->treatGlobalObjectsAsRoots = $this->treatGlobalObjectsAsRoots;
5060
}
61+
if ($this->captureNumericValue !== null) {
62+
$data->captureNumericValue = $this->captureNumericValue;
63+
}
5164
return $data;
5265
}
5366

gen-src/ChromeDevtoolsProtocol/Model/HeapProfiler/TakeHeapSnapshotRequestBuilder.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ final class TakeHeapSnapshotRequestBuilder
1111
{
1212
private $reportProgress;
1313
private $treatGlobalObjectsAsRoots;
14+
private $captureNumericValue;
1415

1516

1617
/**
@@ -21,6 +22,7 @@ public function build(): TakeHeapSnapshotRequest
2122
$instance = new TakeHeapSnapshotRequest();
2223
$instance->reportProgress = $this->reportProgress;
2324
$instance->treatGlobalObjectsAsRoots = $this->treatGlobalObjectsAsRoots;
25+
$instance->captureNumericValue = $this->captureNumericValue;
2426
return $instance;
2527
}
2628

@@ -47,4 +49,16 @@ public function setTreatGlobalObjectsAsRoots($treatGlobalObjectsAsRoots): self
4749
$this->treatGlobalObjectsAsRoots = $treatGlobalObjectsAsRoots;
4850
return $this;
4951
}
52+
53+
54+
/**
55+
* @param bool|null $captureNumericValue
56+
*
57+
* @return self
58+
*/
59+
public function setCaptureNumericValue($captureNumericValue): self
60+
{
61+
$this->captureNumericValue = $captureNumericValue;
62+
return $this;
63+
}
5064
}

gen-src/ChromeDevtoolsProtocol/Model/Profiler/CounterInfo.php

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)