@supraio/client-daemon-js 1.1.0-master.563 → 1.1.0-master.571
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 +3 -3
- package/sdk.js +5 -5
- package/supra-client-daemon.js +22 -14
- package/supra-client-daemon.js.map +1 -1
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +126 -115
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
package/supra-client-daemon.wasm
CHANGED
|
Binary file
|
package/supra-client-screen.js
CHANGED
|
@@ -68292,7 +68292,7 @@ $packages["math/rand"] = (function() {
|
|
|
68292
68292
|
return $pkg;
|
|
68293
68293
|
})();
|
|
68294
68294
|
$packages["github.com/supraio/client-daemon/pkg/helper"] = (function() {
|
|
68295
|
-
var $pkg = {}, $init, errs, image, log, rand, os, strconv, strings, syscall, time, sliceType, sliceType$1, ptrType, seededRand, _r, _r$1, _r$2, _r$3, GenerateStringWithCharset, GenerateStringWithLength, NotifyOnStopSignal, WaitOnStopSignal, ParseImagePointFromString;
|
|
68295
|
+
var $pkg = {}, $init, errs, image, log, rand, os, strconv, strings, sync, syscall, time, sliceType, sliceType$1, ptrType, seededRandMu, seededRand, _r, _r$1, _r$2, _r$3, GenerateStringWithCharset, GenerateStringWithLength, NotifyOnStopSignal, WaitOnStopSignal, ParseImagePointFromString;
|
|
68296
68296
|
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
68297
68297
|
image = $packages["image"];
|
|
68298
68298
|
log = $packages["log"];
|
|
@@ -68300,6 +68300,7 @@ $packages["github.com/supraio/client-daemon/pkg/helper"] = (function() {
|
|
|
68300
68300
|
os = $packages["os"];
|
|
68301
68301
|
strconv = $packages["strconv"];
|
|
68302
68302
|
strings = $packages["strings"];
|
|
68303
|
+
sync = $packages["sync"];
|
|
68303
68304
|
syscall = $packages["syscall"];
|
|
68304
68305
|
time = $packages["time"];
|
|
68305
68306
|
sliceType = $sliceType($Uint8);
|
|
@@ -68309,16 +68310,18 @@ $packages["github.com/supraio/client-daemon/pkg/helper"] = (function() {
|
|
|
68309
68310
|
var {_i, _r$4, _ref, b, charset, i, length, $s, $r, $c} = $restore(this, {length, charset});
|
|
68310
68311
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
68311
68312
|
b = $makeSlice(sliceType, length);
|
|
68313
|
+
$r = seededRandMu.Lock(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
68312
68314
|
_ref = b;
|
|
68313
68315
|
_i = 0;
|
|
68314
|
-
/* while (true) { */ case
|
|
68315
|
-
/* if (!(_i < _ref.$length)) { break; } */ if(!(_i < _ref.$length)) { $s =
|
|
68316
|
+
/* while (true) { */ case 2:
|
|
68317
|
+
/* if (!(_i < _ref.$length)) { break; } */ if(!(_i < _ref.$length)) { $s = 3; continue; }
|
|
68316
68318
|
i = _i;
|
|
68317
|
-
_r$4 = seededRand.Intn(charset.length); /* */ $s =
|
|
68319
|
+
_r$4 = seededRand.Intn(charset.length); /* */ $s = 4; case 4: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
68318
68320
|
((i < 0 || i >= b.$length) ? ($throwRuntimeError("index out of range"), undefined) : b.$array[b.$offset + i] = charset.charCodeAt(_r$4));
|
|
68319
68321
|
_i++;
|
|
68320
|
-
$s =
|
|
68321
|
-
case
|
|
68322
|
+
$s = 2; continue;
|
|
68323
|
+
case 3:
|
|
68324
|
+
$r = seededRandMu.Unlock(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
68322
68325
|
$s = -1; return ($bytesToString(b));
|
|
68323
68326
|
/* */ } return; } var $f = {$blk: GenerateStringWithCharset, $c: true, $r, _i, _r$4, _ref, b, charset, i, length, $s};return $f;
|
|
68324
68327
|
};
|
|
@@ -68401,12 +68404,14 @@ $packages["github.com/supraio/client-daemon/pkg/helper"] = (function() {
|
|
|
68401
68404
|
$r = os.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
68402
68405
|
$r = strconv.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
68403
68406
|
$r = strings.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
68404
|
-
$r =
|
|
68405
|
-
$r =
|
|
68406
|
-
|
|
68407
|
-
|
|
68408
|
-
_r
|
|
68409
|
-
_r$
|
|
68407
|
+
$r = sync.$init(); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
68408
|
+
$r = syscall.$init(); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
68409
|
+
$r = time.$init(); /* */ $s = 10; case 10: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
68410
|
+
seededRandMu = new sync.Mutex.ptr(0, 0);
|
|
68411
|
+
_r = time.Now(); /* */ $s = 11; case 11: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
68412
|
+
_r$1 = $clone(_r, time.Time).UnixNano(); /* */ $s = 12; case 12: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
68413
|
+
_r$2 = rand.NewSource(_r$1); /* */ $s = 13; case 13: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
68414
|
+
_r$3 = rand.New(_r$2); /* */ $s = 14; case 14: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
68410
68415
|
seededRand = _r$3;
|
|
68411
68416
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
68412
68417
|
};
|
|
@@ -191984,25 +191989,21 @@ $packages["github.com/supraio/client-daemon/pkg/input"] = (function() {
|
|
|
191984
191989
|
};
|
|
191985
191990
|
MouseHandler.prototype.flushMoveEvents = function() { return this.$val.flushMoveEvents(); };
|
|
191986
191991
|
MouseHandler.ptr.prototype.encodeMouseEvent = function(ev) {
|
|
191987
|
-
var {_r, ev,
|
|
191992
|
+
var {_r, ev, eventData, h, multiplier, x, y, $s, $r, $c} = $restore(this, {ev});
|
|
191988
191993
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
191989
191994
|
h = this;
|
|
191990
|
-
mouseButtonData = $makeSlice(sliceType$1, 4);
|
|
191991
|
-
$clone(binary.BigEndian, binary.bigEndian).PutUint32(mouseButtonData, ((ev.Button >>> 0)));
|
|
191992
|
-
mouseDirectionData = $makeSlice(sliceType$1, 2);
|
|
191993
|
-
$clone(binary.BigEndian, binary.bigEndian).PutUint16(mouseDirectionData, ((ev.Direction << 16 >>> 16)));
|
|
191994
|
-
mouseModifierData = $makeSlice(sliceType$1, 4);
|
|
191995
|
-
$clone(binary.BigEndian, binary.bigEndian).PutUint32(mouseModifierData, ((ev.Modifiers >>> 0)));
|
|
191996
191995
|
_r = h.getEventPointMultiplier(); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
191997
191996
|
multiplier = $clone(_r, geom.Point);
|
|
191998
191997
|
x = $fround((ev.X) * (multiplier.X));
|
|
191999
191998
|
y = $fround((ev.Y) * (multiplier.Y));
|
|
192000
|
-
|
|
192001
|
-
$clone(binary.BigEndian, binary.bigEndian).
|
|
192002
|
-
|
|
192003
|
-
$clone(binary.BigEndian, binary.bigEndian).
|
|
192004
|
-
|
|
192005
|
-
|
|
191999
|
+
eventData = $makeSlice(sliceType$1, 0, 18);
|
|
192000
|
+
eventData = $clone(binary.BigEndian, binary.bigEndian).AppendUint32(eventData, ((ev.Button >>> 0)));
|
|
192001
|
+
eventData = $clone(binary.BigEndian, binary.bigEndian).AppendUint16(eventData, ((ev.Direction << 16 >>> 16)));
|
|
192002
|
+
eventData = $clone(binary.BigEndian, binary.bigEndian).AppendUint32(eventData, ((ev.Modifiers >>> 0)));
|
|
192003
|
+
eventData = $clone(binary.BigEndian, binary.bigEndian).AppendUint32(eventData, coordinateToUint32(x));
|
|
192004
|
+
eventData = $clone(binary.BigEndian, binary.bigEndian).AppendUint32(eventData, coordinateToUint32(y));
|
|
192005
|
+
$s = -1; return eventData;
|
|
192006
|
+
/* */ } return; } var $f = {$blk: MouseHandler.ptr.prototype.encodeMouseEvent, $c: true, $r, _r, ev, eventData, h, multiplier, x, y, $s};return $f;
|
|
192006
192007
|
};
|
|
192007
192008
|
MouseHandler.prototype.encodeMouseEvent = function(ev) { return this.$val.encodeMouseEvent(ev); };
|
|
192008
192009
|
coordinateToUint32 = function(value) {
|
|
@@ -195078,11 +195079,12 @@ $packages["github.com/supraio/client-daemon/pkg/render/screenbuffer"] = (functio
|
|
|
195078
195079
|
return $pkg;
|
|
195079
195080
|
})();
|
|
195080
195081
|
$packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
195081
|
-
var $pkg = {}, $init, image, log, math, sync, time, Stopwatch, Frame, Stats, Metrics, EncodingPreferences, InputMetrics, ClientStats, ptrType, sliceType, ptrType$1, ptrType$2, sliceType$1, structType, ptrType$3, mapType, ptrType$4, ptrType$5, chanType, mapType$1, NewStopwatch, NewStats, NewMetrics, average, variance;
|
|
195082
|
+
var $pkg = {}, $init, image, log, math, sync, js, time, Stopwatch, Frame, Stats, Metrics, EncodingPreferences, InputMetrics, ClientStats, ptrType, sliceType, ptrType$1, ptrType$2, sliceType$1, structType, ptrType$3, mapType, ptrType$4, ptrType$5, chanType, mapType$1, performance, NewStopwatch, NewStats, NewMetrics, average, variance, frameRateClock;
|
|
195082
195083
|
image = $packages["image"];
|
|
195083
195084
|
log = $packages["log"];
|
|
195084
195085
|
math = $packages["math"];
|
|
195085
195086
|
sync = $packages["sync"];
|
|
195087
|
+
js = $packages["syscall/js"];
|
|
195086
195088
|
time = $packages["time"];
|
|
195087
195089
|
Stopwatch = $pkg.Stopwatch = $newType(0, $kindStruct, "stats.Stopwatch", true, "github.com/supraio/client-daemon/pkg/stats", true, function(mutex_, groups_) {
|
|
195088
195090
|
this.$val = this;
|
|
@@ -195095,7 +195097,7 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
195095
195097
|
this.groups = groups_;
|
|
195096
195098
|
});
|
|
195097
195099
|
Frame = $pkg.Frame = $newType(8, $kindInterface, "stats.Frame", true, "github.com/supraio/client-daemon/pkg/stats", true, null);
|
|
195098
|
-
Stats = $pkg.Stats = $newType(0, $kindStruct, "stats.Stats", true, "github.com/supraio/client-daemon/pkg/stats", true, function(mu_, lastFrameAt_, lastScreenPingAt_, stopwatch_, metrics_, done_, calcStopped_, stopOnce_, latency_, serverTimestampAhead_, serverTimestampAheadBuffer_, currentFramesCount_, lastFrameRate_, lastActiveFrameRate_, 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_, encodingPreferences_) {
|
|
195100
|
+
Stats = $pkg.Stats = $newType(0, $kindStruct, "stats.Stats", true, "github.com/supraio/client-daemon/pkg/stats", true, function(mu_, lastFrameAt_, lastScreenPingAt_, stopwatch_, metrics_, done_, calcStopped_, stopOnce_, latency_, serverTimestampAhead_, serverTimestampAheadBuffer_, currentFramesCount_, lastFrameRate_, lastActiveFrameRate_, frameRateWindowStartedAt_, 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_, encodingPreferences_) {
|
|
195099
195101
|
this.$val = this;
|
|
195100
195102
|
if (arguments.length === 0) {
|
|
195101
195103
|
this.mu = new sync.Mutex.ptr(0, 0);
|
|
@@ -195112,6 +195114,7 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
195112
195114
|
this.currentFramesCount = 0;
|
|
195113
195115
|
this.lastFrameRate = 0;
|
|
195114
195116
|
this.lastActiveFrameRate = 0;
|
|
195117
|
+
this.frameRateWindowStartedAt = new time.Duration(0, 0);
|
|
195115
195118
|
this.totalFramesCount = 0;
|
|
195116
195119
|
this.lastFramesLatencyAverage = new time.Duration(0, 0);
|
|
195117
195120
|
this.lastFramesLatencyVariance = new time.Duration(0, 0);
|
|
@@ -195159,6 +195162,7 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
195159
195162
|
this.currentFramesCount = currentFramesCount_;
|
|
195160
195163
|
this.lastFrameRate = lastFrameRate_;
|
|
195161
195164
|
this.lastActiveFrameRate = lastActiveFrameRate_;
|
|
195165
|
+
this.frameRateWindowStartedAt = frameRateWindowStartedAt_;
|
|
195162
195166
|
this.totalFramesCount = totalFramesCount_;
|
|
195163
195167
|
this.lastFramesLatencyAverage = lastFramesLatencyAverage_;
|
|
195164
195168
|
this.lastFramesLatencyVariance = lastFramesLatencyVariance_;
|
|
@@ -195375,14 +195379,15 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
195375
195379
|
};
|
|
195376
195380
|
Stopwatch.prototype.Stop = function(group) { return this.$val.Stop(group); };
|
|
195377
195381
|
NewStats = function() {
|
|
195378
|
-
var {_r, now, s, $s, $r, $c} = $restore(this, {});
|
|
195382
|
+
var {_r, _r$1, now, s, $s, $r, $c} = $restore(this, {});
|
|
195379
195383
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
195380
195384
|
_r = time.Now(); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
195381
195385
|
now = $clone(_r, time.Time);
|
|
195382
|
-
|
|
195386
|
+
_r$1 = frameRateClock(); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
195387
|
+
s = new Stats.ptr(new sync.Mutex.ptr(0, 0), $clone(now, time.Time), $clone(now, time.Time), NewStopwatch(), NewMetrics(), new $Chan(structType, 0), new $Chan(structType, 0), new sync.Once.ptr(0, new sync.Mutex.ptr(0, 0)), new time.Duration(0, 0), new time.Duration(0, 0), sliceType$1.nil, 0, 0, 0, _r$1, 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(now, time.Time), new EncodingPreferences.ptr(0, 0, "", "", ""));
|
|
195383
195388
|
$go($methodVal(s, "startCalculations"), []);
|
|
195384
195389
|
$s = -1; return s;
|
|
195385
|
-
/* */ } return; } var $f = {$blk: NewStats, $c: true, $r, _r, now, s, $s};return $f;
|
|
195390
|
+
/* */ } return; } var $f = {$blk: NewStats, $c: true, $r, _r, _r$1, now, s, $s};return $f;
|
|
195386
195391
|
};
|
|
195387
195392
|
$pkg.NewStats = NewStats;
|
|
195388
195393
|
Stats.ptr.prototype.Stop = function() {
|
|
@@ -195676,116 +195681,111 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
195676
195681
|
/* */ } return; } } catch(err) { $err = err; $s = -1; return 0; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { var $f = {$blk: Stats.ptr.prototype.GetLastActiveFrameRate, $c: true, $r, $24r, s, $s, $deferred};return $f; } }
|
|
195677
195682
|
};
|
|
195678
195683
|
Stats.prototype.GetLastActiveFrameRate = function() { return this.$val.GetLastActiveFrameRate(); };
|
|
195679
|
-
Stats.ptr.prototype.rotateFrameRate = function() {
|
|
195680
|
-
var s;
|
|
195684
|
+
Stats.ptr.prototype.rotateFrameRate = function(now) {
|
|
195685
|
+
var countedFor, elapsed, now, s, x, x$1, x$2;
|
|
195681
195686
|
s = this;
|
|
195682
|
-
|
|
195687
|
+
elapsed = (x = s.frameRateWindowStartedAt, new time.Duration(now.$high - x.$high, now.$low - x.$low));
|
|
195688
|
+
s.frameRateWindowStartedAt = now;
|
|
195689
|
+
s.totalFramesCount = s.totalFramesCount + (s.currentFramesCount) >> 0;
|
|
195690
|
+
countedFor = $mul64((new time.Duration(0, s.currentFramesCount)), new time.Duration(0, 1000000000));
|
|
195691
|
+
s.lastFrameRate = (((x$1 = $div64(((x$2 = $div64(elapsed, new time.Duration(0, 2), false), new time.Duration(countedFor.$high + x$2.$high, countedFor.$low + x$2.$low))), elapsed, false), x$1.$low + ((x$1.$high >> 31) * 4294967296)) >> 0));
|
|
195683
195692
|
s.currentFramesCount = 0;
|
|
195684
|
-
s.totalFramesCount = s.totalFramesCount + (s.lastFrameRate) >> 0;
|
|
195685
195693
|
if (s.lastFrameRate > 0) {
|
|
195686
195694
|
s.lastActiveFrameRate = s.lastFrameRate;
|
|
195687
195695
|
}
|
|
195688
195696
|
};
|
|
195689
|
-
Stats.prototype.rotateFrameRate = function() { return this.$val.rotateFrameRate(); };
|
|
195697
|
+
Stats.prototype.rotateFrameRate = function(now) { return this.$val.rotateFrameRate(now); };
|
|
195690
195698
|
Stats.ptr.prototype.startCalculations = function() {
|
|
195691
|
-
var {_arg, _r, _r$1, _selection,
|
|
195699
|
+
var {_arg, _r, _r$1, _selection, s, $s, $deferred, $r, $c} = $restore(this, {});
|
|
195692
195700
|
/* */ $s = $s || 0; var $err = null; try { s: while (true) { switch ($s) { case 0: $deferred = []; $curGoroutine.deferStack.push($deferred);
|
|
195693
195701
|
s = this;
|
|
195694
195702
|
$deferred.push([function(_arg) { $close(_arg); }, [s.calcStopped]]);
|
|
195695
195703
|
/* while (true) { */ case 1:
|
|
195696
|
-
|
|
195697
|
-
|
|
195698
|
-
|
|
195699
|
-
/* */ $s = 5; continue;
|
|
195700
|
-
/* if (_selection[0] ===
|
|
195701
|
-
|
|
195702
|
-
/*
|
|
195703
|
-
|
|
195704
|
-
|
|
195705
|
-
|
|
195706
|
-
|
|
195707
|
-
_selection$1 = _r$1;
|
|
195708
|
-
/* */ if (_selection$1[0] === 0) { $s = 10; continue; }
|
|
195709
|
-
/* */ if (_selection$1[0] === 1) { $s = 11; continue; }
|
|
195710
|
-
/* */ $s = 12; continue;
|
|
195711
|
-
/* if (_selection$1[0] === 0) { */ case 10:
|
|
195712
|
-
$s = 12; continue;
|
|
195713
|
-
/* } else if (_selection$1[0] === 1) { */ case 11:
|
|
195714
|
-
$s = 13; case 13: return;
|
|
195715
|
-
/* } */ case 12:
|
|
195704
|
+
_r = time.After(new time.Duration(0, 1000000000)); /* */ $s = 3; case 3: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
195705
|
+
_r$1 = $select([[s.done], [_r]]); /* */ $s = 4; case 4: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
195706
|
+
_selection = _r$1;
|
|
195707
|
+
/* */ if (_selection[0] === 0) { $s = 5; continue; }
|
|
195708
|
+
/* */ if (_selection[0] === 1) { $s = 6; continue; }
|
|
195709
|
+
/* */ $s = 7; continue;
|
|
195710
|
+
/* if (_selection[0] === 0) { */ case 5:
|
|
195711
|
+
$s = 8; case 8: return;
|
|
195712
|
+
/* } else if (_selection[0] === 1) { */ case 6:
|
|
195713
|
+
/* } */ case 7:
|
|
195714
|
+
$r = s.calculate(); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195716
195715
|
$s = 1; continue;
|
|
195717
195716
|
case 2:
|
|
195718
195717
|
$s = -1; return;
|
|
195719
|
-
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { var $f = {$blk: Stats.ptr.prototype.startCalculations, $c: true, $r, _arg, _r, _r$1, _selection,
|
|
195718
|
+
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { var $f = {$blk: Stats.ptr.prototype.startCalculations, $c: true, $r, _arg, _r, _r$1, _selection, s, $s, $deferred};return $f; } }
|
|
195720
195719
|
};
|
|
195721
195720
|
Stats.prototype.startCalculations = function() { return this.$val.startCalculations(); };
|
|
195722
195721
|
Stats.ptr.prototype.calculate = function() {
|
|
195723
|
-
var {_r, _r$1, _r$10, _r$11, _r$12, _r$13, _r$14, _r$15, _r$16, _r$17, _r$18, _r$19, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _r$8, _r$9, args, s, $s, $r, $c} = $restore(this, {});
|
|
195722
|
+
var {_r, _r$1, _r$10, _r$11, _r$12, _r$13, _r$14, _r$15, _r$16, _r$17, _r$18, _r$19, _r$2, _r$20, _r$3, _r$4, _r$5, _r$6, _r$7, _r$8, _r$9, args, s, $s, $r, $c} = $restore(this, {});
|
|
195724
195723
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
195725
195724
|
s = this;
|
|
195726
195725
|
$r = s.mu.Lock(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195727
|
-
s
|
|
195726
|
+
_r = frameRateClock(); /* */ $s = 2; case 2: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
195727
|
+
$r = s.rotateFrameRate(_r); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195728
195728
|
s.lastThrottledCollectionFrameRate = s.currentThrottledCollectionFramesCount;
|
|
195729
195729
|
s.currentThrottledCollectionFramesCount = 0;
|
|
195730
195730
|
s.lastThrottledDecodeFrameRate = s.currentThrottledDecodeFramesCount;
|
|
195731
195731
|
s.currentThrottledDecodeFramesCount = 0;
|
|
195732
195732
|
s.lastThrottledRenderFrameRate = s.currentThrottledRenderFramesCount;
|
|
195733
195733
|
s.currentThrottledRenderFramesCount = 0;
|
|
195734
|
-
_r = s.metrics.GetAverage("frame_latency"); /* */ $s =
|
|
195735
|
-
s.lastFramesLatencyAverage = (_r);
|
|
195736
|
-
_r$
|
|
195737
|
-
s.lastFramesLatencyVariance = (_r$
|
|
195738
|
-
$r = s.metrics.Reset("frame_latency"); /* */ $s =
|
|
195739
|
-
_r$
|
|
195740
|
-
s.lastFramesCollectionAverage = _r$
|
|
195741
|
-
_r$
|
|
195742
|
-
s.lastFramesCollectionVariance = _r$
|
|
195743
|
-
$r = s.metrics.Reset("frame_collection"); /* */ $s =
|
|
195744
|
-
_r$
|
|
195745
|
-
s.lastFramesDecodeWriteAverage = _r$
|
|
195746
|
-
_r$
|
|
195747
|
-
s.lastFramesDecodeWriteVariance = _r$
|
|
195748
|
-
$r = s.metrics.Reset("frame_decode_write"); /* */ $s =
|
|
195749
|
-
_r$
|
|
195750
|
-
s.lastFramesDecodeOutputAverage = _r$
|
|
195751
|
-
_r$
|
|
195752
|
-
s.lastFramesDecodeOutputVariance = _r$
|
|
195753
|
-
$r = s.metrics.Reset("frame_decode_output"); /* */ $s =
|
|
195754
|
-
_r$
|
|
195755
|
-
s.lastFramesRenderAverage = _r$
|
|
195756
|
-
_r$
|
|
195757
|
-
s.lastFramesRenderVariance = _r$
|
|
195758
|
-
$r = s.metrics.Reset("frame_render"); /* */ $s =
|
|
195759
|
-
$r = s.metrics.RemoveOldest("frame_latency_long_term", 500); /* */ $s =
|
|
195760
|
-
_r$
|
|
195761
|
-
s.longTermFramesLatencyAverage = _r$
|
|
195762
|
-
_r$
|
|
195763
|
-
s.longTermFramesLatencyVariance = _r$
|
|
195764
|
-
$r = s.metrics.RemoveOldest("frame_collection_long_term", 500); /* */ $s =
|
|
195765
|
-
_r$
|
|
195766
|
-
s.longTermFramesCollectionAverage = _r$
|
|
195767
|
-
_r$
|
|
195768
|
-
s.longTermFramesCollectionVariance = _r$
|
|
195769
|
-
$r = s.metrics.RemoveOldest("frame_decode_write_long_term", 500); /* */ $s =
|
|
195770
|
-
_r$
|
|
195771
|
-
s.longTermFramesDecodeWriteAverage = _r$
|
|
195772
|
-
_r$
|
|
195773
|
-
s.longTermFramesDecodeWriteVariance = _r$
|
|
195774
|
-
$r = s.metrics.RemoveOldest("frame_decode_output_long_term", 500); /* */ $s =
|
|
195775
|
-
_r$
|
|
195776
|
-
s.longTermFramesDecodeOutputAverage = _r$
|
|
195777
|
-
_r$
|
|
195778
|
-
s.longTermFramesDecodeOutputVariance = _r$
|
|
195779
|
-
$r = s.metrics.RemoveOldest("frame_render_long_term", 500); /* */ $s =
|
|
195780
|
-
_r$
|
|
195781
|
-
s.longTermFramesRenderAverage = _r$
|
|
195782
|
-
_r$
|
|
195783
|
-
s.longTermFramesRenderVariance = _r$
|
|
195734
|
+
_r$1 = s.metrics.GetAverage("frame_latency"); /* */ $s = 4; case 4: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
195735
|
+
s.lastFramesLatencyAverage = (_r$1);
|
|
195736
|
+
_r$2 = s.metrics.GetVariance("frame_latency"); /* */ $s = 5; case 5: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
195737
|
+
s.lastFramesLatencyVariance = (_r$2);
|
|
195738
|
+
$r = s.metrics.Reset("frame_latency"); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195739
|
+
_r$3 = s.metrics.GetAverage("frame_collection"); /* */ $s = 7; case 7: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
195740
|
+
s.lastFramesCollectionAverage = _r$3;
|
|
195741
|
+
_r$4 = s.metrics.GetVariance("frame_collection"); /* */ $s = 8; case 8: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
195742
|
+
s.lastFramesCollectionVariance = _r$4;
|
|
195743
|
+
$r = s.metrics.Reset("frame_collection"); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195744
|
+
_r$5 = s.metrics.GetAverage("frame_decode_write"); /* */ $s = 10; case 10: if($c) { $c = false; _r$5 = _r$5.$blk(); } if (_r$5 && _r$5.$blk !== undefined) { break s; }
|
|
195745
|
+
s.lastFramesDecodeWriteAverage = _r$5;
|
|
195746
|
+
_r$6 = s.metrics.GetVariance("frame_decode_write"); /* */ $s = 11; case 11: if($c) { $c = false; _r$6 = _r$6.$blk(); } if (_r$6 && _r$6.$blk !== undefined) { break s; }
|
|
195747
|
+
s.lastFramesDecodeWriteVariance = _r$6;
|
|
195748
|
+
$r = s.metrics.Reset("frame_decode_write"); /* */ $s = 12; case 12: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195749
|
+
_r$7 = s.metrics.GetAverage("frame_decode_output"); /* */ $s = 13; case 13: if($c) { $c = false; _r$7 = _r$7.$blk(); } if (_r$7 && _r$7.$blk !== undefined) { break s; }
|
|
195750
|
+
s.lastFramesDecodeOutputAverage = _r$7;
|
|
195751
|
+
_r$8 = s.metrics.GetVariance("frame_decode_output"); /* */ $s = 14; case 14: if($c) { $c = false; _r$8 = _r$8.$blk(); } if (_r$8 && _r$8.$blk !== undefined) { break s; }
|
|
195752
|
+
s.lastFramesDecodeOutputVariance = _r$8;
|
|
195753
|
+
$r = s.metrics.Reset("frame_decode_output"); /* */ $s = 15; case 15: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195754
|
+
_r$9 = s.metrics.GetAverage("frame_render"); /* */ $s = 16; case 16: if($c) { $c = false; _r$9 = _r$9.$blk(); } if (_r$9 && _r$9.$blk !== undefined) { break s; }
|
|
195755
|
+
s.lastFramesRenderAverage = _r$9;
|
|
195756
|
+
_r$10 = s.metrics.GetVariance("frame_render"); /* */ $s = 17; case 17: if($c) { $c = false; _r$10 = _r$10.$blk(); } if (_r$10 && _r$10.$blk !== undefined) { break s; }
|
|
195757
|
+
s.lastFramesRenderVariance = _r$10;
|
|
195758
|
+
$r = s.metrics.Reset("frame_render"); /* */ $s = 18; case 18: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195759
|
+
$r = s.metrics.RemoveOldest("frame_latency_long_term", 500); /* */ $s = 19; case 19: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195760
|
+
_r$11 = s.metrics.GetAverage("frame_latency_long_term"); /* */ $s = 20; case 20: if($c) { $c = false; _r$11 = _r$11.$blk(); } if (_r$11 && _r$11.$blk !== undefined) { break s; }
|
|
195761
|
+
s.longTermFramesLatencyAverage = _r$11;
|
|
195762
|
+
_r$12 = s.metrics.GetVariance("frame_latency_long_term"); /* */ $s = 21; case 21: if($c) { $c = false; _r$12 = _r$12.$blk(); } if (_r$12 && _r$12.$blk !== undefined) { break s; }
|
|
195763
|
+
s.longTermFramesLatencyVariance = _r$12;
|
|
195764
|
+
$r = s.metrics.RemoveOldest("frame_collection_long_term", 500); /* */ $s = 22; case 22: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195765
|
+
_r$13 = s.metrics.GetAverage("frame_collection_long_term"); /* */ $s = 23; case 23: if($c) { $c = false; _r$13 = _r$13.$blk(); } if (_r$13 && _r$13.$blk !== undefined) { break s; }
|
|
195766
|
+
s.longTermFramesCollectionAverage = _r$13;
|
|
195767
|
+
_r$14 = s.metrics.GetVariance("frame_collection_long_term"); /* */ $s = 24; case 24: if($c) { $c = false; _r$14 = _r$14.$blk(); } if (_r$14 && _r$14.$blk !== undefined) { break s; }
|
|
195768
|
+
s.longTermFramesCollectionVariance = _r$14;
|
|
195769
|
+
$r = s.metrics.RemoveOldest("frame_decode_write_long_term", 500); /* */ $s = 25; case 25: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195770
|
+
_r$15 = s.metrics.GetAverage("frame_decode_write_long_term"); /* */ $s = 26; case 26: if($c) { $c = false; _r$15 = _r$15.$blk(); } if (_r$15 && _r$15.$blk !== undefined) { break s; }
|
|
195771
|
+
s.longTermFramesDecodeWriteAverage = _r$15;
|
|
195772
|
+
_r$16 = s.metrics.GetVariance("frame_decode_write_long_term"); /* */ $s = 27; case 27: if($c) { $c = false; _r$16 = _r$16.$blk(); } if (_r$16 && _r$16.$blk !== undefined) { break s; }
|
|
195773
|
+
s.longTermFramesDecodeWriteVariance = _r$16;
|
|
195774
|
+
$r = s.metrics.RemoveOldest("frame_decode_output_long_term", 500); /* */ $s = 28; case 28: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195775
|
+
_r$17 = s.metrics.GetAverage("frame_decode_output_long_term"); /* */ $s = 29; case 29: if($c) { $c = false; _r$17 = _r$17.$blk(); } if (_r$17 && _r$17.$blk !== undefined) { break s; }
|
|
195776
|
+
s.longTermFramesDecodeOutputAverage = _r$17;
|
|
195777
|
+
_r$18 = s.metrics.GetVariance("frame_decode_output_long_term"); /* */ $s = 30; case 30: if($c) { $c = false; _r$18 = _r$18.$blk(); } if (_r$18 && _r$18.$blk !== undefined) { break s; }
|
|
195778
|
+
s.longTermFramesDecodeOutputVariance = _r$18;
|
|
195779
|
+
$r = s.metrics.RemoveOldest("frame_render_long_term", 500); /* */ $s = 31; case 31: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195780
|
+
_r$19 = s.metrics.GetAverage("frame_render_long_term"); /* */ $s = 32; case 32: if($c) { $c = false; _r$19 = _r$19.$blk(); } if (_r$19 && _r$19.$blk !== undefined) { break s; }
|
|
195781
|
+
s.longTermFramesRenderAverage = _r$19;
|
|
195782
|
+
_r$20 = s.metrics.GetVariance("frame_render_long_term"); /* */ $s = 33; case 33: if($c) { $c = false; _r$20 = _r$20.$blk(); } if (_r$20 && _r$20.$blk !== undefined) { break s; }
|
|
195783
|
+
s.longTermFramesRenderVariance = _r$20;
|
|
195784
195784
|
args = s.printArgs();
|
|
195785
|
-
$r = s.mu.Unlock(); /* */ $s =
|
|
195786
|
-
$r = log.Printf("fr:%d, THR: col:%d, dec:%d, ren:%d | del:\xE2\x8C\x80%dms, srv:\xE2\x8C\x80%dms | ST: lat:\xE2\x8C\x80%dms/\xC2\xB1%dms, col:\xE2\x8C\x80%dms/\xC2\xB1%dms, dec-wrt:\xE2\x8C\x80%dms/\xC2\xB1%dms dec-out:\xE2\x8C\x80%dms/\xC2\xB1%dms, ren:\xE2\x8C\x80%dms/\xC2\xB1%dms | LT:lat:\xE2\x8C\x80%dms/\xC2\xB1%dms, col:\xE2\x8C\x80%dms/\xC2\xB1%dms, dec-wrt:\xE2\x8C\x80%dms/\xC2\xB1%dms dec-out:\xE2\x8C\x80%dms/\xC2\xB1%dms, ren:\xE2\x8C\x80%dms/\xC2\xB1%dms\n", args); /* */ $s =
|
|
195785
|
+
$r = s.mu.Unlock(); /* */ $s = 34; case 34: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195786
|
+
$r = log.Printf("fr:%d, THR: col:%d, dec:%d, ren:%d | del:\xE2\x8C\x80%dms, srv:\xE2\x8C\x80%dms | ST: lat:\xE2\x8C\x80%dms/\xC2\xB1%dms, col:\xE2\x8C\x80%dms/\xC2\xB1%dms, dec-wrt:\xE2\x8C\x80%dms/\xC2\xB1%dms dec-out:\xE2\x8C\x80%dms/\xC2\xB1%dms, ren:\xE2\x8C\x80%dms/\xC2\xB1%dms | LT:lat:\xE2\x8C\x80%dms/\xC2\xB1%dms, col:\xE2\x8C\x80%dms/\xC2\xB1%dms, dec-wrt:\xE2\x8C\x80%dms/\xC2\xB1%dms dec-out:\xE2\x8C\x80%dms/\xC2\xB1%dms, ren:\xE2\x8C\x80%dms/\xC2\xB1%dms\n", args); /* */ $s = 35; case 35: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195787
195787
|
$s = -1; return;
|
|
195788
|
-
/* */ } return; } var $f = {$blk: Stats.ptr.prototype.calculate, $c: true, $r, _r, _r$1, _r$10, _r$11, _r$12, _r$13, _r$14, _r$15, _r$16, _r$17, _r$18, _r$19, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _r$8, _r$9, args, s, $s};return $f;
|
|
195788
|
+
/* */ } return; } var $f = {$blk: Stats.ptr.prototype.calculate, $c: true, $r, _r, _r$1, _r$10, _r$11, _r$12, _r$13, _r$14, _r$15, _r$16, _r$17, _r$18, _r$19, _r$2, _r$20, _r$3, _r$4, _r$5, _r$6, _r$7, _r$8, _r$9, args, s, $s};return $f;
|
|
195789
195789
|
};
|
|
195790
195790
|
Stats.prototype.calculate = function() { return this.$val.calculate(); };
|
|
195791
195791
|
Stats.ptr.prototype.printArgs = function() {
|
|
@@ -195995,12 +195995,21 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
195995
195995
|
}
|
|
195996
195996
|
return (new time.Duration(0, math.Sqrt(sum / (values.$length))));
|
|
195997
195997
|
};
|
|
195998
|
+
frameRateClock = function() {
|
|
195999
|
+
var {$24r, _r, _r$1, $s, $r, $c} = $restore(this, {});
|
|
196000
|
+
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
196001
|
+
_r = $clone(performance, js.Value).Call("now", sliceType.nil); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
196002
|
+
_r$1 = $clone(_r, js.Value).Float(); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
196003
|
+
$24r = (new time.Duration(0, _r$1 * 1e+06));
|
|
196004
|
+
$s = 3; case 3: return $24r;
|
|
196005
|
+
/* */ } return; } var $f = {$blk: frameRateClock, $c: true, $r, $24r, _r, _r$1, $s};return $f;
|
|
196006
|
+
};
|
|
195998
196007
|
ptrType$1.methods = [{prop: "Start", name: "Start", pkg: "", typ: $funcType([$String], [], false)}, {prop: "Stop", name: "Stop", pkg: "", typ: $funcType([$String], [time.Duration], false)}];
|
|
195999
|
-
ptrType$5.methods = [{prop: "Stop", name: "Stop", pkg: "", typ: $funcType([], [], false)}, {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: "NotifyFrameCollectionDuration", name: "NotifyFrameCollectionDuration", pkg: "", typ: $funcType([time.Duration], [], 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: "GetLastActiveFrameRate", name: "GetLastActiveFrameRate", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "rotateFrameRate", name: "rotateFrameRate", pkg: "github.com/supraio/client-daemon/pkg/stats", typ: $funcType([], [], false)}, {prop: "startCalculations", name: "startCalculations", pkg: "github.com/supraio/client-daemon/pkg/stats", typ: $funcType([], [], false)}, {prop: "calculate", name: "calculate", pkg: "github.com/supraio/client-daemon/pkg/stats", typ: $funcType([], [], false)}, {prop: "printArgs", name: "printArgs", pkg: "github.com/supraio/client-daemon/pkg/stats", typ: $funcType([], [sliceType], 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)}, {prop: "SetEncodingPreferences", name: "SetEncodingPreferences", pkg: "", typ: $funcType([EncodingPreferences], [], false)}];
|
|
196008
|
+
ptrType$5.methods = [{prop: "Stop", name: "Stop", pkg: "", typ: $funcType([], [], false)}, {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: "NotifyFrameCollectionDuration", name: "NotifyFrameCollectionDuration", pkg: "", typ: $funcType([time.Duration], [], 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: "GetLastActiveFrameRate", name: "GetLastActiveFrameRate", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "rotateFrameRate", name: "rotateFrameRate", pkg: "github.com/supraio/client-daemon/pkg/stats", typ: $funcType([time.Duration], [], false)}, {prop: "startCalculations", name: "startCalculations", pkg: "github.com/supraio/client-daemon/pkg/stats", typ: $funcType([], [], false)}, {prop: "calculate", name: "calculate", pkg: "github.com/supraio/client-daemon/pkg/stats", typ: $funcType([], [], false)}, {prop: "printArgs", name: "printArgs", pkg: "github.com/supraio/client-daemon/pkg/stats", typ: $funcType([], [sliceType], 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)}, {prop: "SetEncodingPreferences", name: "SetEncodingPreferences", pkg: "", typ: $funcType([EncodingPreferences], [], false)}];
|
|
196000
196009
|
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)}];
|
|
196001
196010
|
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: ""}]);
|
|
196002
196011
|
Frame.init([{prop: "GetTimestamp", name: "GetTimestamp", pkg: "", typ: $funcType([], [time.Time], false)}]);
|
|
196003
|
-
Stats.init("github.com/supraio/client-daemon/pkg/stats", [{prop: "mu", name: "mu", embedded: false, exported: false, typ: sync.Mutex, 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: "done", name: "done", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "calcStopped", name: "calcStopped", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "stopOnce", name: "stopOnce", embedded: false, exported: false, typ: sync.Once, 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: "lastActiveFrameRate", name: "lastActiveFrameRate", 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: ""}, {prop: "encodingPreferences", name: "encodingPreferences", embedded: false, exported: false, typ: EncodingPreferences, tag: ""}]);
|
|
196012
|
+
Stats.init("github.com/supraio/client-daemon/pkg/stats", [{prop: "mu", name: "mu", embedded: false, exported: false, typ: sync.Mutex, 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: "done", name: "done", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "calcStopped", name: "calcStopped", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "stopOnce", name: "stopOnce", embedded: false, exported: false, typ: sync.Once, 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: "lastActiveFrameRate", name: "lastActiveFrameRate", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "frameRateWindowStartedAt", name: "frameRateWindowStartedAt", embedded: false, exported: false, typ: time.Duration, 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: ""}, {prop: "encodingPreferences", name: "encodingPreferences", embedded: false, exported: false, typ: EncodingPreferences, tag: ""}]);
|
|
196004
196013
|
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: ""}]);
|
|
196005
196014
|
EncodingPreferences.init("", [{prop: "PreferredQualityIndex", name: "PreferredQualityIndex", embedded: false, exported: true, typ: $Int, tag: "json:\"preferredQualityIndex\""}, {prop: "PreferredBitrateKbps", name: "PreferredBitrateKbps", embedded: false, exported: true, typ: $Int, tag: "json:\"preferredBitrateKbps\""}, {prop: "PreferredPreset", name: "PreferredPreset", embedded: false, exported: true, typ: $String, tag: "json:\"preferredPreset\""}, {prop: "PreferredTune", name: "PreferredTune", embedded: false, exported: true, typ: $String, tag: "json:\"preferredTune\""}, {prop: "PreferredProfile", name: "PreferredProfile", embedded: false, exported: true, typ: $String, tag: "json:\"preferredProfile\""}]);
|
|
196006
196015
|
InputMetrics.init("", [{prop: "MouseEventsReceived", name: "MouseEventsReceived", embedded: false, exported: true, typ: $Int, tag: "json:\"mouseEventsReceived\""}, {prop: "MouseEventsSent", name: "MouseEventsSent", embedded: false, exported: true, typ: $Int, tag: "json:\"mouseEventsSent\""}, {prop: "MouseBytesSent", name: "MouseBytesSent", embedded: false, exported: true, typ: $Int, tag: "json:\"mouseBytesSent\""}, {prop: "MouseSendAverageNano", name: "MouseSendAverageNano", embedded: false, exported: true, typ: $Int64, tag: "json:\"mouseSendAverageNano\""}, {prop: "MouseSendMaxNano", name: "MouseSendMaxNano", embedded: false, exported: true, typ: $Int64, tag: "json:\"mouseSendMaxNano\""}, {prop: "MouseWaitMaxNano", name: "MouseWaitMaxNano", embedded: false, exported: true, typ: $Int64, tag: "json:\"mouseWaitMaxNano\""}, {prop: "TouchEventsReceived", name: "TouchEventsReceived", embedded: false, exported: true, typ: $Int, tag: "json:\"touchEventsReceived\""}, {prop: "TouchEventsSent", name: "TouchEventsSent", embedded: false, exported: true, typ: $Int, tag: "json:\"touchEventsSent\""}, {prop: "TouchBytesSent", name: "TouchBytesSent", embedded: false, exported: true, typ: $Int, tag: "json:\"touchBytesSent\""}, {prop: "TouchSendAverageNano", name: "TouchSendAverageNano", embedded: false, exported: true, typ: $Int64, tag: "json:\"touchSendAverageNano\""}, {prop: "TouchSendMaxNano", name: "TouchSendMaxNano", embedded: false, exported: true, typ: $Int64, tag: "json:\"touchSendMaxNano\""}, {prop: "TouchMaxConcurrentSeq", name: "TouchMaxConcurrentSeq", embedded: false, exported: true, typ: $Int, tag: "json:\"touchMaxConcurrentSeq\""}, {prop: "TouchWaitMaxNano", name: "TouchWaitMaxNano", embedded: false, exported: true, typ: $Int64, tag: "json:\"touchWaitMaxNano\""}]);
|
|
@@ -196012,7 +196021,9 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
196012
196021
|
$r = log.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196013
196022
|
$r = math.$init(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196014
196023
|
$r = sync.$init(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196015
|
-
$r =
|
|
196024
|
+
$r = js.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196025
|
+
$r = time.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196026
|
+
performance = $clone($clone(js.Global(), js.Value).Get("performance"), js.Value);
|
|
196016
196027
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
196017
196028
|
};
|
|
196018
196029
|
$pkg.$init = $init;
|