Skip to content

Commit b80e1c5

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent da56063 commit b80e1c5

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

gen-src/ChromeDevtoolsProtocol/Model/Tracing/TracingCompleteEvent.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
*/
1212
final class TracingCompleteEvent implements \JsonSerializable
1313
{
14+
/**
15+
* Indicates whether some trace data is known to have been lost, e.g. because the trace ring buffer wrapped around.
16+
*
17+
* @var bool
18+
*/
19+
public $dataLossOccurred;
20+
1421
/**
1522
* A handle of the stream that holds resulting trace data.
1623
*
@@ -36,6 +43,9 @@ final class TracingCompleteEvent implements \JsonSerializable
3643
public static function fromJson($data)
3744
{
3845
$instance = new static();
46+
if (isset($data->dataLossOccurred)) {
47+
$instance->dataLossOccurred = (bool)$data->dataLossOccurred;
48+
}
3949
if (isset($data->stream)) {
4050
$instance->stream = (string)$data->stream;
4151
}
@@ -52,6 +62,9 @@ public static function fromJson($data)
5262
public function jsonSerialize()
5363
{
5464
$data = new \stdClass();
65+
if ($this->dataLossOccurred !== null) {
66+
$data->dataLossOccurred = $this->dataLossOccurred;
67+
}
5568
if ($this->stream !== null) {
5669
$data->stream = $this->stream;
5770
}

protocol.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18050,6 +18050,11 @@
1805018050
"name": "tracingComplete",
1805118051
"description": "Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.",
1805218052
"parameters": [
18053+
{
18054+
"name": "dataLossOccurred",
18055+
"description": "Indicates whether some trace data is known to have been lost, e.g. because the trace ring buffer wrapped around.",
18056+
"type": "boolean"
18057+
},
1805318058
{
1805418059
"name": "stream",
1805518060
"description": "A handle of the stream that holds resulting trace data.",

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f1c51fb292b5fdad22e57dcb6ef6db92 protocol.json
1+
087fb7a9a37364023cb7298d9f58ade5 protocol.json

0 commit comments

Comments
 (0)