@supraio/client-daemon-js 0.0.0-mzstream.317 → 0.0.0-mzstream.319
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/daemon.html +1 -1
- package/daemon.js +2 -2
- package/package.json +1 -1
- package/screen.html +1 -1
- package/screen.js +2 -2
- package/sdk.js +4 -4
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +87 -54
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
package/daemon.html
CHANGED
package/daemon.js
CHANGED
|
@@ -17913,7 +17913,7 @@
|
|
|
17913
17913
|
}
|
|
17914
17914
|
|
|
17915
17915
|
// daemon/plain.ts
|
|
17916
|
-
var DAEMON_JS_URL = "supra-client-daemon.js?v=0.0.0-mzstream.
|
|
17916
|
+
var DAEMON_JS_URL = "supra-client-daemon.js?v=0.0.0-mzstream.319";
|
|
17917
17917
|
async function startPlainDaemon() {
|
|
17918
17918
|
const fs = await initBrowserFS();
|
|
17919
17919
|
window.fs = fs;
|
|
@@ -17924,7 +17924,7 @@
|
|
|
17924
17924
|
}
|
|
17925
17925
|
|
|
17926
17926
|
// daemon/wasm.ts
|
|
17927
|
-
var DAEMON_WASM_URL = "supra-client-daemon.wasm?v=0.0.0-mzstream.
|
|
17927
|
+
var DAEMON_WASM_URL = "supra-client-daemon.wasm?v=0.0.0-mzstream.319";
|
|
17928
17928
|
async function startWasmDaemon() {
|
|
17929
17929
|
await initGoEnvironment();
|
|
17930
17930
|
await startGoDaemon();
|
package/package.json
CHANGED
package/screen.html
CHANGED
package/screen.js
CHANGED
|
@@ -18124,7 +18124,7 @@
|
|
|
18124
18124
|
}
|
|
18125
18125
|
|
|
18126
18126
|
// screen/plain.ts
|
|
18127
|
-
var SCREEN_JS_URL = "supra-client-screen.js?v=0.0.0-mzstream.
|
|
18127
|
+
var SCREEN_JS_URL = "supra-client-screen.js?v=0.0.0-mzstream.319";
|
|
18128
18128
|
async function startPlainScreen(options) {
|
|
18129
18129
|
options = options != null ? options : parseQueryOptions();
|
|
18130
18130
|
initNaCLDecoder();
|
|
@@ -18150,7 +18150,7 @@
|
|
|
18150
18150
|
}
|
|
18151
18151
|
|
|
18152
18152
|
// screen/wasm.ts
|
|
18153
|
-
var SCREEN_WASM_URL = "supra-client-screen.wasm?v=0.0.0-mzstream.
|
|
18153
|
+
var SCREEN_WASM_URL = "supra-client-screen.wasm?v=0.0.0-mzstream.319";
|
|
18154
18154
|
async function startWasmScreen(options) {
|
|
18155
18155
|
options = options != null ? options : parseQueryOptions();
|
|
18156
18156
|
await initH264Decoder();
|
package/sdk.js
CHANGED
|
@@ -18081,7 +18081,7 @@ async function initGoEnvironment() {
|
|
|
18081
18081
|
}
|
|
18082
18082
|
|
|
18083
18083
|
// daemon/plain.ts
|
|
18084
|
-
var DAEMON_JS_URL = "supra-client-daemon.js?v=0.0.0-mzstream.
|
|
18084
|
+
var DAEMON_JS_URL = "supra-client-daemon.js?v=0.0.0-mzstream.319";
|
|
18085
18085
|
async function startPlainDaemon() {
|
|
18086
18086
|
const fs = await initBrowserFS();
|
|
18087
18087
|
window.fs = fs;
|
|
@@ -18092,7 +18092,7 @@ async function startPlainDaemon() {
|
|
|
18092
18092
|
}
|
|
18093
18093
|
|
|
18094
18094
|
// daemon/wasm.ts
|
|
18095
|
-
var DAEMON_WASM_URL = "supra-client-daemon.wasm?v=0.0.0-mzstream.
|
|
18095
|
+
var DAEMON_WASM_URL = "supra-client-daemon.wasm?v=0.0.0-mzstream.319";
|
|
18096
18096
|
async function startWasmDaemon() {
|
|
18097
18097
|
await initGoEnvironment();
|
|
18098
18098
|
await startGoDaemon();
|
|
@@ -18161,7 +18161,7 @@ function getGoArgv2(binFile, options) {
|
|
|
18161
18161
|
}
|
|
18162
18162
|
|
|
18163
18163
|
// screen/plain.ts
|
|
18164
|
-
var SCREEN_JS_URL = "supra-client-screen.js?v=0.0.0-mzstream.
|
|
18164
|
+
var SCREEN_JS_URL = "supra-client-screen.js?v=0.0.0-mzstream.319";
|
|
18165
18165
|
async function startPlainScreen(options) {
|
|
18166
18166
|
options = options != null ? options : parseQueryOptions();
|
|
18167
18167
|
initNaCLDecoder();
|
|
@@ -18187,7 +18187,7 @@ async function createH264Decoder() {
|
|
|
18187
18187
|
}
|
|
18188
18188
|
|
|
18189
18189
|
// screen/wasm.ts
|
|
18190
|
-
var SCREEN_WASM_URL = "supra-client-screen.wasm?v=0.0.0-mzstream.
|
|
18190
|
+
var SCREEN_WASM_URL = "supra-client-screen.wasm?v=0.0.0-mzstream.319";
|
|
18191
18191
|
async function startWasmScreen(options) {
|
|
18192
18192
|
options = options != null ? options : parseQueryOptions();
|
|
18193
18193
|
await initH264Decoder();
|
package/supra-client-daemon.wasm
CHANGED
|
Binary file
|
package/supra-client-screen.js
CHANGED
|
@@ -191799,11 +191799,12 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
191799
191799
|
this.groups = groups_;
|
|
191800
191800
|
});
|
|
191801
191801
|
Frame = $pkg.Frame = $newType(8, $kindInterface, "stats.Frame", true, "github.com/supraio/client-daemon/pkg/stats", true, null);
|
|
191802
|
-
Stats = $pkg.Stats = $newType(0, $kindStruct, "stats.Stats", true, "github.com/supraio/client-daemon/pkg/stats", true, function(stopped_, lastFrameAt_, stopwatch_, metrics_, latency_, serverTimestampAhead_, serverTimestampAheadBuffer_, currentFramesCount_, lastFrameRate_, totalFramesCount_, lastFramesLatencyAverage_, lastFramesLatencyVariance_, longTermFramesLatencyAverage_, longTermFramesLatencyVariance_, lastFramesCollectionAverage_, lastFramesCollectionVariance_, longTermFramesCollectionAverage_, longTermFramesCollectionVariance_, currentThrottledCollectionFramesCount_, lastThrottledCollectionFrameRate_, lastFramesDecodeWriteAverage_, lastFramesDecodeOutputAverage_, lastFramesDecodeWriteVariance_, lastFramesDecodeOutputVariance_, longTermFramesDecodeWriteAverage_, longTermFramesDecodeOutputAverage_, longTermFramesDecodeWriteVariance_, longTermFramesDecodeOutputVariance_, currentThrottledDecodeFramesCount_, lastThrottledDecodeFrameRate_, lastFramesRenderAverage_, lastFramesRenderVariance_, longTermFramesRenderAverage_, longTermFramesRenderVariance_, currentThrottledRenderFramesCount_, lastThrottledRenderFrameRate_, screenResolutionWidth_, screenResolutionHeight_, lastInteractionAt_) {
|
|
191802
|
+
Stats = $pkg.Stats = $newType(0, $kindStruct, "stats.Stats", true, "github.com/supraio/client-daemon/pkg/stats", true, function(stopped_, lastFrameAt_, lastScreenPingAt_, stopwatch_, metrics_, latency_, serverTimestampAhead_, serverTimestampAheadBuffer_, currentFramesCount_, lastFrameRate_, totalFramesCount_, lastFramesLatencyAverage_, lastFramesLatencyVariance_, longTermFramesLatencyAverage_, longTermFramesLatencyVariance_, lastFramesCollectionAverage_, lastFramesCollectionVariance_, longTermFramesCollectionAverage_, longTermFramesCollectionVariance_, currentThrottledCollectionFramesCount_, lastThrottledCollectionFrameRate_, lastFramesDecodeWriteAverage_, lastFramesDecodeOutputAverage_, lastFramesDecodeWriteVariance_, lastFramesDecodeOutputVariance_, longTermFramesDecodeWriteAverage_, longTermFramesDecodeOutputAverage_, longTermFramesDecodeWriteVariance_, longTermFramesDecodeOutputVariance_, currentThrottledDecodeFramesCount_, lastThrottledDecodeFrameRate_, lastFramesRenderAverage_, lastFramesRenderVariance_, longTermFramesRenderAverage_, longTermFramesRenderVariance_, currentThrottledRenderFramesCount_, lastThrottledRenderFrameRate_, screenResolutionWidth_, screenResolutionHeight_, lastInteractionAt_) {
|
|
191803
191803
|
this.$val = this;
|
|
191804
191804
|
if (arguments.length === 0) {
|
|
191805
191805
|
this.stopped = false;
|
|
191806
191806
|
this.lastFrameAt = new time.Time.ptr(new $Uint64(0, 0), new $Int64(0, 0), ptrType.nil);
|
|
191807
|
+
this.lastScreenPingAt = new time.Time.ptr(new $Uint64(0, 0), new $Int64(0, 0), ptrType.nil);
|
|
191807
191808
|
this.stopwatch = ptrType$1.nil;
|
|
191808
191809
|
this.metrics = ptrType$2.nil;
|
|
191809
191810
|
this.latency = new time.Duration(0, 0);
|
|
@@ -191845,6 +191846,7 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
191845
191846
|
}
|
|
191846
191847
|
this.stopped = stopped_;
|
|
191847
191848
|
this.lastFrameAt = lastFrameAt_;
|
|
191849
|
+
this.lastScreenPingAt = lastScreenPingAt_;
|
|
191848
191850
|
this.stopwatch = stopwatch_;
|
|
191849
191851
|
this.metrics = metrics_;
|
|
191850
191852
|
this.latency = latency_;
|
|
@@ -192013,14 +192015,15 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
192013
192015
|
};
|
|
192014
192016
|
Stopwatch.prototype.Stop = function(group) { return this.$val.Stop(group); };
|
|
192015
192017
|
NewStats = function() {
|
|
192016
|
-
var {_r, _r$1, s, $s, $r, $c} = $restore(this, {});
|
|
192018
|
+
var {_r, _r$1, _r$2, s, $s, $r, $c} = $restore(this, {});
|
|
192017
192019
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
192018
192020
|
_r = time.Now(); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
192019
192021
|
_r$1 = time.Now(); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
192020
|
-
|
|
192022
|
+
_r$2 = time.Now(); /* */ $s = 3; case 3: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
192023
|
+
s = new Stats.ptr(false, $clone(_r, time.Time), $clone(_r$1, time.Time), NewStopwatch(), NewMetrics(), new time.Duration(0, 0), new time.Duration(0, 0), sliceType$1.nil, 0, 0, 0, new time.Duration(0, 0), new time.Duration(0, 0), new time.Duration(0, 0), new time.Duration(0, 0), new time.Duration(0, 0), new time.Duration(0, 0), new time.Duration(0, 0), new time.Duration(0, 0), 0, 0, new time.Duration(0, 0), new time.Duration(0, 0), new time.Duration(0, 0), new time.Duration(0, 0), new time.Duration(0, 0), new time.Duration(0, 0), new time.Duration(0, 0), new time.Duration(0, 0), 0, 0, new time.Duration(0, 0), new time.Duration(0, 0), new time.Duration(0, 0), new time.Duration(0, 0), 0, 0, 0, 0, $clone(_r$2, time.Time));
|
|
192021
192024
|
$go($methodVal(s, "startCalculations"), []);
|
|
192022
192025
|
$s = -1; return s;
|
|
192023
|
-
/* */ } return; } var $f = {$blk: NewStats, $c: true, $r, _r, _r$1, s, $s};return $f;
|
|
192026
|
+
/* */ } return; } var $f = {$blk: NewStats, $c: true, $r, _r, _r$1, _r$2, s, $s};return $f;
|
|
192024
192027
|
};
|
|
192025
192028
|
$pkg.NewStats = NewStats;
|
|
192026
192029
|
Stats.ptr.prototype.GetClientStats = function() {
|
|
@@ -192078,6 +192081,16 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
192078
192081
|
/* */ } return; } var $f = {$blk: Stats.ptr.prototype.NotifyFrame, $c: true, $r, _r, _r$1, _r$2, _r$3, frame, frameLatency, s, $s};return $f;
|
|
192079
192082
|
};
|
|
192080
192083
|
Stats.prototype.NotifyFrame = function(frame) { return this.$val.NotifyFrame(frame); };
|
|
192084
|
+
Stats.ptr.prototype.NotifyScreenPing = function() {
|
|
192085
|
+
var {_r, s, $s, $r, $c} = $restore(this, {});
|
|
192086
|
+
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
192087
|
+
s = this;
|
|
192088
|
+
_r = time.Now(); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
192089
|
+
time.Time.copy(s.lastScreenPingAt, _r);
|
|
192090
|
+
$s = -1; return;
|
|
192091
|
+
/* */ } return; } var $f = {$blk: Stats.ptr.prototype.NotifyScreenPing, $c: true, $r, _r, s, $s};return $f;
|
|
192092
|
+
};
|
|
192093
|
+
Stats.prototype.NotifyScreenPing = function() { return this.$val.NotifyScreenPing(); };
|
|
192081
192094
|
Stats.ptr.prototype.NotifyFrameCollectionStarted = function() {
|
|
192082
192095
|
var {s, $s, $r, $c} = $restore(this, {});
|
|
192083
192096
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
@@ -192188,6 +192201,23 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
192188
192201
|
return s.lastFrameAt;
|
|
192189
192202
|
};
|
|
192190
192203
|
Stats.prototype.GetLastFrameAt = function() { return this.$val.GetLastFrameAt(); };
|
|
192204
|
+
Stats.ptr.prototype.GetLastScreenPingAt = function() {
|
|
192205
|
+
var s;
|
|
192206
|
+
s = this;
|
|
192207
|
+
return s.lastScreenPingAt;
|
|
192208
|
+
};
|
|
192209
|
+
Stats.prototype.GetLastScreenPingAt = function() { return this.$val.GetLastScreenPingAt(); };
|
|
192210
|
+
Stats.ptr.prototype.GetLastScreenImpulseAt = function() {
|
|
192211
|
+
var lastFrameAt, lastScreenPingAt, s;
|
|
192212
|
+
s = this;
|
|
192213
|
+
lastScreenPingAt = $clone(s.GetLastScreenPingAt(), time.Time);
|
|
192214
|
+
lastFrameAt = $clone(s.GetLastFrameAt(), time.Time);
|
|
192215
|
+
if ($clone(lastScreenPingAt, time.Time).After($clone(lastFrameAt, time.Time))) {
|
|
192216
|
+
return lastScreenPingAt;
|
|
192217
|
+
}
|
|
192218
|
+
return lastFrameAt;
|
|
192219
|
+
};
|
|
192220
|
+
Stats.prototype.GetLastScreenImpulseAt = function() { return this.$val.GetLastScreenImpulseAt(); };
|
|
192191
192221
|
Stats.ptr.prototype.GetFrameRate = function() {
|
|
192192
192222
|
var s;
|
|
192193
192223
|
s = this;
|
|
@@ -192457,11 +192487,11 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
192457
192487
|
return (new time.Duration(0, math.Sqrt(($flatten64($div64(sum, (new time.Duration(0, values.$length)), false))))));
|
|
192458
192488
|
};
|
|
192459
192489
|
ptrType$1.methods = [{prop: "Start", name: "Start", pkg: "", typ: $funcType([$String], [], false)}, {prop: "Stop", name: "Stop", pkg: "", typ: $funcType([$String], [time.Duration], false)}];
|
|
192460
|
-
ptrType$5.methods = [{prop: "GetClientStats", name: "GetClientStats", pkg: "", typ: $funcType([], [ptrType$3], false)}, {prop: "SetLatency", name: "SetLatency", pkg: "", typ: $funcType([time.Duration], [], false)}, {prop: "UpdateServerTimestampAhead", name: "UpdateServerTimestampAhead", pkg: "", typ: $funcType([time.Duration], [], false)}, {prop: "SetScreenResolution", name: "SetScreenResolution", pkg: "", typ: $funcType([ptrType$4], [], false)}, {prop: "NotifyFrame", name: "NotifyFrame", pkg: "", typ: $funcType([Frame], [], false)}, {prop: "NotifyFrameCollectionStarted", name: "NotifyFrameCollectionStarted", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameCollectionEnded", name: "NotifyFrameCollectionEnded", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyThrottledCollectionFrame", name: "NotifyThrottledCollectionFrame", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameDecodeWriteStarted", name: "NotifyFrameDecodeWriteStarted", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameDecodeWriteEnded", name: "NotifyFrameDecodeWriteEnded", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameDecodeOutputStarted", name: "NotifyFrameDecodeOutputStarted", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameDecodeOutputEnded", name: "NotifyFrameDecodeOutputEnded", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyThrottledDecodeFrame", name: "NotifyThrottledDecodeFrame", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameRenderStarted", name: "NotifyFrameRenderStarted", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameRenderEnded", name: "NotifyFrameRenderEnded", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyThrottledRenderFrame", name: "NotifyThrottledRenderFrame", pkg: "", typ: $funcType([], [], false)}, {prop: "GetLastFrameAt", name: "GetLastFrameAt", pkg: "", typ: $funcType([], [time.Time], false)}, {prop: "GetFrameRate", name: "GetFrameRate", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "startCalculations", name: "startCalculations", pkg: "github.com/supraio/client-daemon/pkg/stats", typ: $funcType([], [], false)}, {prop: "print", name: "print", pkg: "github.com/supraio/client-daemon/pkg/stats", typ: $funcType([], [], false)}, {prop: "GetServerTime", name: "GetServerTime", pkg: "", typ: $funcType([], [time.Time], false)}, {prop: "NotifyInteraction", name: "NotifyInteraction", pkg: "", typ: $funcType([], [], false)}, {prop: "GetInteractionWaitMultiplier", name: "GetInteractionWaitMultiplier", pkg: "", typ: $funcType([], [$Float64], false)}];
|
|
192490
|
+
ptrType$5.methods = [{prop: "GetClientStats", name: "GetClientStats", pkg: "", typ: $funcType([], [ptrType$3], false)}, {prop: "SetLatency", name: "SetLatency", pkg: "", typ: $funcType([time.Duration], [], false)}, {prop: "UpdateServerTimestampAhead", name: "UpdateServerTimestampAhead", pkg: "", typ: $funcType([time.Duration], [], false)}, {prop: "SetScreenResolution", name: "SetScreenResolution", pkg: "", typ: $funcType([ptrType$4], [], false)}, {prop: "NotifyFrame", name: "NotifyFrame", pkg: "", typ: $funcType([Frame], [], false)}, {prop: "NotifyScreenPing", name: "NotifyScreenPing", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameCollectionStarted", name: "NotifyFrameCollectionStarted", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameCollectionEnded", name: "NotifyFrameCollectionEnded", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyThrottledCollectionFrame", name: "NotifyThrottledCollectionFrame", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameDecodeWriteStarted", name: "NotifyFrameDecodeWriteStarted", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameDecodeWriteEnded", name: "NotifyFrameDecodeWriteEnded", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameDecodeOutputStarted", name: "NotifyFrameDecodeOutputStarted", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameDecodeOutputEnded", name: "NotifyFrameDecodeOutputEnded", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyThrottledDecodeFrame", name: "NotifyThrottledDecodeFrame", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameRenderStarted", name: "NotifyFrameRenderStarted", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyFrameRenderEnded", name: "NotifyFrameRenderEnded", pkg: "", typ: $funcType([], [], false)}, {prop: "NotifyThrottledRenderFrame", name: "NotifyThrottledRenderFrame", pkg: "", typ: $funcType([], [], false)}, {prop: "GetLastFrameAt", name: "GetLastFrameAt", pkg: "", typ: $funcType([], [time.Time], false)}, {prop: "GetLastScreenPingAt", name: "GetLastScreenPingAt", pkg: "", typ: $funcType([], [time.Time], false)}, {prop: "GetLastScreenImpulseAt", name: "GetLastScreenImpulseAt", pkg: "", typ: $funcType([], [time.Time], false)}, {prop: "GetFrameRate", name: "GetFrameRate", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "startCalculations", name: "startCalculations", pkg: "github.com/supraio/client-daemon/pkg/stats", typ: $funcType([], [], false)}, {prop: "print", name: "print", pkg: "github.com/supraio/client-daemon/pkg/stats", typ: $funcType([], [], false)}, {prop: "GetServerTime", name: "GetServerTime", pkg: "", typ: $funcType([], [time.Time], false)}, {prop: "NotifyInteraction", name: "NotifyInteraction", pkg: "", typ: $funcType([], [], false)}, {prop: "GetInteractionWaitMultiplier", name: "GetInteractionWaitMultiplier", pkg: "", typ: $funcType([], [$Float64], false)}];
|
|
192461
192491
|
ptrType$2.methods = [{prop: "AddSample", name: "AddSample", pkg: "", typ: $funcType([$String, sliceType$1], [], true)}, {prop: "GetCount", name: "GetCount", pkg: "", typ: $funcType([$String], [$Int], false)}, {prop: "GetAverage", name: "GetAverage", pkg: "", typ: $funcType([$String], [time.Duration], false)}, {prop: "GetVariance", name: "GetVariance", pkg: "", typ: $funcType([$String], [time.Duration], false)}, {prop: "RemoveOldest", name: "RemoveOldest", pkg: "", typ: $funcType([$String, $Int], [], false)}, {prop: "Reset", name: "Reset", pkg: "", typ: $funcType([$String], [], false)}];
|
|
192462
192492
|
Stopwatch.init("github.com/supraio/client-daemon/pkg/stats", [{prop: "mutex", name: "mutex", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "groups", name: "groups", embedded: false, exported: false, typ: mapType, tag: ""}]);
|
|
192463
192493
|
Frame.init([{prop: "GetTimestamp", name: "GetTimestamp", pkg: "", typ: $funcType([], [time.Time], false)}]);
|
|
192464
|
-
Stats.init("github.com/supraio/client-daemon/pkg/stats", [{prop: "stopped", name: "stopped", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "lastFrameAt", name: "lastFrameAt", embedded: false, exported: false, typ: time.Time, tag: ""}, {prop: "stopwatch", name: "stopwatch", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "metrics", name: "metrics", embedded: false, exported: false, typ: ptrType$2, tag: ""}, {prop: "latency", name: "latency", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "serverTimestampAhead", name: "serverTimestampAhead", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "serverTimestampAheadBuffer", name: "serverTimestampAheadBuffer", embedded: false, exported: false, typ: sliceType$1, tag: ""}, {prop: "currentFramesCount", name: "currentFramesCount", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "lastFrameRate", name: "lastFrameRate", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "totalFramesCount", name: "totalFramesCount", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "lastFramesLatencyAverage", name: "lastFramesLatencyAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "lastFramesLatencyVariance", name: "lastFramesLatencyVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesLatencyAverage", name: "longTermFramesLatencyAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesLatencyVariance", name: "longTermFramesLatencyVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "lastFramesCollectionAverage", name: "lastFramesCollectionAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "lastFramesCollectionVariance", name: "lastFramesCollectionVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesCollectionAverage", name: "longTermFramesCollectionAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesCollectionVariance", name: "longTermFramesCollectionVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "currentThrottledCollectionFramesCount", name: "currentThrottledCollectionFramesCount", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "lastThrottledCollectionFrameRate", name: "lastThrottledCollectionFrameRate", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "lastFramesDecodeWriteAverage", name: "lastFramesDecodeWriteAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "lastFramesDecodeOutputAverage", name: "lastFramesDecodeOutputAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "lastFramesDecodeWriteVariance", name: "lastFramesDecodeWriteVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "lastFramesDecodeOutputVariance", name: "lastFramesDecodeOutputVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesDecodeWriteAverage", name: "longTermFramesDecodeWriteAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesDecodeOutputAverage", name: "longTermFramesDecodeOutputAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesDecodeWriteVariance", name: "longTermFramesDecodeWriteVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesDecodeOutputVariance", name: "longTermFramesDecodeOutputVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "currentThrottledDecodeFramesCount", name: "currentThrottledDecodeFramesCount", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "lastThrottledDecodeFrameRate", name: "lastThrottledDecodeFrameRate", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "lastFramesRenderAverage", name: "lastFramesRenderAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "lastFramesRenderVariance", name: "lastFramesRenderVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesRenderAverage", name: "longTermFramesRenderAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesRenderVariance", name: "longTermFramesRenderVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "currentThrottledRenderFramesCount", name: "currentThrottledRenderFramesCount", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "lastThrottledRenderFrameRate", name: "lastThrottledRenderFrameRate", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "screenResolutionWidth", name: "screenResolutionWidth", embedded: false, exported: false, typ: $Uint32, tag: ""}, {prop: "screenResolutionHeight", name: "screenResolutionHeight", embedded: false, exported: false, typ: $Uint32, tag: ""}, {prop: "lastInteractionAt", name: "lastInteractionAt", embedded: false, exported: false, typ: time.Time, tag: ""}]);
|
|
192494
|
+
Stats.init("github.com/supraio/client-daemon/pkg/stats", [{prop: "stopped", name: "stopped", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "lastFrameAt", name: "lastFrameAt", embedded: false, exported: false, typ: time.Time, tag: ""}, {prop: "lastScreenPingAt", name: "lastScreenPingAt", embedded: false, exported: false, typ: time.Time, tag: ""}, {prop: "stopwatch", name: "stopwatch", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "metrics", name: "metrics", embedded: false, exported: false, typ: ptrType$2, tag: ""}, {prop: "latency", name: "latency", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "serverTimestampAhead", name: "serverTimestampAhead", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "serverTimestampAheadBuffer", name: "serverTimestampAheadBuffer", embedded: false, exported: false, typ: sliceType$1, tag: ""}, {prop: "currentFramesCount", name: "currentFramesCount", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "lastFrameRate", name: "lastFrameRate", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "totalFramesCount", name: "totalFramesCount", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "lastFramesLatencyAverage", name: "lastFramesLatencyAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "lastFramesLatencyVariance", name: "lastFramesLatencyVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesLatencyAverage", name: "longTermFramesLatencyAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesLatencyVariance", name: "longTermFramesLatencyVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "lastFramesCollectionAverage", name: "lastFramesCollectionAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "lastFramesCollectionVariance", name: "lastFramesCollectionVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesCollectionAverage", name: "longTermFramesCollectionAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesCollectionVariance", name: "longTermFramesCollectionVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "currentThrottledCollectionFramesCount", name: "currentThrottledCollectionFramesCount", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "lastThrottledCollectionFrameRate", name: "lastThrottledCollectionFrameRate", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "lastFramesDecodeWriteAverage", name: "lastFramesDecodeWriteAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "lastFramesDecodeOutputAverage", name: "lastFramesDecodeOutputAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "lastFramesDecodeWriteVariance", name: "lastFramesDecodeWriteVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "lastFramesDecodeOutputVariance", name: "lastFramesDecodeOutputVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesDecodeWriteAverage", name: "longTermFramesDecodeWriteAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesDecodeOutputAverage", name: "longTermFramesDecodeOutputAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesDecodeWriteVariance", name: "longTermFramesDecodeWriteVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesDecodeOutputVariance", name: "longTermFramesDecodeOutputVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "currentThrottledDecodeFramesCount", name: "currentThrottledDecodeFramesCount", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "lastThrottledDecodeFrameRate", name: "lastThrottledDecodeFrameRate", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "lastFramesRenderAverage", name: "lastFramesRenderAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "lastFramesRenderVariance", name: "lastFramesRenderVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesRenderAverage", name: "longTermFramesRenderAverage", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "longTermFramesRenderVariance", name: "longTermFramesRenderVariance", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "currentThrottledRenderFramesCount", name: "currentThrottledRenderFramesCount", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "lastThrottledRenderFrameRate", name: "lastThrottledRenderFrameRate", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "screenResolutionWidth", name: "screenResolutionWidth", embedded: false, exported: false, typ: $Uint32, tag: ""}, {prop: "screenResolutionHeight", name: "screenResolutionHeight", embedded: false, exported: false, typ: $Uint32, tag: ""}, {prop: "lastInteractionAt", name: "lastInteractionAt", embedded: false, exported: false, typ: time.Time, tag: ""}]);
|
|
192465
192495
|
Metrics.init("github.com/supraio/client-daemon/pkg/stats", [{prop: "mutex", name: "mutex", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "groups", name: "groups", embedded: false, exported: false, typ: mapType$1, tag: ""}]);
|
|
192466
192496
|
ClientStats.init("", [{prop: "LatencyNano", name: "LatencyNano", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "ServerTimestampAhead", name: "ServerTimestampAhead", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LastFrameRate", name: "LastFrameRate", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "TotalFramesCount", name: "TotalFramesCount", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "LastFramesLatencyAverage", name: "LastFramesLatencyAverage", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LastFramesLatencyVariance", name: "LastFramesLatencyVariance", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LongTermFramesLatencyAverage", name: "LongTermFramesLatencyAverage", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LongTermFramesLatencyVariance", name: "LongTermFramesLatencyVariance", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LastFramesCollectionAverage", name: "LastFramesCollectionAverage", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LastFramesCollectionVariance", name: "LastFramesCollectionVariance", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LongTermFramesCollectionAverage", name: "LongTermFramesCollectionAverage", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LongTermFramesCollectionVariance", name: "LongTermFramesCollectionVariance", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LastThrottledCollectionFrameRate", name: "LastThrottledCollectionFrameRate", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "LastFramesDecodeWriteAverage", name: "LastFramesDecodeWriteAverage", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LastFramesDecodeOutputAverage", name: "LastFramesDecodeOutputAverage", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LastFramesDecodeWriteVariance", name: "LastFramesDecodeWriteVariance", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LastFramesDecodeOutputVariance", name: "LastFramesDecodeOutputVariance", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LongTermFramesDecodeWriteAverage", name: "LongTermFramesDecodeWriteAverage", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LongTermFramesDecodeOutputAverage", name: "LongTermFramesDecodeOutputAverage", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LongTermFramesDecodeWriteVariance", name: "LongTermFramesDecodeWriteVariance", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LongTermFramesDecodeOutputVariance", name: "LongTermFramesDecodeOutputVariance", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LastThrottledDecodeFrameRate", name: "LastThrottledDecodeFrameRate", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "LastFramesRenderAverage", name: "LastFramesRenderAverage", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LastFramesRenderVariance", name: "LastFramesRenderVariance", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LongTermFramesRenderAverage", name: "LongTermFramesRenderAverage", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LongTermFramesRenderVariance", name: "LongTermFramesRenderVariance", embedded: false, exported: true, typ: $Int64, tag: ""}, {prop: "LastThrottledRenderFrameRate", name: "LastThrottledRenderFrameRate", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "ScreenResolutionWidth", name: "ScreenResolutionWidth", embedded: false, exported: true, typ: $Uint32, tag: ""}, {prop: "ScreenResolutionHeight", name: "ScreenResolutionHeight", embedded: false, exported: true, typ: $Uint32, tag: ""}]);
|
|
192467
192497
|
$init = function() {
|
|
@@ -192869,13 +192899,13 @@ $packages["github.com/supraio/client-daemon/pkg/render/player"] = (function() {
|
|
|
192869
192899
|
};
|
|
192870
192900
|
$pkg.NewCollectionLoop = NewCollectionLoop;
|
|
192871
192901
|
CollectionLoop.ptr.prototype.NextFrame = function() {
|
|
192872
|
-
var {_r, cl,
|
|
192902
|
+
var {_r, cl, collectedFrame, $s, $r, $c} = $restore(this, {});
|
|
192873
192903
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
192874
192904
|
cl = this;
|
|
192875
192905
|
_r = $recv(cl.framesChan); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
192876
|
-
|
|
192877
|
-
$s = -1; return [
|
|
192878
|
-
/* */ } return; } var $f = {$blk: CollectionLoop.ptr.prototype.NextFrame, $c: true, $r, _r, cl,
|
|
192906
|
+
collectedFrame = _r[0];
|
|
192907
|
+
$s = -1; return [collectedFrame, $ifaceNil];
|
|
192908
|
+
/* */ } return; } var $f = {$blk: CollectionLoop.ptr.prototype.NextFrame, $c: true, $r, _r, cl, collectedFrame, $s};return $f;
|
|
192879
192909
|
};
|
|
192880
192910
|
CollectionLoop.prototype.NextFrame = function() { return this.$val.NextFrame(); };
|
|
192881
192911
|
CollectionLoop.ptr.prototype.Start = function() {
|
|
@@ -192886,13 +192916,13 @@ $packages["github.com/supraio/client-daemon/pkg/render/player"] = (function() {
|
|
|
192886
192916
|
}
|
|
192887
192917
|
cl.started = true;
|
|
192888
192918
|
$go((function $b() {
|
|
192889
|
-
var {_r, _tuple,
|
|
192919
|
+
var {_1, _r, _tuple, collectedFrame, err, $s, $r, $c} = $restore(this, {});
|
|
192890
192920
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
192891
192921
|
/* while (true) { */ case 1:
|
|
192892
192922
|
/* if (!(cl.started)) { break; } */ if(!(cl.started)) { $s = 2; continue; }
|
|
192893
192923
|
_r = cl.frameCollector.CollectFrame($methodVal(cl.stats, "NotifyFrameCollectionStarted"), $methodVal(cl.stats, "NotifyFrameCollectionEnded")); /* */ $s = 3; case 3: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
192894
192924
|
_tuple = _r;
|
|
192895
|
-
|
|
192925
|
+
collectedFrame = _tuple[0];
|
|
192896
192926
|
err = _tuple[1];
|
|
192897
192927
|
/* */ if (!($interfaceIsEqual(err, $ifaceNil))) { $s = 4; continue; }
|
|
192898
192928
|
/* */ $s = 5; continue;
|
|
@@ -192908,7 +192938,17 @@ $packages["github.com/supraio/client-daemon/pkg/render/player"] = (function() {
|
|
|
192908
192938
|
/* */ if (cl.framesChan.$buffer.length < 50) { $s = 10; continue; }
|
|
192909
192939
|
/* */ $s = 11; continue;
|
|
192910
192940
|
/* if (cl.framesChan.$buffer.length < 50) { */ case 10:
|
|
192911
|
-
|
|
192941
|
+
_1 = collectedFrame.FrameType();
|
|
192942
|
+
/* */ if (_1 === (1)) { $s = 14; continue; }
|
|
192943
|
+
/* */ if (_1 === (255)) { $s = 15; continue; }
|
|
192944
|
+
/* */ $s = 16; continue;
|
|
192945
|
+
/* if (_1 === (1)) { */ case 14:
|
|
192946
|
+
$r = $send(cl.framesChan, collectedFrame); /* */ $s = 17; case 17: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192947
|
+
$s = 16; continue;
|
|
192948
|
+
/* } else if (_1 === (255)) { */ case 15:
|
|
192949
|
+
$r = cl.stats.NotifyScreenPing(); /* */ $s = 18; case 18: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192950
|
+
/* } */ case 16:
|
|
192951
|
+
case 13:
|
|
192912
192952
|
$s = 12; continue;
|
|
192913
192953
|
/* } else { */ case 11:
|
|
192914
192954
|
cl.stats.NotifyThrottledCollectionFrame();
|
|
@@ -192916,7 +192956,7 @@ $packages["github.com/supraio/client-daemon/pkg/render/player"] = (function() {
|
|
|
192916
192956
|
$s = 1; continue;
|
|
192917
192957
|
case 2:
|
|
192918
192958
|
$s = -1; return;
|
|
192919
|
-
/* */ } return; } var $f = {$blk: $b, $c: true, $r, _r, _tuple,
|
|
192959
|
+
/* */ } return; } var $f = {$blk: $b, $c: true, $r, _1, _r, _tuple, collectedFrame, err, $s};return $f;
|
|
192920
192960
|
}), []);
|
|
192921
192961
|
};
|
|
192922
192962
|
CollectionLoop.prototype.Start = function() { return this.$val.Start(); };
|
|
@@ -193703,7 +193743,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
193703
193743
|
}
|
|
193704
193744
|
$go($methodVal(w, "startTimestampSyncing"), []);
|
|
193705
193745
|
$go($methodVal(w, "startStatsSyncing"), []);
|
|
193706
|
-
$go($methodVal(w, "
|
|
193746
|
+
$go($methodVal(w, "startScreenHealthChecking"), []);
|
|
193707
193747
|
$s = -1; return $ifaceNil;
|
|
193708
193748
|
/* */ } return; } var $f = {$blk: ScreenWindow.ptr.prototype.Start, $c: true, $r, $24r, _r, _r$1, _r$2, _r$3, _r$4, _r$5, err, w, $s};return $f;
|
|
193709
193749
|
};
|
|
@@ -194173,53 +194213,46 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
194173
194213
|
return $mul64((new time.Duration(clampedTimeoutMs.$high, clampedTimeoutMs.$low)), new time.Duration(0, 1000000));
|
|
194174
194214
|
};
|
|
194175
194215
|
ScreenWindow.prototype.getFrameHealthCheckTimeout = function() { return this.$val.getFrameHealthCheckTimeout(); };
|
|
194176
|
-
ScreenWindow.ptr.prototype.
|
|
194177
|
-
var {_r, _r$1, _r$2, _r$3,
|
|
194216
|
+
ScreenWindow.ptr.prototype.startScreenHealthChecking = function() {
|
|
194217
|
+
var {_r, _r$1, _r$2, _r$3, err, lastImpulseAt, w, $s, $r, $c} = $restore(this, {});
|
|
194178
194218
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
194179
194219
|
w = this;
|
|
194180
|
-
|
|
194181
|
-
|
|
194182
|
-
|
|
194183
|
-
|
|
194184
|
-
|
|
194185
|
-
|
|
194186
|
-
|
|
194187
|
-
|
|
194188
|
-
|
|
194189
|
-
|
|
194190
|
-
|
|
194191
|
-
/* */ $s =
|
|
194192
|
-
/*
|
|
194193
|
-
|
|
194194
|
-
|
|
194195
|
-
|
|
194196
|
-
|
|
194197
|
-
|
|
194198
|
-
|
|
194199
|
-
|
|
194200
|
-
|
|
194201
|
-
_r$3 = w.
|
|
194220
|
+
/* while (true) { */ case 1:
|
|
194221
|
+
/* if (!(!w.closed)) { break; } */ if(!(!w.closed)) { $s = 2; continue; }
|
|
194222
|
+
/* */ if ($interfaceIsEqual(w.screenConn, $ifaceNil)) { $s = 3; continue; }
|
|
194223
|
+
/* */ $s = 4; continue;
|
|
194224
|
+
/* if ($interfaceIsEqual(w.screenConn, $ifaceNil)) { */ case 3:
|
|
194225
|
+
$r = time.Sleep(new time.Duration(1, 705032704)); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
194226
|
+
/* continue; */ $s = 1; continue;
|
|
194227
|
+
/* } */ case 4:
|
|
194228
|
+
lastImpulseAt = $clone(w.stats.GetLastScreenImpulseAt(), time.Time);
|
|
194229
|
+
_r = time.Now(); /* */ $s = 8; case 8: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
194230
|
+
_r$1 = $clone($clone(lastImpulseAt, time.Time).Add(w.getFrameHealthCheckTimeout()), time.Time).Before($clone(_r, time.Time)); /* */ $s = 9; case 9: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
194231
|
+
/* */ if (_r$1) { $s = 6; continue; }
|
|
194232
|
+
/* */ $s = 7; continue;
|
|
194233
|
+
/* if (_r$1) { */ case 6:
|
|
194234
|
+
_r$2 = w.closeScreen(); /* */ $s = 10; case 10: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
194235
|
+
err = _r$2;
|
|
194236
|
+
/* */ if (!($interfaceIsEqual(err, $ifaceNil))) { $s = 11; continue; }
|
|
194237
|
+
/* */ $s = 12; continue;
|
|
194238
|
+
/* if (!($interfaceIsEqual(err, $ifaceNil))) { */ case 11:
|
|
194239
|
+
$r = errs.Print("Cannot close screen", err); /* */ $s = 13; case 13: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
194240
|
+
/* } */ case 12:
|
|
194241
|
+
_r$3 = w.retriableOpen(-1, $methodVal(w, "openScreen")); /* */ $s = 14; case 14: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
194202
194242
|
err = _r$3;
|
|
194203
194243
|
/* */ if (!($interfaceIsEqual(err, $ifaceNil))) { $s = 15; continue; }
|
|
194204
194244
|
/* */ $s = 16; continue;
|
|
194205
194245
|
/* if (!($interfaceIsEqual(err, $ifaceNil))) { */ case 15:
|
|
194206
|
-
$r = errs.Print("
|
|
194246
|
+
$r = errs.Print("Reconnecting screen", err); /* */ $s = 17; case 17: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
194207
194247
|
/* } */ case 16:
|
|
194208
|
-
|
|
194209
|
-
|
|
194210
|
-
|
|
194211
|
-
|
|
194212
|
-
/* if (!($interfaceIsEqual(err, $ifaceNil))) { */ case 19:
|
|
194213
|
-
$r = errs.Print("Reconnecting screen", err); /* */ $s = 21; case 21: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
194214
|
-
/* } */ case 20:
|
|
194215
|
-
/* } */ case 11:
|
|
194216
|
-
$r = time.Sleep(new time.Duration(0, 1000000000)); /* */ $s = 22; case 22: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
194217
|
-
$s = 5; continue;
|
|
194218
|
-
case 6:
|
|
194248
|
+
/* } */ case 7:
|
|
194249
|
+
$r = time.Sleep(new time.Duration(0, 1000000000)); /* */ $s = 18; case 18: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
194250
|
+
$s = 1; continue;
|
|
194251
|
+
case 2:
|
|
194219
194252
|
$s = -1; return;
|
|
194220
|
-
/* */ } return; } var $f = {$blk: ScreenWindow.ptr.prototype.
|
|
194253
|
+
/* */ } return; } var $f = {$blk: ScreenWindow.ptr.prototype.startScreenHealthChecking, $c: true, $r, _r, _r$1, _r$2, _r$3, err, lastImpulseAt, w, $s};return $f;
|
|
194221
194254
|
};
|
|
194222
|
-
ScreenWindow.prototype.
|
|
194255
|
+
ScreenWindow.prototype.startScreenHealthChecking = function() { return this.$val.startScreenHealthChecking(); };
|
|
194223
194256
|
ScreenWindow.ptr.prototype.openScreen = function() {
|
|
194224
194257
|
var {_r, _r$1, _r$2, _r$3, _tuple, _tuple$1, conn, connect, err, frameCollector, maxPacketSize, msgData, screenSender, w, $s, $r, $c} = $restore(this, {});
|
|
194225
194258
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
@@ -194535,7 +194568,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
194535
194568
|
return path.Join(new sliceType$4([m.processDir, "S-" + m.username]));
|
|
194536
194569
|
};
|
|
194537
194570
|
ProcessInfoManager.prototype.getUserProcessDirPath = function() { return this.$val.getUserProcessDirPath(); };
|
|
194538
|
-
ptrType$11.methods = [{prop: "Start", name: "Start", pkg: "", typ: $funcType([], [$error], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [], false)}, {prop: "OnClose", name: "OnClose", pkg: "", typ: $funcType([funcType], [], false)}, {prop: "startWindow", name: "startWindow", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "startClipboard", name: "startClipboard", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "retriableOpen", name: "retriableOpen", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([$Int, funcType$1], [$error], false)}, {prop: "openMetadata", name: "openMetadata", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "createMetadataResponsiveSender", name: "createMetadataResponsiveSender", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [ptrType$10], false)}, {prop: "createMetadataSender", name: "createMetadataSender", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [message.Sender], false)}, {prop: "createScreenSender", name: "createScreenSender", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [message.Sender], false)}, {prop: "startTimestampSyncing", name: "startTimestampSyncing", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [], false)}, {prop: "startStatsSyncing", name: "startStatsSyncing", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [], false)}, {prop: "sendStats", name: "sendStats", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "getFrameHealthCheckTimeout", name: "getFrameHealthCheckTimeout", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [time.Duration], false)}, {prop: "
|
|
194571
|
+
ptrType$11.methods = [{prop: "Start", name: "Start", pkg: "", typ: $funcType([], [$error], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [], false)}, {prop: "OnClose", name: "OnClose", pkg: "", typ: $funcType([funcType], [], false)}, {prop: "startWindow", name: "startWindow", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "startClipboard", name: "startClipboard", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "retriableOpen", name: "retriableOpen", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([$Int, funcType$1], [$error], false)}, {prop: "openMetadata", name: "openMetadata", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "createMetadataResponsiveSender", name: "createMetadataResponsiveSender", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [ptrType$10], false)}, {prop: "createMetadataSender", name: "createMetadataSender", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [message.Sender], false)}, {prop: "createScreenSender", name: "createScreenSender", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [message.Sender], false)}, {prop: "startTimestampSyncing", name: "startTimestampSyncing", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [], false)}, {prop: "startStatsSyncing", name: "startStatsSyncing", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [], false)}, {prop: "sendStats", name: "sendStats", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "getFrameHealthCheckTimeout", name: "getFrameHealthCheckTimeout", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [time.Duration], false)}, {prop: "startScreenHealthChecking", name: "startScreenHealthChecking", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [], false)}, {prop: "openScreen", name: "openScreen", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "closeScreen", name: "closeScreen", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "createScreenBuffer", name: "createScreenBuffer", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [screen.Buffer, $error], false)}];
|
|
194539
194572
|
ptrType.methods = [{prop: "CreateProcessInfo", name: "CreateProcessInfo", pkg: "", typ: $funcType([$String, $Int], [$error], false)}, {prop: "RemoveProcessInfo", name: "RemoveProcessInfo", pkg: "", typ: $funcType([$String], [$error], false)}, {prop: "WaitProcess", name: "WaitProcess", pkg: "", typ: $funcType([$String], [$error], false)}, {prop: "GetProcessInfo", name: "GetProcessInfo", pkg: "", typ: $funcType([$String], [ProcessInfo, $error], false)}, {prop: "ListScreenIDs", name: "ListScreenIDs", pkg: "", typ: $funcType([], [sliceType$4, $error], false)}, {prop: "getUserProcessDirPath", name: "getUserProcessDirPath", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$String], false)}];
|
|
194540
194573
|
ScreenWindow.init("github.com/supraio/client-daemon/pkg/render", [{prop: "processInfoManager", name: "processInfoManager", embedded: false, exported: false, typ: ptrType, tag: ""}, {prop: "screenDriver", name: "screenDriver", embedded: false, exported: false, typ: netpacket.Driver, tag: ""}, {prop: "screenHost", name: "screenHost", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "metadataDriver", name: "metadataDriver", embedded: false, exported: false, typ: netstream.Driver, tag: ""}, {prop: "metadataHost", name: "metadataHost", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "clientID", name: "clientID", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "clientSecret", name: "clientSecret", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "screenID", name: "screenID", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "secure", name: "secure", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "screenSize", name: "screenSize", embedded: false, exported: false, typ: image.Point, tag: ""}, {prop: "timeoutDuration", name: "timeoutDuration", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "closed", name: "closed", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "stats", name: "stats", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "onClose", name: "onClose", embedded: false, exported: false, typ: sliceType$1, tag: ""}, {prop: "window", name: "window", embedded: false, exported: false, typ: screen.Window, tag: ""}, {prop: "screen", name: "screen", embedded: false, exported: false, typ: screen.Screen, tag: ""}, {prop: "screenConn", name: "screenConn", embedded: false, exported: false, typ: netpacket.ReaderWriterCloser, tag: ""}, {prop: "metadataServer", name: "metadataServer", embedded: false, exported: false, typ: ptrType$2, tag: ""}, {prop: "collectionLoop", name: "collectionLoop", embedded: false, exported: false, typ: ptrType$3, tag: ""}, {prop: "decoderLoop", name: "decoderLoop", embedded: false, exported: false, typ: ptrType$4, tag: ""}, {prop: "renderingLoop", name: "renderingLoop", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "sizeHandler", name: "sizeHandler", embedded: false, exported: false, typ: ptrType$6, tag: ""}, {prop: "keyHandler", name: "keyHandler", embedded: false, exported: false, typ: ptrType$7, tag: ""}, {prop: "mouseHandler", name: "mouseHandler", embedded: false, exported: false, typ: ptrType$8, tag: ""}, {prop: "pinger", name: "pinger", embedded: false, exported: false, typ: ptrType$9, tag: ""}, {prop: "keyEventChan", name: "keyEventChan", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "mouseEventChan", name: "mouseEventChan", embedded: false, exported: false, typ: chanType$1, tag: ""}, {prop: "sizeEventChan", name: "sizeEventChan", embedded: false, exported: false, typ: chanType$2, tag: ""}, {prop: "focusEventChan", name: "focusEventChan", embedded: false, exported: false, typ: chanType$3, tag: ""}, {prop: "winCloseChannel", name: "winCloseChannel", embedded: false, exported: false, typ: chanType$4, tag: ""}]);
|
|
194541
194574
|
ProcessInfo.init("", [{prop: "ScreenID", name: "ScreenID", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "Pid", name: "Pid", embedded: false, exported: true, typ: $Int, tag: ""}]);
|