profile-viewer 0.0.5 → 0.0.7
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.
- checksums.yaml +4 -4
- data/dist/AssemblyView-codemirror-D6IBMDRW.js +3 -0
- data/dist/AssemblyView-codemirror-D6IBMDRW.js.map +7 -0
- data/dist/SourceView-codemirror-NF5HZACX.js +14 -0
- data/dist/SourceView-codemirror-NF5HZACX.js.map +7 -0
- data/dist/_headers +1 -4
- data/dist/chunk-46YDEKKM.js +2 -0
- data/dist/chunk-46YDEKKM.js.map +7 -0
- data/dist/chunk-6K4OT4SN.js +11 -0
- data/dist/chunk-6K4OT4SN.js.map +7 -0
- data/dist/chunk-FQFFJJVU.js +2 -0
- data/dist/chunk-FQFFJJVU.js.map +7 -0
- data/dist/chunk-JZQU3SPI.js +2 -0
- data/dist/chunk-JZQU3SPI.js.map +7 -0
- data/dist/chunk-RMHNU7HN.js +2 -0
- data/dist/chunk-RMHNU7HN.js.map +7 -0
- data/dist/contribute.json +1 -1
- data/dist/docs/css/vue_v4.13.1.min.css +1 -0
- data/dist/docs/guide-filtering-call-trees.md +12 -0
- data/dist/docs/guide-ui-tour-panels.md +16 -1
- data/dist/docs/index.html +5 -6
- data/dist/docs/js/docsify_v4.13.1+.min.js +1 -0
- data/dist/docs/js/init.js +11 -1
- data/dist/docs/js/search_v4.13.1+.min.js +1 -0
- data/dist/gecko-profiler-demangle-3UYO3F2Y.js +2 -0
- data/dist/gecko-profiler-demangle-3UYO3F2Y.js.map +7 -0
- data/dist/gz.worker-C7QSA26N.js +38 -0
- data/dist/index-CZ7T6DL2.css +2 -0
- data/dist/index-CZ7T6DL2.css.map +7 -0
- data/dist/index-P5VLDZC7.js +381 -0
- data/dist/index-P5VLDZC7.js.map +7 -0
- data/dist/index.html +38 -1
- data/dist/index_bg-FTIMKZRG.wasm +0 -0
- data/dist/jszip.min-JBI6ADTT.js +18 -0
- data/dist/jszip.min-JBI6ADTT.js.map +7 -0
- data/dist/locales/be/app.ftl +50 -11
- data/dist/locales/de/app.ftl +114 -16
- data/dist/locales/el/app.ftl +135 -42
- data/dist/locales/en-CA/app.ftl +97 -11
- data/dist/locales/en-GB/app.ftl +114 -16
- data/dist/locales/en-US/app.ftl +116 -1
- data/dist/locales/es-CL/app.ftl +105 -15
- data/dist/locales/fr/app.ftl +82 -16
- data/dist/locales/fur/app.ftl +35 -11
- data/dist/locales/fy-NL/app.ftl +114 -16
- data/dist/locales/ia/app.ftl +118 -19
- data/dist/locales/it/app.ftl +108 -16
- data/dist/locales/kab/app.ftl +6 -80
- data/dist/locales/nl/app.ftl +114 -16
- data/dist/locales/pt-BR/app.ftl +104 -16
- data/dist/locales/ru/app.ftl +116 -23
- data/dist/locales/sv-SE/app.ftl +114 -16
- data/dist/locales/tr/app.ftl +149 -13
- data/dist/locales/uk/app.ftl +27 -19
- data/dist/locales/zh-CN/app.ftl +75 -13
- data/dist/locales/zh-TW/app.ftl +100 -14
- data/dist/photon/index.css +2 -0
- data/dist/photon/index.css.map +7 -0
- data/dist/photon/index.html +856 -26
- data/dist/photon/index.js +1 -0
- data/dist/photon/index.js.map +7 -0
- data/dist/service-worker-compat.js +51 -1
- data/dist/simpleperf-UUIE7C7E.js +25 -0
- data/dist/simpleperf-UUIE7C7E.js.map +7 -0
- data/dist/sw.js +1 -1
- data/dist/sw.js.map +1 -1
- data/dist/{workbox-e3490c72.js → workbox-1ef09536.js} +2 -2
- data/dist/workbox-1ef09536.js.map +1 -0
- data/ruby-bin/profile-viewer +48 -40
- data/ruby-bin/profile-viewer-version.rb +1 -1
- metadata +56 -103
- data/dist/022efb839d22fa54a716.svg +0 -28
- data/dist/029b9e4fd0218d7b09c6.svg +0 -8
- data/dist/0c510afd6169a0a83f97.svg +0 -14
- data/dist/0d5cf282780cd1a5ec64.svg +0 -8
- data/dist/118632062f4755918dac.svg +0 -4
- data/dist/11c5dca6d97c9e10e5b7.svg +0 -9
- data/dist/136.ad4176dc2a8e5cf33ef3.bundle.js +0 -2
- data/dist/136.ad4176dc2a8e5cf33ef3.bundle.js.map +0 -1
- data/dist/171.37d1e1824587d8df0ae2.bundle.js +0 -2
- data/dist/171.37d1e1824587d8df0ae2.bundle.js.map +0 -1
- data/dist/18e7fdd45099134897d2.svg +0 -8
- data/dist/1ddbc3ce40af8c7a648b.svg +0 -6
- data/dist/234ed61ab185caff67e3.svg +0 -8
- data/dist/280.4edd20bd6228986bbf2e.bundle.js +0 -2
- data/dist/280.4edd20bd6228986bbf2e.bundle.js.map +0 -1
- data/dist/2d4b477bc424d35a0245.svg +0 -25
- data/dist/2e43ad991eb141fc017f.svg +0 -9
- data/dist/2ea5b50b7361e6de561c.svg +0 -11
- data/dist/2f37d1addc2d2f5b699e.module.wasm +0 -0
- data/dist/31fe933f3a12be1aa7f3.svg +0 -4
- data/dist/390aa266f451c1005f61.svg +0 -10
- data/dist/3a829bf1fcf02598aa4b.svg +0 -6
- data/dist/3c3fda7c08bcc9544c64.svg +0 -6
- data/dist/4260d5db8309a6f83637.svg +0 -10
- data/dist/4536fd0738f36c3463bc.svg +0 -1
- data/dist/490065792b7e903c9f3e.svg +0 -6
- data/dist/49da6a2153f62ef73d17.svg +0 -7
- data/dist/4ecb077d8715f89c0f87.svg +0 -13
- data/dist/524e896f487119a0b832.svg +0 -13
- data/dist/556.b8d3d4d402ced081615a.bundle.js +0 -2
- data/dist/556.b8d3d4d402ced081615a.bundle.js.map +0 -1
- data/dist/6bd0589a27236471fdab.svg +0 -4
- data/dist/6c6b49af3a86dfdd44e6.svg +0 -4
- data/dist/6c8063be3afa1d95c902.svg +0 -3
- data/dist/71730566d6c47ffdc965.svg +0 -12
- data/dist/7273fadce89da05535e5.svg +0 -4
- data/dist/731673c749e57bf6f544.svg +0 -13
- data/dist/76e5b29823c9fd62d90d.svg +0 -3
- data/dist/7853c71223701f30d495.svg +0 -19
- data/dist/79856ce399cb305fafb8.svg +0 -19
- data/dist/7c7ac3c7df370340cfd2.svg +0 -7
- data/dist/7e3ac9afb25cfe809520.svg +0 -1
- data/dist/81762b0b1aacd3686a6b.svg +0 -12
- data/dist/86e81402ef76d28ff55f.svg +0 -15
- data/dist/874.7cb94ee0732c5a2ca826.bundle.js +0 -2
- data/dist/874.7cb94ee0732c5a2ca826.bundle.js.map +0 -1
- data/dist/8846b19a497771fe0e9d.svg +0 -4
- data/dist/8aae7b979b04407f71a4.svg +0 -3
- data/dist/8b8b909e42722172d494.svg +0 -7
- data/dist/8dab2a6ba757bcc6e9a5.svg +0 -3
- data/dist/9103e94f1d34c15d44be.svg +0 -6
- data/dist/957.2f40be4cef3037bc352b.bundle.js +0 -3
- data/dist/957.2f40be4cef3037bc352b.bundle.js.LICENSE.txt +0 -19
- data/dist/957.2f40be4cef3037bc352b.bundle.js.map +0 -1
- data/dist/999.a1119c25d77e1883c1e1.bundle.js +0 -2
- data/dist/999.a1119c25d77e1883c1e1.bundle.js.map +0 -1
- data/dist/9a7bd6ec36312a2baa7e.svg +0 -1
- data/dist/9d858d1a3ab57f8ee2e1.svg +0 -4
- data/dist/9eb1fab2684d1e1f0e26.svg +0 -13
- data/dist/a3196e840709b18a3119.svg +0 -1
- data/dist/aa867391c311267af5a9.svg +0 -4
- data/dist/acb8393f3fb9c59b15c9.svg +0 -20
- data/dist/b5698a02eef37ce29146.svg +0 -10
- data/dist/c3432220f657733ed05f.svg +0 -10
- data/dist/ca2af827049e9039ef9c.svg +0 -8
- data/dist/d09537c705fb0878eb63.svg +0 -4
- data/dist/d6df0017c0241dfe86ff.svg +0 -6
- data/dist/d9c199b3e3e469cc5713.svg +0 -10
- data/dist/da1f21c60c7217745dd8.svg +0 -1
- data/dist/docs/gitpod.md +0 -34
- data/dist/docs/js/docsify_v4.12.2+.min.js +0 -1
- data/dist/docs/js/ga_v4.12.2.min.js +0 -1
- data/dist/docs/js/search_v4.12.2.min.js +0 -1
- data/dist/e4ed50222911c5af9a32.svg +0 -12
- data/dist/e70722c0fe0ac3d4227b.svg +0 -10
- data/dist/f8e25c2ebeb0a0725a9e.svg +0 -12
- data/dist/fcb532a05dd4b09c2d08.svg +0 -10
- data/dist/fd040fb5f4e7a515bb3c.svg +0 -15
- data/dist/main.6cdc9308b67c00785584.bundle.js +0 -198
- data/dist/main.6cdc9308b67c00785584.bundle.js.LICENSE.txt +0 -63
- data/dist/main.6cdc9308b67c00785584.bundle.js.map +0 -1
- data/dist/photon/118632062f4755918dac.svg +0 -4
- data/dist/photon/31fe933f3a12be1aa7f3.svg +0 -4
- data/dist/photon/49da6a2153f62ef73d17.svg +0 -7
- data/dist/photon/6bd0589a27236471fdab.svg +0 -4
- data/dist/photon/6c8063be3afa1d95c902.svg +0 -3
- data/dist/photon/76e5b29823c9fd62d90d.svg +0 -3
- data/dist/photon/8aae7b979b04407f71a4.svg +0 -3
- data/dist/photon/8dab2a6ba757bcc6e9a5.svg +0 -3
- data/dist/photon/9103e94f1d34c15d44be.svg +0 -6
- data/dist/photon/aa867391c311267af5a9.svg +0 -4
- data/dist/photon/main.e1d25e5ea6d5812b127b.bundle.js +0 -2
- data/dist/photon/main.e1d25e5ea6d5812b127b.bundle.js.map +0 -1
- data/dist/workbox-e3490c72.js.map +0 -1
- data/dist/zee-worker.js +0 -1
- /data/dist/{4d26f0e38c22eedde178.jpg → firefox-profiler-button-2021-05-06-ZEMGS6NI.jpg} +0 -0
- /data/dist/{18a5d1d99f1c65c33b71.png → perf-screenshot-2024-02-29-4YCKHIPD.png} +0 -0
- /data/dist/{favicon.png → res/img/favicon.png} +0 -0
- /data/dist/{58c5415e952fb6dddd6b.png → spinner-DC3JCQB7.png} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=/photon/index.js.map
|
|
@@ -1 +1,51 @@
|
|
|
1
|
-
|
|
1
|
+
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
2
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
3
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
4
|
+
|
|
5
|
+
// This file will be imported into the workbox-powered service worker.
|
|
6
|
+
// It acts as a small compatibility layer so that the new service worker
|
|
7
|
+
// understands offline-plugin's way of requesting to skip waiting.
|
|
8
|
+
// See this code in the old plugin:
|
|
9
|
+
// https://github.com/NekR/offline-plugin/blob/2b51a89aba53fcf1603786f86a75e6f25fd03721/tpls/runtime-template.js#L198
|
|
10
|
+
// https://github.com/NekR/offline-plugin/blob/2b51a89aba53fcf1603786f86a75e6f25fd03721/src/misc/sw-template.js#L346
|
|
11
|
+
|
|
12
|
+
// Support offline-plugin's way of applying updates.
|
|
13
|
+
self.addEventListener('message', (event) => {
|
|
14
|
+
if (event.data && event.data.action === 'skipWaiting') {
|
|
15
|
+
console.log(
|
|
16
|
+
"We received a message from the old offline-plugin runtime code, let's switch to the new service worker."
|
|
17
|
+
);
|
|
18
|
+
self.skipWaiting();
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// Cleanup offline-plugin's storage
|
|
23
|
+
// This is the cache name prefix for the old service worker.
|
|
24
|
+
const OFFLINE_PLUGIN_PREFIX = 'webpack-offline:';
|
|
25
|
+
|
|
26
|
+
// The code in these 2 functions was heavily inspired by workbox' own code.
|
|
27
|
+
async function cleanupOfflinePluginStorage() {
|
|
28
|
+
const cacheNames = await self.caches.keys();
|
|
29
|
+
const cacheNamesToDelete = cacheNames.filter((cacheName) =>
|
|
30
|
+
cacheName.startsWith(OFFLINE_PLUGIN_PREFIX)
|
|
31
|
+
);
|
|
32
|
+
await Promise.all(
|
|
33
|
+
cacheNamesToDelete.map((cacheName) => self.caches.delete(cacheName))
|
|
34
|
+
);
|
|
35
|
+
return cacheNamesToDelete;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
self.addEventListener('activate', (event) => {
|
|
39
|
+
event.waitUntil(
|
|
40
|
+
cleanupOfflinePluginStorage().then((cachesDeleted) => {
|
|
41
|
+
{
|
|
42
|
+
if (cachesDeleted.length > 0) {
|
|
43
|
+
console.log(
|
|
44
|
+
`The following out-of-date precaches from the old offline-plugin-based service worker were cleaned up automatically:`,
|
|
45
|
+
cachesDeleted
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
);
|
|
51
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import{A as Dt,B as Ft,C as Bt,J as Mt,N as qt,O as lt,P as Ut,i as kt,s as Lt,t as Rt,v as At,x as Pt}from"/chunk-RMHNU7HN.js";import{b as I,d as Qe}from"/chunk-JZQU3SPI.js";var Jt=I((cr,Vt)=>{"use strict";Vt.exports=tr;function tr(o,e){for(var n=new Array(arguments.length-1),t=0,r=2,i=!0;r<arguments.length;)n[t++]=arguments[r++];return new Promise(function(f,u){n[t]=function(s){if(i)if(i=!1,s)u(s);else{for(var b=new Array(arguments.length-1),_=0;_<b.length;)b[_++]=arguments[_];f.apply(null,b)}};try{o.apply(e||null,n)}catch(a){i&&(i=!1,u(a))}})}});var jt=I(zt=>{"use strict";var tt=zt;tt.length=function(e){var n=e.length;if(!n)return 0;for(var t=0;--n%4>1&&e.charAt(n)==="=";)++t;return Math.ceil(e.length*3)/4-t};var $=new Array(64),Ht=new Array(123);for(A=0;A<64;)Ht[$[A]=A<26?A+65:A<52?A+71:A<62?A-4:A-59|43]=A++;var A;tt.encode=function(e,n,t){for(var r=null,i=[],l=0,f=0,u;n<t;){var a=e[n++];switch(f){case 0:i[l++]=$[a>>2],u=(a&3)<<4,f=1;break;case 1:i[l++]=$[u|a>>4],u=(a&15)<<2,f=2;break;case 2:i[l++]=$[u|a>>6],i[l++]=$[a&63],f=0;break}l>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,i)),l=0)}return f&&(i[l++]=$[u],i[l++]=61,f===1&&(i[l++]=61)),r?(l&&r.push(String.fromCharCode.apply(String,i.slice(0,l))),r.join("")):String.fromCharCode.apply(String,i.slice(0,l))};var Wt="invalid encoding";tt.decode=function(e,n,t){for(var r=t,i=0,l,f=0;f<e.length;){var u=e.charCodeAt(f++);if(u===61&&i>1)break;if((u=Ht[u])===void 0)throw Error(Wt);switch(i){case 0:l=u,i=1;break;case 1:n[t++]=l<<2|(u&48)>>4,l=u,i=2;break;case 2:n[t++]=(l&15)<<4|(u&60)>>2,l=u,i=3;break;case 3:n[t++]=(l&3)<<6|u,i=0;break}}if(i===1)throw Error(Wt);return t-r};tt.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}});var $t=I((sr,Zt)=>{"use strict";Zt.exports=et;function et(){this._listeners={}}et.prototype.on=function(e,n,t){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:n,ctx:t||this}),this};et.prototype.off=function(e,n){if(e===void 0)this._listeners={};else if(n===void 0)this._listeners[e]=[];else for(var t=this._listeners[e],r=0;r<t.length;)t[r].fn===n?t.splice(r,1):++r;return this};et.prototype.emit=function(e){var n=this._listeners[e];if(n){for(var t=[],r=1;r<arguments.length;)t.push(arguments[r++]);for(r=0;r<n.length;)n[r].fn.apply(n[r++].ctx,t)}return this}});var ee=I((dr,te)=>{"use strict";te.exports=Kt(Kt);function Kt(o){return typeof Float32Array<"u"?(function(){var e=new Float32Array([-0]),n=new Uint8Array(e.buffer),t=n[3]===128;function r(u,a,s){e[0]=u,a[s]=n[0],a[s+1]=n[1],a[s+2]=n[2],a[s+3]=n[3]}function i(u,a,s){e[0]=u,a[s]=n[3],a[s+1]=n[2],a[s+2]=n[1],a[s+3]=n[0]}o.writeFloatLE=t?r:i,o.writeFloatBE=t?i:r;function l(u,a){return n[0]=u[a],n[1]=u[a+1],n[2]=u[a+2],n[3]=u[a+3],e[0]}function f(u,a){return n[3]=u[a],n[2]=u[a+1],n[1]=u[a+2],n[0]=u[a+3],e[0]}o.readFloatLE=t?l:f,o.readFloatBE=t?f:l})():(function(){function e(t,r,i,l){var f=r<0?1:0;if(f&&(r=-r),r===0)t(1/r>0?0:2147483648,i,l);else if(isNaN(r))t(2143289344,i,l);else if(r>34028234663852886e22)t((f<<31|2139095040)>>>0,i,l);else if(r<11754943508222875e-54)t((f<<31|Math.round(r/1401298464324817e-60))>>>0,i,l);else{var u=Math.floor(Math.log(r)/Math.LN2),a=Math.round(r*Math.pow(2,-u)*8388608)&8388607;t((f<<31|u+127<<23|a)>>>0,i,l)}}o.writeFloatLE=e.bind(null,Gt),o.writeFloatBE=e.bind(null,Xt);function n(t,r,i){var l=t(r,i),f=(l>>31)*2+1,u=l>>>23&255,a=l&8388607;return u===255?a?NaN:f*(1/0):u===0?f*1401298464324817e-60*a:f*Math.pow(2,u-150)*(a+8388608)}o.readFloatLE=n.bind(null,Yt),o.readFloatBE=n.bind(null,Qt)})(),typeof Float64Array<"u"?(function(){var e=new Float64Array([-0]),n=new Uint8Array(e.buffer),t=n[7]===128;function r(u,a,s){e[0]=u,a[s]=n[0],a[s+1]=n[1],a[s+2]=n[2],a[s+3]=n[3],a[s+4]=n[4],a[s+5]=n[5],a[s+6]=n[6],a[s+7]=n[7]}function i(u,a,s){e[0]=u,a[s]=n[7],a[s+1]=n[6],a[s+2]=n[5],a[s+3]=n[4],a[s+4]=n[3],a[s+5]=n[2],a[s+6]=n[1],a[s+7]=n[0]}o.writeDoubleLE=t?r:i,o.writeDoubleBE=t?i:r;function l(u,a){return n[0]=u[a],n[1]=u[a+1],n[2]=u[a+2],n[3]=u[a+3],n[4]=u[a+4],n[5]=u[a+5],n[6]=u[a+6],n[7]=u[a+7],e[0]}function f(u,a){return n[7]=u[a],n[6]=u[a+1],n[5]=u[a+2],n[4]=u[a+3],n[3]=u[a+4],n[2]=u[a+5],n[1]=u[a+6],n[0]=u[a+7],e[0]}o.readDoubleLE=t?l:f,o.readDoubleBE=t?f:l})():(function(){function e(t,r,i,l,f,u){var a=l<0?1:0;if(a&&(l=-l),l===0)t(0,f,u+r),t(1/l>0?0:2147483648,f,u+i);else if(isNaN(l))t(0,f,u+r),t(2146959360,f,u+i);else if(l>17976931348623157e292)t(0,f,u+r),t((a<<31|2146435072)>>>0,f,u+i);else{var s;if(l<22250738585072014e-324)s=l/5e-324,t(s>>>0,f,u+r),t((a<<31|s/4294967296)>>>0,f,u+i);else{var b=Math.floor(Math.log(l)/Math.LN2);b===1024&&(b=1023),s=l*Math.pow(2,-b),t(s*4503599627370496>>>0,f,u+r),t((a<<31|b+1023<<20|s*1048576&1048575)>>>0,f,u+i)}}}o.writeDoubleLE=e.bind(null,Gt,0,4),o.writeDoubleBE=e.bind(null,Xt,4,0);function n(t,r,i,l,f){var u=t(l,f+r),a=t(l,f+i),s=(a>>31)*2+1,b=a>>>20&2047,_=4294967296*(a&1048575)+u;return b===2047?_?NaN:s*(1/0):b===0?s*5e-324*_:s*Math.pow(2,b-1075)*(_+4503599627370496)}o.readDoubleLE=n.bind(null,Yt,0,4),o.readDoubleBE=n.bind(null,Qt,4,0)})(),o}function Gt(o,e,n){e[n]=o&255,e[n+1]=o>>>8&255,e[n+2]=o>>>16&255,e[n+3]=o>>>24}function Xt(o,e,n){e[n]=o>>>24,e[n+1]=o>>>16&255,e[n+2]=o>>>8&255,e[n+3]=o&255}function Yt(o,e){return(o[e]|o[e+1]<<8|o[e+2]<<16|o[e+3]<<24)>>>0}function Qt(o,e){return(o[e]<<24|o[e+1]<<16|o[e+2]<<8|o[e+3])>>>0}});var re=I((exports,module)=>{"use strict";module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(o){}return null}});var ie=I(ne=>{"use strict";var ut=ne;ut.length=function(e){for(var n=0,t=0,r=0;r<e.length;++r)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:(t&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320?(++r,n+=4):n+=3;return n};ut.read=function(e,n,t){var r=t-n;if(r<1)return"";for(var i=null,l=[],f=0,u;n<t;)u=e[n++],u<128?l[f++]=u:u>191&&u<224?l[f++]=(u&31)<<6|e[n++]&63:u>239&&u<365?(u=((u&7)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,l[f++]=55296+(u>>10),l[f++]=56320+(u&1023)):l[f++]=(u&15)<<12|(e[n++]&63)<<6|e[n++]&63,f>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,l)),f=0);return i?(f&&i.push(String.fromCharCode.apply(String,l.slice(0,f))),i.join("")):String.fromCharCode.apply(String,l.slice(0,f))};ut.write=function(e,n,t){for(var r=t,i,l,f=0;f<e.length;++f)i=e.charCodeAt(f),i<128?n[t++]=i:i<2048?(n[t++]=i>>6|192,n[t++]=i&63|128):(i&64512)===55296&&((l=e.charCodeAt(f+1))&64512)===56320?(i=65536+((i&1023)<<10)+(l&1023),++f,n[t++]=i>>18|240,n[t++]=i>>12&63|128,n[t++]=i>>6&63|128,n[t++]=i&63|128):(n[t++]=i>>12|224,n[t++]=i>>6&63|128,n[t++]=i&63|128);return t-r}});var le=I((gr,oe)=>{"use strict";oe.exports=er;function er(o,e,n){var t=n||8192,r=t>>>1,i=null,l=t;return function(u){if(u<1||u>r)return o(u);l+u>t&&(i=o(t),l=0);var a=e.call(i,l,l+=u);return l&7&&(l=(l|7)+1),a}}});var fe=I((wr,ue)=>{"use strict";ue.exports=T;var X=J();function T(o,e){this.lo=o>>>0,this.hi=e>>>0}var H=T.zero=new T(0,0);H.toNumber=function(){return 0};H.zzEncode=H.zzDecode=function(){return this};H.length=function(){return 1};var rr=T.zeroHash="\0\0\0\0\0\0\0\0";T.fromNumber=function(e){if(e===0)return H;var n=e<0;n&&(e=-e);var t=e>>>0,r=(e-t)/4294967296>>>0;return n&&(r=~r>>>0,t=~t>>>0,++t>4294967295&&(t=0,++r>4294967295&&(r=0))),new T(t,r)};T.from=function(e){if(typeof e=="number")return T.fromNumber(e);if(X.isString(e))if(X.Long)e=X.Long.fromString(e);else return T.fromNumber(parseInt(e,10));return e.low||e.high?new T(e.low>>>0,e.high>>>0):H};T.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var n=~this.lo+1>>>0,t=~this.hi>>>0;return n||(t=t+1>>>0),-(n+t*4294967296)}return this.lo+this.hi*4294967296};T.prototype.toLong=function(e){return X.Long?new X.Long(this.lo|0,this.hi|0,!!e):{low:this.lo|0,high:this.hi|0,unsigned:!!e}};var V=String.prototype.charCodeAt;T.fromHash=function(e){return e===rr?H:new T((V.call(e,0)|V.call(e,1)<<8|V.call(e,2)<<16|V.call(e,3)<<24)>>>0,(V.call(e,4)|V.call(e,5)<<8|V.call(e,6)<<16|V.call(e,7)<<24)>>>0)};T.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};T.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};T.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};T.prototype.length=function(){var e=this.lo,n=(this.lo>>>28|this.hi<<4)>>>0,t=this.hi>>>24;return t===0?n===0?e<16384?e<128?1:2:e<2097152?3:4:n<16384?n<128?5:6:n<2097152?7:8:t<128?9:10}});var J=I(ft=>{"use strict";var d=ft;d.asPromise=Jt();d.base64=jt();d.EventEmitter=$t();d.float=ee();d.inquire=re();d.utf8=ie();d.pool=le();d.LongBits=fe();d.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);d.global=d.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||ft;d.emptyArray=Object.freeze?Object.freeze([]):[];d.emptyObject=Object.freeze?Object.freeze({}):{};d.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};d.isString=function(e){return typeof e=="string"||e instanceof String};d.isObject=function(e){return e&&typeof e=="object"};d.isset=d.isSet=function(e,n){var t=e[n];return t!=null&&e.hasOwnProperty(n)?typeof t!="object"||(Array.isArray(t)?t.length:Object.keys(t).length)>0:!1};d.Buffer=(function(){try{var o=d.inquire("buffer").Buffer;return o.prototype.utf8Write?o:null}catch{return null}})();d._Buffer_from=null;d._Buffer_allocUnsafe=null;d.newBuffer=function(e){return typeof e=="number"?d.Buffer?d._Buffer_allocUnsafe(e):new d.Array(e):d.Buffer?d._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};d.Array=typeof Uint8Array<"u"?Uint8Array:Array;d.Long=d.global.dcodeIO&&d.global.dcodeIO.Long||d.global.Long||d.inquire("long");d.key2Re=/^true|false|0|1$/;d.key32Re=/^-?(?:0|[1-9][0-9]*)$/;d.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;d.longToHash=function(e){return e?d.LongBits.from(e).toHash():d.LongBits.zeroHash};d.longFromHash=function(e,n){var t=d.LongBits.fromHash(e);return d.Long?d.Long.fromBits(t.lo,t.hi,n):t.toNumber(!!n)};function ae(o,e,n){for(var t=Object.keys(e),r=0;r<t.length;++r)(o[t[r]]===void 0||!n)&&(o[t[r]]=e[t[r]]);return o}d.merge=ae;d.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)};function he(o){function e(n,t){if(!(this instanceof e))return new e(n,t);Object.defineProperty(this,"message",{get:function(){return n}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:new Error().stack||""}),t&&ae(this,t)}return e.prototype=Object.create(Error.prototype,{constructor:{value:e,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return o},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),e}d.newError=he;d.ProtocolError=he("ProtocolError");d.oneOfGetter=function(e){for(var n={},t=0;t<e.length;++t)n[e[t]]=1;return function(){for(var r=Object.keys(this),i=r.length-1;i>-1;--i)if(n[r[i]]===1&&this[r[i]]!==void 0&&this[r[i]]!==null)return r[i]}};d.oneOfSetter=function(e){return function(n){for(var t=0;t<e.length;++t)e[t]!==n&&delete this[e[t]]}};d.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};d._configure=function(){var o=d.Buffer;if(!o){d._Buffer_from=d._Buffer_allocUnsafe=null;return}d._Buffer_from=o.from!==Uint8Array.from&&o.from||function(n,t){return new o(n,t)},d._Buffer_allocUnsafe=o.allocUnsafe||function(n){return new o(n)}}});var yt=I((mr,de)=>{"use strict";de.exports=g;var x=J(),at,rt=x.LongBits,ce=x.base64,pe=x.utf8;function Y(o,e,n){this.fn=o,this.len=e,this.next=void 0,this.val=n}function ct(){}function nr(o){this.head=o.head,this.tail=o.tail,this.len=o.len,this.next=o.states}function g(){this.len=0,this.head=new Y(ct,0,0),this.tail=this.head,this.states=null}var se=function(){return x.Buffer?function(){return(g.create=function(){return new at})()}:function(){return new g}};g.create=se();g.alloc=function(e){return new x.Array(e)};x.Array!==Array&&(g.alloc=x.pool(g.alloc,x.Array.prototype.subarray));g.prototype._push=function(e,n,t){return this.tail=this.tail.next=new Y(e,n,t),this.len+=n,this};function pt(o,e,n){e[n]=o&255}function ir(o,e,n){for(;o>127;)e[n++]=o&127|128,o>>>=7;e[n]=o}function st(o,e){this.len=o,this.next=void 0,this.val=e}st.prototype=Object.create(Y.prototype);st.prototype.fn=ir;g.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new st((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};g.prototype.int32=function(e){return e<0?this._push(dt,10,rt.fromNumber(e)):this.uint32(e)};g.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function dt(o,e,n){for(;o.hi;)e[n++]=o.lo&127|128,o.lo=(o.lo>>>7|o.hi<<25)>>>0,o.hi>>>=7;for(;o.lo>127;)e[n++]=o.lo&127|128,o.lo=o.lo>>>7;e[n++]=o.lo}g.prototype.uint64=function(e){var n=rt.from(e);return this._push(dt,n.length(),n)};g.prototype.int64=g.prototype.uint64;g.prototype.sint64=function(e){var n=rt.from(e).zzEncode();return this._push(dt,n.length(),n)};g.prototype.bool=function(e){return this._push(pt,1,e?1:0)};function ht(o,e,n){e[n]=o&255,e[n+1]=o>>>8&255,e[n+2]=o>>>16&255,e[n+3]=o>>>24}g.prototype.fixed32=function(e){return this._push(ht,4,e>>>0)};g.prototype.sfixed32=g.prototype.fixed32;g.prototype.fixed64=function(e){var n=rt.from(e);return this._push(ht,4,n.lo)._push(ht,4,n.hi)};g.prototype.sfixed64=g.prototype.fixed64;g.prototype.float=function(e){return this._push(x.float.writeFloatLE,4,e)};g.prototype.double=function(e){return this._push(x.float.writeDoubleLE,8,e)};var or=x.Array.prototype.set?function(e,n,t){n.set(e,t)}:function(e,n,t){for(var r=0;r<e.length;++r)n[t+r]=e[r]};g.prototype.bytes=function(e){var n=e.length>>>0;if(!n)return this._push(pt,1,0);if(x.isString(e)){var t=g.alloc(n=ce.length(e));ce.decode(e,t,0),e=t}return this.uint32(n)._push(or,n,e)};g.prototype.string=function(e){var n=pe.length(e);return n?this.uint32(n)._push(pe.write,n,e):this._push(pt,1,0)};g.prototype.fork=function(){return this.states=new nr(this),this.head=this.tail=new Y(ct,0,0),this.len=0,this};g.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Y(ct,0,0),this.len=0),this};g.prototype.ldelim=function(){var e=this.head,n=this.tail,t=this.len;return this.reset().uint32(t),t&&(this.tail.next=e.next,this.tail=n,this.len+=t),this};g.prototype.finish=function(){for(var e=this.head.next,n=this.constructor.alloc(this.len),t=0;e;)e.fn(e.val,n,t),t+=e.len,e=e.next;return n};g._configure=function(o){at=o,g.create=se(),at._configure()}});var we=I((_r,ge)=>{"use strict";ge.exports=B;var ye=yt();(B.prototype=Object.create(ye.prototype)).constructor=B;var W=J();function B(){ye.call(this)}B._configure=function(){B.alloc=W._Buffer_allocUnsafe,B.writeBytesBuffer=W.Buffer&&W.Buffer.prototype instanceof Uint8Array&&W.Buffer.prototype.set.name==="set"?function(e,n,t){n.set(e,t)}:function(e,n,t){if(e.copy)e.copy(n,t,0,e.length);else for(var r=0;r<e.length;)n[t++]=e[r++]}};B.prototype.bytes=function(e){W.isString(e)&&(e=W._Buffer_from(e,"base64"));var n=e.length>>>0;return this.uint32(n),n&&this._push(B.writeBytesBuffer,n,e),this};function lr(o,e,n){o.length<40?W.utf8.write(o,e,n):e.utf8Write?e.utf8Write(o,n):e.write(o,n)}B.prototype.string=function(e){var n=W.Buffer.byteLength(e);return this.uint32(n),n&&this._push(lr,n,e),this};B._configure()});var bt=I((Or,Ie)=>{"use strict";Ie.exports=O;var P=J(),wt,_e=P.LongBits,ur=P.utf8;function D(o,e){return RangeError("index out of range: "+o.pos+" + "+(e||1)+" > "+o.len)}function O(o){this.buf=o,this.pos=0,this.len=o.length}var be=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new O(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new O(e);throw Error("illegal buffer")},Oe=function(){return P.Buffer?function(n){return(O.create=function(r){return P.Buffer.isBuffer(r)?new wt(r):be(r)})(n)}:be};O.create=Oe();O.prototype._slice=P.Array.prototype.subarray||P.Array.prototype.slice;O.prototype.uint32=(function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,D(this,10);return e}})();O.prototype.int32=function(){return this.uint32()|0};O.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function gt(){var o=new _e(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(o.lo=(o.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return o;if(o.lo=(o.lo|(this.buf[this.pos]&127)<<28)>>>0,o.hi=(o.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return o;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw D(this);if(o.lo=(o.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return o}return o.lo=(o.lo|(this.buf[this.pos++]&127)<<e*7)>>>0,o}if(this.len-this.pos>4){for(;e<5;++e)if(o.hi=(o.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return o}else for(;e<5;++e){if(this.pos>=this.len)throw D(this);if(o.hi=(o.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return o}throw Error("invalid varint encoding")}O.prototype.bool=function(){return this.uint32()!==0};function nt(o,e){return(o[e-4]|o[e-3]<<8|o[e-2]<<16|o[e-1]<<24)>>>0}O.prototype.fixed32=function(){if(this.pos+4>this.len)throw D(this,4);return nt(this.buf,this.pos+=4)};O.prototype.sfixed32=function(){if(this.pos+4>this.len)throw D(this,4);return nt(this.buf,this.pos+=4)|0};function me(){if(this.pos+8>this.len)throw D(this,8);return new _e(nt(this.buf,this.pos+=4),nt(this.buf,this.pos+=4))}O.prototype.float=function(){if(this.pos+4>this.len)throw D(this,4);var e=P.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};O.prototype.double=function(){if(this.pos+8>this.len)throw D(this,4);var e=P.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};O.prototype.bytes=function(){var e=this.uint32(),n=this.pos,t=this.pos+e;if(t>this.len)throw D(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(n,t);if(n===t){var r=P.Buffer;return r?r.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,n,t)};O.prototype.string=function(){var e=this.bytes();return ur.read(e,0,e.length)};O.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw D(this,e);this.pos+=e}else do if(this.pos>=this.len)throw D(this);while(this.buf[this.pos++]&128);return this};O.prototype.skipType=function(o){switch(o){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(o=this.uint32()&7)!==4;)this.skipType(o);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+o+" at offset "+this.pos)}return this};O._configure=function(o){wt=o,O.create=Oe(),wt._configure();var e=P.Long?"toLong":"toNumber";P.merge(O.prototype,{int64:function(){return gt.call(this)[e](!1)},uint64:function(){return gt.call(this)[e](!0)},sint64:function(){return gt.call(this).zzDecode()[e](!1)},fixed64:function(){return me.call(this)[e](!0)},sfixed64:function(){return me.call(this)[e](!1)}})}});var Ce=I((Ir,Se)=>{"use strict";Se.exports=z;var ve=bt();(z.prototype=Object.create(ve.prototype)).constructor=z;var Te=J();function z(o){ve.call(this,o)}z._configure=function(){Te.Buffer&&(z.prototype._slice=Te.Buffer.prototype.slice)};z.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};z._configure()});var Ne=I((Tr,Ee)=>{"use strict";Ee.exports=Q;var mt=J();(Q.prototype=Object.create(mt.EventEmitter.prototype)).constructor=Q;function Q(o,e,n){if(typeof o!="function")throw TypeError("rpcImpl must be a function");mt.EventEmitter.call(this),this.rpcImpl=o,this.requestDelimited=!!e,this.responseDelimited=!!n}Q.prototype.rpcCall=function o(e,n,t,r,i){if(!r)throw TypeError("request must be specified");var l=this;if(!i)return mt.asPromise(o,l,e,n,t,r);if(!l.rpcImpl){setTimeout(function(){i(Error("already ended"))},0);return}try{return l.rpcImpl(e,n[l.requestDelimited?"encodeDelimited":"encode"](r).finish(),function(u,a){if(u)return l.emit("error",u,e),i(u);if(a===null){l.end(!0);return}if(!(a instanceof t))try{a=t[l.responseDelimited?"decodeDelimited":"decode"](a)}catch(s){return l.emit("error",s,e),i(s)}return l.emit("data",a,e),i(null,a)})}catch(f){l.emit("error",f,e),setTimeout(function(){i(f)},0);return}};Q.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var ke=I(xe=>{"use strict";var fr=xe;fr.Service=Ne()});var Re=I((Sr,Le)=>{"use strict";Le.exports={}});var De=I(Pe=>{"use strict";var C=Pe;C.build="minimal";C.Writer=yt();C.BufferWriter=we();C.Reader=bt();C.BufferReader=Ce();C.util=J();C.rpc=ke();C.roots=Re();C.configure=Ae;function Ae(){C.util._configure(),C.Writer._configure(C.BufferWriter),C.Reader._configure(C.BufferReader)}Ae()});var Be=I((Er,Fe)=>{"use strict";Fe.exports=De()});var qe=I((Nr,Me)=>{"use strict";var E=Be(),y=E.Reader,M=E.Writer,h=E.util,p=E.roots.default||(E.roots.default={});p.simpleperf_report_proto=(function(){var o={};return o.Sample=(function(){function e(n){if(this.callchain=[],n)for(var t=Object.keys(n),r=0;r<t.length;++r)n[t[r]]!=null&&(this[t[r]]=n[t[r]])}return e.prototype.time=h.Long?h.Long.fromBits(0,0,!0):0,e.prototype.threadId=0,e.prototype.callchain=h.emptyArray,e.prototype.eventCount=h.Long?h.Long.fromBits(0,0,!0):0,e.prototype.eventTypeId=0,e.prototype.unwindingResult=null,e.create=function(t){return new e(t)},e.encode=function(t,r){if(r||(r=M.create()),t.time!=null&&Object.hasOwnProperty.call(t,"time")&&r.uint32(8).uint64(t.time),t.threadId!=null&&Object.hasOwnProperty.call(t,"threadId")&&r.uint32(16).int32(t.threadId),t.callchain!=null&&t.callchain.length)for(var i=0;i<t.callchain.length;++i)p.simpleperf_report_proto.Sample.CallChainEntry.encode(t.callchain[i],r.uint32(26).fork()).ldelim();return t.eventCount!=null&&Object.hasOwnProperty.call(t,"eventCount")&&r.uint32(32).uint64(t.eventCount),t.eventTypeId!=null&&Object.hasOwnProperty.call(t,"eventTypeId")&&r.uint32(40).uint32(t.eventTypeId),t.unwindingResult!=null&&Object.hasOwnProperty.call(t,"unwindingResult")&&p.simpleperf_report_proto.Sample.UnwindingResult.encode(t.unwindingResult,r.uint32(50).fork()).ldelim(),r},e.encodeDelimited=function(t,r){return this.encode(t,r).ldelim()},e.decode=function(t,r,i){t instanceof y||(t=y.create(t));for(var l=r===void 0?t.len:t.pos+r,f=new p.simpleperf_report_proto.Sample;t.pos<l;){var u=t.uint32();if(u===i)break;switch(u>>>3){case 1:{f.time=t.uint64();break}case 2:{f.threadId=t.int32();break}case 3:{f.callchain&&f.callchain.length||(f.callchain=[]),f.callchain.push(p.simpleperf_report_proto.Sample.CallChainEntry.decode(t,t.uint32()));break}case 4:{f.eventCount=t.uint64();break}case 5:{f.eventTypeId=t.uint32();break}case 6:{f.unwindingResult=p.simpleperf_report_proto.Sample.UnwindingResult.decode(t,t.uint32());break}default:t.skipType(u&7);break}}return f},e.decodeDelimited=function(t){return t instanceof y||(t=new y(t)),this.decode(t,t.uint32())},e.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.time!=null&&t.hasOwnProperty("time")&&!h.isInteger(t.time)&&!(t.time&&h.isInteger(t.time.low)&&h.isInteger(t.time.high)))return"time: integer|Long expected";if(t.threadId!=null&&t.hasOwnProperty("threadId")&&!h.isInteger(t.threadId))return"threadId: integer expected";if(t.callchain!=null&&t.hasOwnProperty("callchain")){if(!Array.isArray(t.callchain))return"callchain: array expected";for(var r=0;r<t.callchain.length;++r){var i=p.simpleperf_report_proto.Sample.CallChainEntry.verify(t.callchain[r]);if(i)return"callchain."+i}}if(t.eventCount!=null&&t.hasOwnProperty("eventCount")&&!h.isInteger(t.eventCount)&&!(t.eventCount&&h.isInteger(t.eventCount.low)&&h.isInteger(t.eventCount.high)))return"eventCount: integer|Long expected";if(t.eventTypeId!=null&&t.hasOwnProperty("eventTypeId")&&!h.isInteger(t.eventTypeId))return"eventTypeId: integer expected";if(t.unwindingResult!=null&&t.hasOwnProperty("unwindingResult")){var i=p.simpleperf_report_proto.Sample.UnwindingResult.verify(t.unwindingResult);if(i)return"unwindingResult."+i}return null},e.fromObject=function(t){if(t instanceof p.simpleperf_report_proto.Sample)return t;var r=new p.simpleperf_report_proto.Sample;if(t.time!=null&&(h.Long?(r.time=h.Long.fromValue(t.time)).unsigned=!0:typeof t.time=="string"?r.time=parseInt(t.time,10):typeof t.time=="number"?r.time=t.time:typeof t.time=="object"&&(r.time=new h.LongBits(t.time.low>>>0,t.time.high>>>0).toNumber(!0))),t.threadId!=null&&(r.threadId=t.threadId|0),t.callchain){if(!Array.isArray(t.callchain))throw TypeError(".simpleperf_report_proto.Sample.callchain: array expected");r.callchain=[];for(var i=0;i<t.callchain.length;++i){if(typeof t.callchain[i]!="object")throw TypeError(".simpleperf_report_proto.Sample.callchain: object expected");r.callchain[i]=p.simpleperf_report_proto.Sample.CallChainEntry.fromObject(t.callchain[i])}}if(t.eventCount!=null&&(h.Long?(r.eventCount=h.Long.fromValue(t.eventCount)).unsigned=!0:typeof t.eventCount=="string"?r.eventCount=parseInt(t.eventCount,10):typeof t.eventCount=="number"?r.eventCount=t.eventCount:typeof t.eventCount=="object"&&(r.eventCount=new h.LongBits(t.eventCount.low>>>0,t.eventCount.high>>>0).toNumber(!0))),t.eventTypeId!=null&&(r.eventTypeId=t.eventTypeId>>>0),t.unwindingResult!=null){if(typeof t.unwindingResult!="object")throw TypeError(".simpleperf_report_proto.Sample.unwindingResult: object expected");r.unwindingResult=p.simpleperf_report_proto.Sample.UnwindingResult.fromObject(t.unwindingResult)}return r},e.toObject=function(t,r){r||(r={});var i={};if((r.arrays||r.defaults)&&(i.callchain=[]),r.defaults){if(h.Long){var l=new h.Long(0,0,!0);i.time=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else i.time=r.longs===String?"0":0;if(i.threadId=0,h.Long){var l=new h.Long(0,0,!0);i.eventCount=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else i.eventCount=r.longs===String?"0":0;i.eventTypeId=0,i.unwindingResult=null}if(t.time!=null&&t.hasOwnProperty("time")&&(typeof t.time=="number"?i.time=r.longs===String?String(t.time):t.time:i.time=r.longs===String?h.Long.prototype.toString.call(t.time):r.longs===Number?new h.LongBits(t.time.low>>>0,t.time.high>>>0).toNumber(!0):t.time),t.threadId!=null&&t.hasOwnProperty("threadId")&&(i.threadId=t.threadId),t.callchain&&t.callchain.length){i.callchain=[];for(var f=0;f<t.callchain.length;++f)i.callchain[f]=p.simpleperf_report_proto.Sample.CallChainEntry.toObject(t.callchain[f],r)}return t.eventCount!=null&&t.hasOwnProperty("eventCount")&&(typeof t.eventCount=="number"?i.eventCount=r.longs===String?String(t.eventCount):t.eventCount:i.eventCount=r.longs===String?h.Long.prototype.toString.call(t.eventCount):r.longs===Number?new h.LongBits(t.eventCount.low>>>0,t.eventCount.high>>>0).toNumber(!0):t.eventCount),t.eventTypeId!=null&&t.hasOwnProperty("eventTypeId")&&(i.eventTypeId=t.eventTypeId),t.unwindingResult!=null&&t.hasOwnProperty("unwindingResult")&&(i.unwindingResult=p.simpleperf_report_proto.Sample.UnwindingResult.toObject(t.unwindingResult,r)),i},e.prototype.toJSON=function(){return this.constructor.toObject(this,E.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/simpleperf_report_proto.Sample"},e.CallChainEntry=(function(){function n(t){if(t)for(var r=Object.keys(t),i=0;i<r.length;++i)t[r[i]]!=null&&(this[r[i]]=t[r[i]])}return n.prototype.vaddrInFile=h.Long?h.Long.fromBits(0,0,!0):0,n.prototype.fileId=0,n.prototype.symbolId=0,n.prototype.executionType=0,n.create=function(r){return new n(r)},n.encode=function(r,i){return i||(i=M.create()),r.vaddrInFile!=null&&Object.hasOwnProperty.call(r,"vaddrInFile")&&i.uint32(8).uint64(r.vaddrInFile),r.fileId!=null&&Object.hasOwnProperty.call(r,"fileId")&&i.uint32(16).uint32(r.fileId),r.symbolId!=null&&Object.hasOwnProperty.call(r,"symbolId")&&i.uint32(24).int32(r.symbolId),r.executionType!=null&&Object.hasOwnProperty.call(r,"executionType")&&i.uint32(32).int32(r.executionType),i},n.encodeDelimited=function(r,i){return this.encode(r,i).ldelim()},n.decode=function(r,i,l){r instanceof y||(r=y.create(r));for(var f=i===void 0?r.len:r.pos+i,u=new p.simpleperf_report_proto.Sample.CallChainEntry;r.pos<f;){var a=r.uint32();if(a===l)break;switch(a>>>3){case 1:{u.vaddrInFile=r.uint64();break}case 2:{u.fileId=r.uint32();break}case 3:{u.symbolId=r.int32();break}case 4:{u.executionType=r.int32();break}default:r.skipType(a&7);break}}return u},n.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},n.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.vaddrInFile!=null&&r.hasOwnProperty("vaddrInFile")&&!h.isInteger(r.vaddrInFile)&&!(r.vaddrInFile&&h.isInteger(r.vaddrInFile.low)&&h.isInteger(r.vaddrInFile.high)))return"vaddrInFile: integer|Long expected";if(r.fileId!=null&&r.hasOwnProperty("fileId")&&!h.isInteger(r.fileId))return"fileId: integer expected";if(r.symbolId!=null&&r.hasOwnProperty("symbolId")&&!h.isInteger(r.symbolId))return"symbolId: integer expected";if(r.executionType!=null&&r.hasOwnProperty("executionType"))switch(r.executionType){default:return"executionType: enum value expected";case 0:case 1:case 2:case 3:break}return null},n.fromObject=function(r){if(r instanceof p.simpleperf_report_proto.Sample.CallChainEntry)return r;var i=new p.simpleperf_report_proto.Sample.CallChainEntry;switch(r.vaddrInFile!=null&&(h.Long?(i.vaddrInFile=h.Long.fromValue(r.vaddrInFile)).unsigned=!0:typeof r.vaddrInFile=="string"?i.vaddrInFile=parseInt(r.vaddrInFile,10):typeof r.vaddrInFile=="number"?i.vaddrInFile=r.vaddrInFile:typeof r.vaddrInFile=="object"&&(i.vaddrInFile=new h.LongBits(r.vaddrInFile.low>>>0,r.vaddrInFile.high>>>0).toNumber(!0))),r.fileId!=null&&(i.fileId=r.fileId>>>0),r.symbolId!=null&&(i.symbolId=r.symbolId|0),r.executionType){default:if(typeof r.executionType=="number"){i.executionType=r.executionType;break}break;case"NATIVE_METHOD":case 0:i.executionType=0;break;case"INTERPRETED_JVM_METHOD":case 1:i.executionType=1;break;case"JIT_JVM_METHOD":case 2:i.executionType=2;break;case"ART_METHOD":case 3:i.executionType=3;break}return i},n.toObject=function(r,i){i||(i={});var l={};if(i.defaults){if(h.Long){var f=new h.Long(0,0,!0);l.vaddrInFile=i.longs===String?f.toString():i.longs===Number?f.toNumber():f}else l.vaddrInFile=i.longs===String?"0":0;l.fileId=0,l.symbolId=0,l.executionType=i.enums===String?"NATIVE_METHOD":0}return r.vaddrInFile!=null&&r.hasOwnProperty("vaddrInFile")&&(typeof r.vaddrInFile=="number"?l.vaddrInFile=i.longs===String?String(r.vaddrInFile):r.vaddrInFile:l.vaddrInFile=i.longs===String?h.Long.prototype.toString.call(r.vaddrInFile):i.longs===Number?new h.LongBits(r.vaddrInFile.low>>>0,r.vaddrInFile.high>>>0).toNumber(!0):r.vaddrInFile),r.fileId!=null&&r.hasOwnProperty("fileId")&&(l.fileId=r.fileId),r.symbolId!=null&&r.hasOwnProperty("symbolId")&&(l.symbolId=r.symbolId),r.executionType!=null&&r.hasOwnProperty("executionType")&&(l.executionType=i.enums===String?p.simpleperf_report_proto.Sample.CallChainEntry.ExecutionType[r.executionType]===void 0?r.executionType:p.simpleperf_report_proto.Sample.CallChainEntry.ExecutionType[r.executionType]:r.executionType),l},n.prototype.toJSON=function(){return this.constructor.toObject(this,E.util.toJSONOptions)},n.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/simpleperf_report_proto.Sample.CallChainEntry"},n.ExecutionType=(function(){var t={},r=Object.create(t);return r[t[0]="NATIVE_METHOD"]=0,r[t[1]="INTERPRETED_JVM_METHOD"]=1,r[t[2]="JIT_JVM_METHOD"]=2,r[t[3]="ART_METHOD"]=3,r})(),n})(),e.UnwindingResult=(function(){function n(t){if(t)for(var r=Object.keys(t),i=0;i<r.length;++i)t[r[i]]!=null&&(this[r[i]]=t[r[i]])}return n.prototype.rawErrorCode=0,n.prototype.errorAddr=h.Long?h.Long.fromBits(0,0,!0):0,n.prototype.errorCode=0,n.create=function(r){return new n(r)},n.encode=function(r,i){return i||(i=M.create()),r.rawErrorCode!=null&&Object.hasOwnProperty.call(r,"rawErrorCode")&&i.uint32(8).uint32(r.rawErrorCode),r.errorAddr!=null&&Object.hasOwnProperty.call(r,"errorAddr")&&i.uint32(16).uint64(r.errorAddr),r.errorCode!=null&&Object.hasOwnProperty.call(r,"errorCode")&&i.uint32(24).int32(r.errorCode),i},n.encodeDelimited=function(r,i){return this.encode(r,i).ldelim()},n.decode=function(r,i,l){r instanceof y||(r=y.create(r));for(var f=i===void 0?r.len:r.pos+i,u=new p.simpleperf_report_proto.Sample.UnwindingResult;r.pos<f;){var a=r.uint32();if(a===l)break;switch(a>>>3){case 1:{u.rawErrorCode=r.uint32();break}case 2:{u.errorAddr=r.uint64();break}case 3:{u.errorCode=r.int32();break}default:r.skipType(a&7);break}}return u},n.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},n.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.rawErrorCode!=null&&r.hasOwnProperty("rawErrorCode")&&!h.isInteger(r.rawErrorCode))return"rawErrorCode: integer expected";if(r.errorAddr!=null&&r.hasOwnProperty("errorAddr")&&!h.isInteger(r.errorAddr)&&!(r.errorAddr&&h.isInteger(r.errorAddr.low)&&h.isInteger(r.errorAddr.high)))return"errorAddr: integer|Long expected";if(r.errorCode!=null&&r.hasOwnProperty("errorCode"))switch(r.errorCode){default:return"errorCode: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break}return null},n.fromObject=function(r){if(r instanceof p.simpleperf_report_proto.Sample.UnwindingResult)return r;var i=new p.simpleperf_report_proto.Sample.UnwindingResult;switch(r.rawErrorCode!=null&&(i.rawErrorCode=r.rawErrorCode>>>0),r.errorAddr!=null&&(h.Long?(i.errorAddr=h.Long.fromValue(r.errorAddr)).unsigned=!0:typeof r.errorAddr=="string"?i.errorAddr=parseInt(r.errorAddr,10):typeof r.errorAddr=="number"?i.errorAddr=r.errorAddr:typeof r.errorAddr=="object"&&(i.errorAddr=new h.LongBits(r.errorAddr.low>>>0,r.errorAddr.high>>>0).toNumber(!0))),r.errorCode){default:if(typeof r.errorCode=="number"){i.errorCode=r.errorCode;break}break;case"ERROR_NONE":case 0:i.errorCode=0;break;case"ERROR_UNKNOWN":case 1:i.errorCode=1;break;case"ERROR_NOT_ENOUGH_STACK":case 2:i.errorCode=2;break;case"ERROR_MEMORY_INVALID":case 3:i.errorCode=3;break;case"ERROR_UNWIND_INFO":case 4:i.errorCode=4;break;case"ERROR_INVALID_MAP":case 5:i.errorCode=5;break;case"ERROR_MAX_FRAME_EXCEEDED":case 6:i.errorCode=6;break;case"ERROR_REPEATED_FRAME":case 7:i.errorCode=7;break;case"ERROR_INVALID_ELF":case 8:i.errorCode=8;break}return i},n.toObject=function(r,i){i||(i={});var l={};if(i.defaults){if(l.rawErrorCode=0,h.Long){var f=new h.Long(0,0,!0);l.errorAddr=i.longs===String?f.toString():i.longs===Number?f.toNumber():f}else l.errorAddr=i.longs===String?"0":0;l.errorCode=i.enums===String?"ERROR_NONE":0}return r.rawErrorCode!=null&&r.hasOwnProperty("rawErrorCode")&&(l.rawErrorCode=r.rawErrorCode),r.errorAddr!=null&&r.hasOwnProperty("errorAddr")&&(typeof r.errorAddr=="number"?l.errorAddr=i.longs===String?String(r.errorAddr):r.errorAddr:l.errorAddr=i.longs===String?h.Long.prototype.toString.call(r.errorAddr):i.longs===Number?new h.LongBits(r.errorAddr.low>>>0,r.errorAddr.high>>>0).toNumber(!0):r.errorAddr),r.errorCode!=null&&r.hasOwnProperty("errorCode")&&(l.errorCode=i.enums===String?p.simpleperf_report_proto.Sample.UnwindingResult.ErrorCode[r.errorCode]===void 0?r.errorCode:p.simpleperf_report_proto.Sample.UnwindingResult.ErrorCode[r.errorCode]:r.errorCode),l},n.prototype.toJSON=function(){return this.constructor.toObject(this,E.util.toJSONOptions)},n.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/simpleperf_report_proto.Sample.UnwindingResult"},n.ErrorCode=(function(){var t={},r=Object.create(t);return r[t[0]="ERROR_NONE"]=0,r[t[1]="ERROR_UNKNOWN"]=1,r[t[2]="ERROR_NOT_ENOUGH_STACK"]=2,r[t[3]="ERROR_MEMORY_INVALID"]=3,r[t[4]="ERROR_UNWIND_INFO"]=4,r[t[5]="ERROR_INVALID_MAP"]=5,r[t[6]="ERROR_MAX_FRAME_EXCEEDED"]=6,r[t[7]="ERROR_REPEATED_FRAME"]=7,r[t[8]="ERROR_INVALID_ELF"]=8,r})(),n})(),e})(),o.LostSituation=(function(){function e(n){if(n)for(var t=Object.keys(n),r=0;r<t.length;++r)n[t[r]]!=null&&(this[t[r]]=n[t[r]])}return e.prototype.sampleCount=h.Long?h.Long.fromBits(0,0,!0):0,e.prototype.lostCount=h.Long?h.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(t,r){return r||(r=M.create()),t.sampleCount!=null&&Object.hasOwnProperty.call(t,"sampleCount")&&r.uint32(8).uint64(t.sampleCount),t.lostCount!=null&&Object.hasOwnProperty.call(t,"lostCount")&&r.uint32(16).uint64(t.lostCount),r},e.encodeDelimited=function(t,r){return this.encode(t,r).ldelim()},e.decode=function(t,r,i){t instanceof y||(t=y.create(t));for(var l=r===void 0?t.len:t.pos+r,f=new p.simpleperf_report_proto.LostSituation;t.pos<l;){var u=t.uint32();if(u===i)break;switch(u>>>3){case 1:{f.sampleCount=t.uint64();break}case 2:{f.lostCount=t.uint64();break}default:t.skipType(u&7);break}}return f},e.decodeDelimited=function(t){return t instanceof y||(t=new y(t)),this.decode(t,t.uint32())},e.verify=function(t){return typeof t!="object"||t===null?"object expected":t.sampleCount!=null&&t.hasOwnProperty("sampleCount")&&!h.isInteger(t.sampleCount)&&!(t.sampleCount&&h.isInteger(t.sampleCount.low)&&h.isInteger(t.sampleCount.high))?"sampleCount: integer|Long expected":t.lostCount!=null&&t.hasOwnProperty("lostCount")&&!h.isInteger(t.lostCount)&&!(t.lostCount&&h.isInteger(t.lostCount.low)&&h.isInteger(t.lostCount.high))?"lostCount: integer|Long expected":null},e.fromObject=function(t){if(t instanceof p.simpleperf_report_proto.LostSituation)return t;var r=new p.simpleperf_report_proto.LostSituation;return t.sampleCount!=null&&(h.Long?(r.sampleCount=h.Long.fromValue(t.sampleCount)).unsigned=!0:typeof t.sampleCount=="string"?r.sampleCount=parseInt(t.sampleCount,10):typeof t.sampleCount=="number"?r.sampleCount=t.sampleCount:typeof t.sampleCount=="object"&&(r.sampleCount=new h.LongBits(t.sampleCount.low>>>0,t.sampleCount.high>>>0).toNumber(!0))),t.lostCount!=null&&(h.Long?(r.lostCount=h.Long.fromValue(t.lostCount)).unsigned=!0:typeof t.lostCount=="string"?r.lostCount=parseInt(t.lostCount,10):typeof t.lostCount=="number"?r.lostCount=t.lostCount:typeof t.lostCount=="object"&&(r.lostCount=new h.LongBits(t.lostCount.low>>>0,t.lostCount.high>>>0).toNumber(!0))),r},e.toObject=function(t,r){r||(r={});var i={};if(r.defaults){if(h.Long){var l=new h.Long(0,0,!0);i.sampleCount=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else i.sampleCount=r.longs===String?"0":0;if(h.Long){var l=new h.Long(0,0,!0);i.lostCount=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else i.lostCount=r.longs===String?"0":0}return t.sampleCount!=null&&t.hasOwnProperty("sampleCount")&&(typeof t.sampleCount=="number"?i.sampleCount=r.longs===String?String(t.sampleCount):t.sampleCount:i.sampleCount=r.longs===String?h.Long.prototype.toString.call(t.sampleCount):r.longs===Number?new h.LongBits(t.sampleCount.low>>>0,t.sampleCount.high>>>0).toNumber(!0):t.sampleCount),t.lostCount!=null&&t.hasOwnProperty("lostCount")&&(typeof t.lostCount=="number"?i.lostCount=r.longs===String?String(t.lostCount):t.lostCount:i.lostCount=r.longs===String?h.Long.prototype.toString.call(t.lostCount):r.longs===Number?new h.LongBits(t.lostCount.low>>>0,t.lostCount.high>>>0).toNumber(!0):t.lostCount),i},e.prototype.toJSON=function(){return this.constructor.toObject(this,E.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/simpleperf_report_proto.LostSituation"},e})(),o.File=(function(){function e(n){if(this.symbol=[],this.mangledSymbol=[],n)for(var t=Object.keys(n),r=0;r<t.length;++r)n[t[r]]!=null&&(this[t[r]]=n[t[r]])}return e.prototype.id=0,e.prototype.path="",e.prototype.symbol=h.emptyArray,e.prototype.mangledSymbol=h.emptyArray,e.create=function(t){return new e(t)},e.encode=function(t,r){if(r||(r=M.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&r.uint32(8).uint32(t.id),t.path!=null&&Object.hasOwnProperty.call(t,"path")&&r.uint32(18).string(t.path),t.symbol!=null&&t.symbol.length)for(var i=0;i<t.symbol.length;++i)r.uint32(26).string(t.symbol[i]);if(t.mangledSymbol!=null&&t.mangledSymbol.length)for(var i=0;i<t.mangledSymbol.length;++i)r.uint32(34).string(t.mangledSymbol[i]);return r},e.encodeDelimited=function(t,r){return this.encode(t,r).ldelim()},e.decode=function(t,r,i){t instanceof y||(t=y.create(t));for(var l=r===void 0?t.len:t.pos+r,f=new p.simpleperf_report_proto.File;t.pos<l;){var u=t.uint32();if(u===i)break;switch(u>>>3){case 1:{f.id=t.uint32();break}case 2:{f.path=t.string();break}case 3:{f.symbol&&f.symbol.length||(f.symbol=[]),f.symbol.push(t.string());break}case 4:{f.mangledSymbol&&f.mangledSymbol.length||(f.mangledSymbol=[]),f.mangledSymbol.push(t.string());break}default:t.skipType(u&7);break}}return f},e.decodeDelimited=function(t){return t instanceof y||(t=new y(t)),this.decode(t,t.uint32())},e.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.id!=null&&t.hasOwnProperty("id")&&!h.isInteger(t.id))return"id: integer expected";if(t.path!=null&&t.hasOwnProperty("path")&&!h.isString(t.path))return"path: string expected";if(t.symbol!=null&&t.hasOwnProperty("symbol")){if(!Array.isArray(t.symbol))return"symbol: array expected";for(var r=0;r<t.symbol.length;++r)if(!h.isString(t.symbol[r]))return"symbol: string[] expected"}if(t.mangledSymbol!=null&&t.hasOwnProperty("mangledSymbol")){if(!Array.isArray(t.mangledSymbol))return"mangledSymbol: array expected";for(var r=0;r<t.mangledSymbol.length;++r)if(!h.isString(t.mangledSymbol[r]))return"mangledSymbol: string[] expected"}return null},e.fromObject=function(t){if(t instanceof p.simpleperf_report_proto.File)return t;var r=new p.simpleperf_report_proto.File;if(t.id!=null&&(r.id=t.id>>>0),t.path!=null&&(r.path=String(t.path)),t.symbol){if(!Array.isArray(t.symbol))throw TypeError(".simpleperf_report_proto.File.symbol: array expected");r.symbol=[];for(var i=0;i<t.symbol.length;++i)r.symbol[i]=String(t.symbol[i])}if(t.mangledSymbol){if(!Array.isArray(t.mangledSymbol))throw TypeError(".simpleperf_report_proto.File.mangledSymbol: array expected");r.mangledSymbol=[];for(var i=0;i<t.mangledSymbol.length;++i)r.mangledSymbol[i]=String(t.mangledSymbol[i])}return r},e.toObject=function(t,r){r||(r={});var i={};if((r.arrays||r.defaults)&&(i.symbol=[],i.mangledSymbol=[]),r.defaults&&(i.id=0,i.path=""),t.id!=null&&t.hasOwnProperty("id")&&(i.id=t.id),t.path!=null&&t.hasOwnProperty("path")&&(i.path=t.path),t.symbol&&t.symbol.length){i.symbol=[];for(var l=0;l<t.symbol.length;++l)i.symbol[l]=t.symbol[l]}if(t.mangledSymbol&&t.mangledSymbol.length){i.mangledSymbol=[];for(var l=0;l<t.mangledSymbol.length;++l)i.mangledSymbol[l]=t.mangledSymbol[l]}return i},e.prototype.toJSON=function(){return this.constructor.toObject(this,E.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/simpleperf_report_proto.File"},e})(),o.Thread=(function(){function e(n){if(n)for(var t=Object.keys(n),r=0;r<t.length;++r)n[t[r]]!=null&&(this[t[r]]=n[t[r]])}return e.prototype.threadId=0,e.prototype.processId=0,e.prototype.threadName="",e.create=function(t){return new e(t)},e.encode=function(t,r){return r||(r=M.create()),t.threadId!=null&&Object.hasOwnProperty.call(t,"threadId")&&r.uint32(8).uint32(t.threadId),t.processId!=null&&Object.hasOwnProperty.call(t,"processId")&&r.uint32(16).uint32(t.processId),t.threadName!=null&&Object.hasOwnProperty.call(t,"threadName")&&r.uint32(26).string(t.threadName),r},e.encodeDelimited=function(t,r){return this.encode(t,r).ldelim()},e.decode=function(t,r,i){t instanceof y||(t=y.create(t));for(var l=r===void 0?t.len:t.pos+r,f=new p.simpleperf_report_proto.Thread;t.pos<l;){var u=t.uint32();if(u===i)break;switch(u>>>3){case 1:{f.threadId=t.uint32();break}case 2:{f.processId=t.uint32();break}case 3:{f.threadName=t.string();break}default:t.skipType(u&7);break}}return f},e.decodeDelimited=function(t){return t instanceof y||(t=new y(t)),this.decode(t,t.uint32())},e.verify=function(t){return typeof t!="object"||t===null?"object expected":t.threadId!=null&&t.hasOwnProperty("threadId")&&!h.isInteger(t.threadId)?"threadId: integer expected":t.processId!=null&&t.hasOwnProperty("processId")&&!h.isInteger(t.processId)?"processId: integer expected":t.threadName!=null&&t.hasOwnProperty("threadName")&&!h.isString(t.threadName)?"threadName: string expected":null},e.fromObject=function(t){if(t instanceof p.simpleperf_report_proto.Thread)return t;var r=new p.simpleperf_report_proto.Thread;return t.threadId!=null&&(r.threadId=t.threadId>>>0),t.processId!=null&&(r.processId=t.processId>>>0),t.threadName!=null&&(r.threadName=String(t.threadName)),r},e.toObject=function(t,r){r||(r={});var i={};return r.defaults&&(i.threadId=0,i.processId=0,i.threadName=""),t.threadId!=null&&t.hasOwnProperty("threadId")&&(i.threadId=t.threadId),t.processId!=null&&t.hasOwnProperty("processId")&&(i.processId=t.processId),t.threadName!=null&&t.hasOwnProperty("threadName")&&(i.threadName=t.threadName),i},e.prototype.toJSON=function(){return this.constructor.toObject(this,E.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/simpleperf_report_proto.Thread"},e})(),o.MetaInfo=(function(){function e(n){if(this.eventType=[],n)for(var t=Object.keys(n),r=0;r<t.length;++r)n[t[r]]!=null&&(this[t[r]]=n[t[r]])}return e.prototype.eventType=h.emptyArray,e.prototype.appPackageName="",e.prototype.appType="",e.prototype.androidSdkVersion="",e.prototype.androidBuildType="",e.prototype.traceOffcpu=!1,e.create=function(t){return new e(t)},e.encode=function(t,r){if(r||(r=M.create()),t.eventType!=null&&t.eventType.length)for(var i=0;i<t.eventType.length;++i)r.uint32(10).string(t.eventType[i]);return t.appPackageName!=null&&Object.hasOwnProperty.call(t,"appPackageName")&&r.uint32(18).string(t.appPackageName),t.appType!=null&&Object.hasOwnProperty.call(t,"appType")&&r.uint32(26).string(t.appType),t.androidSdkVersion!=null&&Object.hasOwnProperty.call(t,"androidSdkVersion")&&r.uint32(34).string(t.androidSdkVersion),t.androidBuildType!=null&&Object.hasOwnProperty.call(t,"androidBuildType")&&r.uint32(42).string(t.androidBuildType),t.traceOffcpu!=null&&Object.hasOwnProperty.call(t,"traceOffcpu")&&r.uint32(48).bool(t.traceOffcpu),r},e.encodeDelimited=function(t,r){return this.encode(t,r).ldelim()},e.decode=function(t,r,i){t instanceof y||(t=y.create(t));for(var l=r===void 0?t.len:t.pos+r,f=new p.simpleperf_report_proto.MetaInfo;t.pos<l;){var u=t.uint32();if(u===i)break;switch(u>>>3){case 1:{f.eventType&&f.eventType.length||(f.eventType=[]),f.eventType.push(t.string());break}case 2:{f.appPackageName=t.string();break}case 3:{f.appType=t.string();break}case 4:{f.androidSdkVersion=t.string();break}case 5:{f.androidBuildType=t.string();break}case 6:{f.traceOffcpu=t.bool();break}default:t.skipType(u&7);break}}return f},e.decodeDelimited=function(t){return t instanceof y||(t=new y(t)),this.decode(t,t.uint32())},e.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.eventType!=null&&t.hasOwnProperty("eventType")){if(!Array.isArray(t.eventType))return"eventType: array expected";for(var r=0;r<t.eventType.length;++r)if(!h.isString(t.eventType[r]))return"eventType: string[] expected"}return t.appPackageName!=null&&t.hasOwnProperty("appPackageName")&&!h.isString(t.appPackageName)?"appPackageName: string expected":t.appType!=null&&t.hasOwnProperty("appType")&&!h.isString(t.appType)?"appType: string expected":t.androidSdkVersion!=null&&t.hasOwnProperty("androidSdkVersion")&&!h.isString(t.androidSdkVersion)?"androidSdkVersion: string expected":t.androidBuildType!=null&&t.hasOwnProperty("androidBuildType")&&!h.isString(t.androidBuildType)?"androidBuildType: string expected":t.traceOffcpu!=null&&t.hasOwnProperty("traceOffcpu")&&typeof t.traceOffcpu!="boolean"?"traceOffcpu: boolean expected":null},e.fromObject=function(t){if(t instanceof p.simpleperf_report_proto.MetaInfo)return t;var r=new p.simpleperf_report_proto.MetaInfo;if(t.eventType){if(!Array.isArray(t.eventType))throw TypeError(".simpleperf_report_proto.MetaInfo.eventType: array expected");r.eventType=[];for(var i=0;i<t.eventType.length;++i)r.eventType[i]=String(t.eventType[i])}return t.appPackageName!=null&&(r.appPackageName=String(t.appPackageName)),t.appType!=null&&(r.appType=String(t.appType)),t.androidSdkVersion!=null&&(r.androidSdkVersion=String(t.androidSdkVersion)),t.androidBuildType!=null&&(r.androidBuildType=String(t.androidBuildType)),t.traceOffcpu!=null&&(r.traceOffcpu=!!t.traceOffcpu),r},e.toObject=function(t,r){r||(r={});var i={};if((r.arrays||r.defaults)&&(i.eventType=[]),r.defaults&&(i.appPackageName="",i.appType="",i.androidSdkVersion="",i.androidBuildType="",i.traceOffcpu=!1),t.eventType&&t.eventType.length){i.eventType=[];for(var l=0;l<t.eventType.length;++l)i.eventType[l]=t.eventType[l]}return t.appPackageName!=null&&t.hasOwnProperty("appPackageName")&&(i.appPackageName=t.appPackageName),t.appType!=null&&t.hasOwnProperty("appType")&&(i.appType=t.appType),t.androidSdkVersion!=null&&t.hasOwnProperty("androidSdkVersion")&&(i.androidSdkVersion=t.androidSdkVersion),t.androidBuildType!=null&&t.hasOwnProperty("androidBuildType")&&(i.androidBuildType=t.androidBuildType),t.traceOffcpu!=null&&t.hasOwnProperty("traceOffcpu")&&(i.traceOffcpu=t.traceOffcpu),i},e.prototype.toJSON=function(){return this.constructor.toObject(this,E.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/simpleperf_report_proto.MetaInfo"},e})(),o.ContextSwitch=(function(){function e(n){if(n)for(var t=Object.keys(n),r=0;r<t.length;++r)n[t[r]]!=null&&(this[t[r]]=n[t[r]])}return e.prototype.switchOn=!1,e.prototype.time=h.Long?h.Long.fromBits(0,0,!0):0,e.prototype.threadId=0,e.create=function(t){return new e(t)},e.encode=function(t,r){return r||(r=M.create()),t.switchOn!=null&&Object.hasOwnProperty.call(t,"switchOn")&&r.uint32(8).bool(t.switchOn),t.time!=null&&Object.hasOwnProperty.call(t,"time")&&r.uint32(16).uint64(t.time),t.threadId!=null&&Object.hasOwnProperty.call(t,"threadId")&&r.uint32(24).uint32(t.threadId),r},e.encodeDelimited=function(t,r){return this.encode(t,r).ldelim()},e.decode=function(t,r,i){t instanceof y||(t=y.create(t));for(var l=r===void 0?t.len:t.pos+r,f=new p.simpleperf_report_proto.ContextSwitch;t.pos<l;){var u=t.uint32();if(u===i)break;switch(u>>>3){case 1:{f.switchOn=t.bool();break}case 2:{f.time=t.uint64();break}case 3:{f.threadId=t.uint32();break}default:t.skipType(u&7);break}}return f},e.decodeDelimited=function(t){return t instanceof y||(t=new y(t)),this.decode(t,t.uint32())},e.verify=function(t){return typeof t!="object"||t===null?"object expected":t.switchOn!=null&&t.hasOwnProperty("switchOn")&&typeof t.switchOn!="boolean"?"switchOn: boolean expected":t.time!=null&&t.hasOwnProperty("time")&&!h.isInteger(t.time)&&!(t.time&&h.isInteger(t.time.low)&&h.isInteger(t.time.high))?"time: integer|Long expected":t.threadId!=null&&t.hasOwnProperty("threadId")&&!h.isInteger(t.threadId)?"threadId: integer expected":null},e.fromObject=function(t){if(t instanceof p.simpleperf_report_proto.ContextSwitch)return t;var r=new p.simpleperf_report_proto.ContextSwitch;return t.switchOn!=null&&(r.switchOn=!!t.switchOn),t.time!=null&&(h.Long?(r.time=h.Long.fromValue(t.time)).unsigned=!0:typeof t.time=="string"?r.time=parseInt(t.time,10):typeof t.time=="number"?r.time=t.time:typeof t.time=="object"&&(r.time=new h.LongBits(t.time.low>>>0,t.time.high>>>0).toNumber(!0))),t.threadId!=null&&(r.threadId=t.threadId>>>0),r},e.toObject=function(t,r){r||(r={});var i={};if(r.defaults){if(i.switchOn=!1,h.Long){var l=new h.Long(0,0,!0);i.time=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else i.time=r.longs===String?"0":0;i.threadId=0}return t.switchOn!=null&&t.hasOwnProperty("switchOn")&&(i.switchOn=t.switchOn),t.time!=null&&t.hasOwnProperty("time")&&(typeof t.time=="number"?i.time=r.longs===String?String(t.time):t.time:i.time=r.longs===String?h.Long.prototype.toString.call(t.time):r.longs===Number?new h.LongBits(t.time.low>>>0,t.time.high>>>0).toNumber(!0):t.time),t.threadId!=null&&t.hasOwnProperty("threadId")&&(i.threadId=t.threadId),i},e.prototype.toJSON=function(){return this.constructor.toObject(this,E.util.toJSONOptions)},e.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/simpleperf_report_proto.ContextSwitch"},e})(),o.Record=(function(){function e(t){if(t)for(var r=Object.keys(t),i=0;i<r.length;++i)t[r[i]]!=null&&(this[r[i]]=t[r[i]])}e.prototype.sample=null,e.prototype.lost=null,e.prototype.file=null,e.prototype.thread=null,e.prototype.metaInfo=null,e.prototype.contextSwitch=null;var n;return Object.defineProperty(e.prototype,"recordData",{get:h.oneOfGetter(n=["sample","lost","file","thread","metaInfo","contextSwitch"]),set:h.oneOfSetter(n)}),e.create=function(r){return new e(r)},e.encode=function(r,i){return i||(i=M.create()),r.sample!=null&&Object.hasOwnProperty.call(r,"sample")&&p.simpleperf_report_proto.Sample.encode(r.sample,i.uint32(10).fork()).ldelim(),r.lost!=null&&Object.hasOwnProperty.call(r,"lost")&&p.simpleperf_report_proto.LostSituation.encode(r.lost,i.uint32(18).fork()).ldelim(),r.file!=null&&Object.hasOwnProperty.call(r,"file")&&p.simpleperf_report_proto.File.encode(r.file,i.uint32(26).fork()).ldelim(),r.thread!=null&&Object.hasOwnProperty.call(r,"thread")&&p.simpleperf_report_proto.Thread.encode(r.thread,i.uint32(34).fork()).ldelim(),r.metaInfo!=null&&Object.hasOwnProperty.call(r,"metaInfo")&&p.simpleperf_report_proto.MetaInfo.encode(r.metaInfo,i.uint32(42).fork()).ldelim(),r.contextSwitch!=null&&Object.hasOwnProperty.call(r,"contextSwitch")&&p.simpleperf_report_proto.ContextSwitch.encode(r.contextSwitch,i.uint32(50).fork()).ldelim(),i},e.encodeDelimited=function(r,i){return this.encode(r,i).ldelim()},e.decode=function(r,i,l){r instanceof y||(r=y.create(r));for(var f=i===void 0?r.len:r.pos+i,u=new p.simpleperf_report_proto.Record;r.pos<f;){var a=r.uint32();if(a===l)break;switch(a>>>3){case 1:{u.sample=p.simpleperf_report_proto.Sample.decode(r,r.uint32());break}case 2:{u.lost=p.simpleperf_report_proto.LostSituation.decode(r,r.uint32());break}case 3:{u.file=p.simpleperf_report_proto.File.decode(r,r.uint32());break}case 4:{u.thread=p.simpleperf_report_proto.Thread.decode(r,r.uint32());break}case 5:{u.metaInfo=p.simpleperf_report_proto.MetaInfo.decode(r,r.uint32());break}case 6:{u.contextSwitch=p.simpleperf_report_proto.ContextSwitch.decode(r,r.uint32());break}default:r.skipType(a&7);break}}return u},e.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},e.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var i={};if(r.sample!=null&&r.hasOwnProperty("sample")){i.recordData=1;{var l=p.simpleperf_report_proto.Sample.verify(r.sample);if(l)return"sample."+l}}if(r.lost!=null&&r.hasOwnProperty("lost")){if(i.recordData===1)return"recordData: multiple values";i.recordData=1;{var l=p.simpleperf_report_proto.LostSituation.verify(r.lost);if(l)return"lost."+l}}if(r.file!=null&&r.hasOwnProperty("file")){if(i.recordData===1)return"recordData: multiple values";i.recordData=1;{var l=p.simpleperf_report_proto.File.verify(r.file);if(l)return"file."+l}}if(r.thread!=null&&r.hasOwnProperty("thread")){if(i.recordData===1)return"recordData: multiple values";i.recordData=1;{var l=p.simpleperf_report_proto.Thread.verify(r.thread);if(l)return"thread."+l}}if(r.metaInfo!=null&&r.hasOwnProperty("metaInfo")){if(i.recordData===1)return"recordData: multiple values";i.recordData=1;{var l=p.simpleperf_report_proto.MetaInfo.verify(r.metaInfo);if(l)return"metaInfo."+l}}if(r.contextSwitch!=null&&r.hasOwnProperty("contextSwitch")){if(i.recordData===1)return"recordData: multiple values";i.recordData=1;{var l=p.simpleperf_report_proto.ContextSwitch.verify(r.contextSwitch);if(l)return"contextSwitch."+l}}return null},e.fromObject=function(r){if(r instanceof p.simpleperf_report_proto.Record)return r;var i=new p.simpleperf_report_proto.Record;if(r.sample!=null){if(typeof r.sample!="object")throw TypeError(".simpleperf_report_proto.Record.sample: object expected");i.sample=p.simpleperf_report_proto.Sample.fromObject(r.sample)}if(r.lost!=null){if(typeof r.lost!="object")throw TypeError(".simpleperf_report_proto.Record.lost: object expected");i.lost=p.simpleperf_report_proto.LostSituation.fromObject(r.lost)}if(r.file!=null){if(typeof r.file!="object")throw TypeError(".simpleperf_report_proto.Record.file: object expected");i.file=p.simpleperf_report_proto.File.fromObject(r.file)}if(r.thread!=null){if(typeof r.thread!="object")throw TypeError(".simpleperf_report_proto.Record.thread: object expected");i.thread=p.simpleperf_report_proto.Thread.fromObject(r.thread)}if(r.metaInfo!=null){if(typeof r.metaInfo!="object")throw TypeError(".simpleperf_report_proto.Record.metaInfo: object expected");i.metaInfo=p.simpleperf_report_proto.MetaInfo.fromObject(r.metaInfo)}if(r.contextSwitch!=null){if(typeof r.contextSwitch!="object")throw TypeError(".simpleperf_report_proto.Record.contextSwitch: object expected");i.contextSwitch=p.simpleperf_report_proto.ContextSwitch.fromObject(r.contextSwitch)}return i},e.toObject=function(r,i){i||(i={});var l={};return r.sample!=null&&r.hasOwnProperty("sample")&&(l.sample=p.simpleperf_report_proto.Sample.toObject(r.sample,i),i.oneofs&&(l.recordData="sample")),r.lost!=null&&r.hasOwnProperty("lost")&&(l.lost=p.simpleperf_report_proto.LostSituation.toObject(r.lost,i),i.oneofs&&(l.recordData="lost")),r.file!=null&&r.hasOwnProperty("file")&&(l.file=p.simpleperf_report_proto.File.toObject(r.file,i),i.oneofs&&(l.recordData="file")),r.thread!=null&&r.hasOwnProperty("thread")&&(l.thread=p.simpleperf_report_proto.Thread.toObject(r.thread,i),i.oneofs&&(l.recordData="thread")),r.metaInfo!=null&&r.hasOwnProperty("metaInfo")&&(l.metaInfo=p.simpleperf_report_proto.MetaInfo.toObject(r.metaInfo,i),i.oneofs&&(l.recordData="metaInfo")),r.contextSwitch!=null&&r.hasOwnProperty("contextSwitch")&&(l.contextSwitch=p.simpleperf_report_proto.ContextSwitch.toObject(r.contextSwitch,i),i.oneofs&&(l.recordData="contextSwitch")),l},e.prototype.toJSON=function(){return this.constructor.toObject(this,E.util.toJSONOptions)},e.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/simpleperf_report_proto.Record"},e})(),o})();Me.exports=p});var Ye=Qe(qe());var k=null;try{k=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function m(o,e,n){this.low=o|0,this.high=e|0,this.unsigned=!!n}m.prototype.__isLong__;Object.defineProperty(m.prototype,"__isLong__",{value:!0});function v(o){return(o&&o.__isLong__)===!0}function Ue(o){var e=Math.clz32(o&-o);return o?31-e:e}m.isLong=v;var Ve={},Je={};function j(o,e){var n,t,r;return e?(o>>>=0,(r=0<=o&&o<256)&&(t=Je[o],t)?t:(n=w(o,0,!0),r&&(Je[o]=n),n)):(o|=0,(r=-128<=o&&o<128)&&(t=Ve[o],t)?t:(n=w(o,o<0?-1:0,!1),r&&(Ve[o]=n),n))}m.fromInt=j;function L(o,e){if(isNaN(o))return e?q:F;if(e){if(o<0)return q;if(o>=je)return Ke}else{if(o<=-He)return N;if(o+1>=He)return $e}return o<0?L(-o,e).neg():w(o%G|0,o/G|0,e)}m.fromNumber=L;function w(o,e,n){return new m(o,e,n)}m.fromBits=w;var it=Math.pow;function Ot(o,e,n){if(o.length===0)throw Error("empty string");if(typeof e=="number"?(n=e,e=!1):e=!!e,o==="NaN"||o==="Infinity"||o==="+Infinity"||o==="-Infinity")return e?q:F;if(n=n||10,n<2||36<n)throw RangeError("radix");var t;if((t=o.indexOf("-"))>0)throw Error("interior hyphen");if(t===0)return Ot(o.substring(1),e,n).neg();for(var r=L(it(n,8)),i=F,l=0;l<o.length;l+=8){var f=Math.min(8,o.length-l),u=parseInt(o.substring(l,l+f),n);if(f<8){var a=L(it(n,f));i=i.mul(a).add(L(u))}else i=i.mul(r),i=i.add(L(u))}return i.unsigned=e,i}m.fromString=Ot;function R(o,e){return typeof o=="number"?L(o,e):typeof o=="string"?Ot(o,e):w(o.low,o.high,typeof e=="boolean"?e:o.unsigned)}m.fromValue=R;var We=65536,ar=1<<24,G=We*We,je=G*G,He=je/2,ze=j(ar),F=j(0);m.ZERO=F;var q=j(0,!0);m.UZERO=q;var K=j(1);m.ONE=K;var Ze=j(1,!0);m.UONE=Ze;var _t=j(-1);m.NEG_ONE=_t;var $e=w(-1,2147483647,!1);m.MAX_VALUE=$e;var Ke=w(-1,-1,!0);m.MAX_UNSIGNED_VALUE=Ke;var N=w(0,-2147483648,!1);m.MIN_VALUE=N;var c=m.prototype;c.toInt=function(){return this.unsigned?this.low>>>0:this.low};c.toNumber=function(){return this.unsigned?(this.high>>>0)*G+(this.low>>>0):this.high*G+(this.low>>>0)};c.toString=function(e){if(e=e||10,e<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(N)){var n=L(e),t=this.div(n),r=t.mul(n).sub(this);return t.toString(e)+r.toInt().toString(e)}else return"-"+this.neg().toString(e);for(var i=L(it(e,6),this.unsigned),l=this,f="";;){var u=l.div(i),a=l.sub(u.mul(i)).toInt()>>>0,s=a.toString(e);if(l=u,l.isZero())return s+f;for(;s.length<6;)s="0"+s;f=""+s+f}};c.getHighBits=function(){return this.high};c.getHighBitsUnsigned=function(){return this.high>>>0};c.getLowBits=function(){return this.low};c.getLowBitsUnsigned=function(){return this.low>>>0};c.getNumBitsAbs=function(){if(this.isNegative())return this.eq(N)?64:this.neg().getNumBitsAbs();for(var e=this.high!=0?this.high:this.low,n=31;n>0&&(e&1<<n)==0;n--);return this.high!=0?n+33:n+1};c.isSafeInteger=function(){var e=this.high>>21;return e?this.unsigned?!1:e===-1&&!(this.low===0&&this.high===-2097152):!0};c.isZero=function(){return this.high===0&&this.low===0};c.eqz=c.isZero;c.isNegative=function(){return!this.unsigned&&this.high<0};c.isPositive=function(){return this.unsigned||this.high>=0};c.isOdd=function(){return(this.low&1)===1};c.isEven=function(){return(this.low&1)===0};c.equals=function(e){return v(e)||(e=R(e)),this.unsigned!==e.unsigned&&this.high>>>31===1&&e.high>>>31===1?!1:this.high===e.high&&this.low===e.low};c.eq=c.equals;c.notEquals=function(e){return!this.eq(e)};c.neq=c.notEquals;c.ne=c.notEquals;c.lessThan=function(e){return this.comp(e)<0};c.lt=c.lessThan;c.lessThanOrEqual=function(e){return this.comp(e)<=0};c.lte=c.lessThanOrEqual;c.le=c.lessThanOrEqual;c.greaterThan=function(e){return this.comp(e)>0};c.gt=c.greaterThan;c.greaterThanOrEqual=function(e){return this.comp(e)>=0};c.gte=c.greaterThanOrEqual;c.ge=c.greaterThanOrEqual;c.compare=function(e){if(v(e)||(e=R(e)),this.eq(e))return 0;var n=this.isNegative(),t=e.isNegative();return n&&!t?-1:!n&&t?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1};c.comp=c.compare;c.negate=function(){return!this.unsigned&&this.eq(N)?N:this.not().add(K)};c.neg=c.negate;c.add=function(e){v(e)||(e=R(e));var n=this.high>>>16,t=this.high&65535,r=this.low>>>16,i=this.low&65535,l=e.high>>>16,f=e.high&65535,u=e.low>>>16,a=e.low&65535,s=0,b=0,_=0,S=0;return S+=i+a,_+=S>>>16,S&=65535,_+=r+u,b+=_>>>16,_&=65535,b+=t+f,s+=b>>>16,b&=65535,s+=n+l,s&=65535,w(_<<16|S,s<<16|b,this.unsigned)};c.subtract=function(e){return v(e)||(e=R(e)),this.add(e.neg())};c.sub=c.subtract;c.multiply=function(e){if(this.isZero())return this;if(v(e)||(e=R(e)),k){var n=k.mul(this.low,this.high,e.low,e.high);return w(n,k.get_high(),this.unsigned)}if(e.isZero())return this.unsigned?q:F;if(this.eq(N))return e.isOdd()?N:F;if(e.eq(N))return this.isOdd()?N:F;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(ze)&&e.lt(ze))return L(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,r=this.high&65535,i=this.low>>>16,l=this.low&65535,f=e.high>>>16,u=e.high&65535,a=e.low>>>16,s=e.low&65535,b=0,_=0,S=0,Z=0;return Z+=l*s,S+=Z>>>16,Z&=65535,S+=i*s,_+=S>>>16,S&=65535,S+=l*a,_+=S>>>16,S&=65535,_+=r*s,b+=_>>>16,_&=65535,_+=i*a,b+=_>>>16,_&=65535,_+=l*u,b+=_>>>16,_&=65535,b+=t*s+r*a+i*u+l*f,b&=65535,w(S<<16|Z,b<<16|_,this.unsigned)};c.mul=c.multiply;c.divide=function(e){if(v(e)||(e=R(e)),e.isZero())throw Error("division by zero");if(k){if(!this.unsigned&&this.high===-2147483648&&e.low===-1&&e.high===-1)return this;var n=(this.unsigned?k.div_u:k.div_s)(this.low,this.high,e.low,e.high);return w(n,k.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?q:F;var t,r,i;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return q;if(e.gt(this.shru(1)))return Ze;i=q}else{if(this.eq(N)){if(e.eq(K)||e.eq(_t))return N;if(e.eq(N))return K;var l=this.shr(1);return t=l.div(e).shl(1),t.eq(F)?e.isNegative()?K:_t:(r=this.sub(e.mul(t)),i=t.add(r.div(e)),i)}else if(e.eq(N))return this.unsigned?q:F;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();i=F}for(r=this;r.gte(e);){t=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var f=Math.ceil(Math.log(t)/Math.LN2),u=f<=48?1:it(2,f-48),a=L(t),s=a.mul(e);s.isNegative()||s.gt(r);)t-=u,a=L(t,this.unsigned),s=a.mul(e);a.isZero()&&(a=K),i=i.add(a),r=r.sub(s)}return i};c.div=c.divide;c.modulo=function(e){if(v(e)||(e=R(e)),k){var n=(this.unsigned?k.rem_u:k.rem_s)(this.low,this.high,e.low,e.high);return w(n,k.get_high(),this.unsigned)}return this.sub(this.div(e).mul(e))};c.mod=c.modulo;c.rem=c.modulo;c.not=function(){return w(~this.low,~this.high,this.unsigned)};c.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32};c.clz=c.countLeadingZeros;c.countTrailingZeros=function(){return this.low?Ue(this.low):Ue(this.high)+32};c.ctz=c.countTrailingZeros;c.and=function(e){return v(e)||(e=R(e)),w(this.low&e.low,this.high&e.high,this.unsigned)};c.or=function(e){return v(e)||(e=R(e)),w(this.low|e.low,this.high|e.high,this.unsigned)};c.xor=function(e){return v(e)||(e=R(e)),w(this.low^e.low,this.high^e.high,this.unsigned)};c.shiftLeft=function(e){return v(e)&&(e=e.toInt()),(e&=63)===0?this:e<32?w(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):w(0,this.low<<e-32,this.unsigned)};c.shl=c.shiftLeft;c.shiftRight=function(e){return v(e)&&(e=e.toInt()),(e&=63)===0?this:e<32?w(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):w(this.high>>e-32,this.high>=0?0:-1,this.unsigned)};c.shr=c.shiftRight;c.shiftRightUnsigned=function(e){return v(e)&&(e=e.toInt()),(e&=63)===0?this:e<32?w(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):e===32?w(this.high,0,this.unsigned):w(this.high>>>e-32,0,this.unsigned)};c.shru=c.shiftRightUnsigned;c.shr_u=c.shiftRightUnsigned;c.rotateLeft=function(e){var n;return v(e)&&(e=e.toInt()),(e&=63)===0?this:e===32?w(this.high,this.low,this.unsigned):e<32?(n=32-e,w(this.low<<e|this.high>>>n,this.high<<e|this.low>>>n,this.unsigned)):(e-=32,n=32-e,w(this.high<<e|this.low>>>n,this.low<<e|this.high>>>n,this.unsigned))};c.rotl=c.rotateLeft;c.rotateRight=function(e){var n;return v(e)&&(e=e.toInt()),(e&=63)===0?this:e===32?w(this.high,this.low,this.unsigned):e<32?(n=32-e,w(this.high<<n|this.low>>>e,this.low<<n|this.high>>>e,this.unsigned)):(e-=32,n=32-e,w(this.low<<n|this.high>>>e,this.high<<n|this.low>>>e,this.unsigned))};c.rotr=c.rotateRight;c.toSigned=function(){return this.unsigned?w(this.low,this.high,!1):this};c.toUnsigned=function(){return this.unsigned?this:w(this.low,this.high,!0)};c.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()};c.toBytesLE=function(){var e=this.high,n=this.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,e&255,e>>>8&255,e>>>16&255,e>>>24]};c.toBytesBE=function(){var e=this.high,n=this.low;return[e>>>24,e>>>16&255,e>>>8&255,e&255,n>>>24,n>>>16&255,n>>>8&255,n&255]};m.fromBytes=function(e,n,t){return t?m.fromBytesLE(e,n):m.fromBytesBE(e,n)};m.fromBytesLE=function(e,n){return new m(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)};m.fromBytesBE=function(e,n){return new m(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)};typeof BigInt=="function"&&(m.fromBigInt=function(e,n){var t=Number(BigInt.asIntN(32,e)),r=Number(BigInt.asIntN(32,e>>BigInt(32)));return w(t,r,n)},m.fromValue=function(e,n){return typeof e=="bigint"?m.fromBigInt(e,n):R(e,n)},c.toBigInt=function(){var e=BigInt(this.low>>>0),n=BigInt(this.unsigned?this.high>>>0:this.high);return n<<BigInt(32)|e});var Ge=m;function ot(o){return Ge.isLong(o)?o.toNumber():o}function Xe(o){return ot(o)/1e6}var U=class{static categoryList=[];static Other=this.createCategory("Other","grey");static Native=this.createCategory("Native","magenta");static Java=this.createCategory("Java","green");static System=this.createCategory("System","yellow");static Kernel=this.createCategory("Kernel","orange");static toJson(){return this.categoryList}static createCategory(e,n){let t=this.categoryList.length;return this.categoryList.push({name:e,color:n,subcategories:["Other"]}),t}},It=class{strings;resourceTable=Dt();resourcesMap=new Map;constructor(e){this.strings=e}toJson(){return this.resourceTable}findOrAddResource(e){let n=this.resourcesMap.get(e.id);return n||(this.resourceTable.lib.push(null),this.resourceTable.name.push(this.strings.indexForString(e.path)),this.resourceTable.host.push(null),this.resourceTable.type.push(1),n=this.resourceTable.length++,this.resourcesMap.set(e.id,n)),n}},Tt=class{strings;funcTable=Pt();funcMap=new Map;constructor(e){this.strings=e}toJson(){return this.funcTable}findOrAddFunc(e,n){let t=this.strings.indexForString(e),r=`${t}-${n}`,i=this.funcMap.get(r);return i||(this.funcTable.name.push(t),this.funcTable.isJS.push(!1),this.funcTable.relevantForJS.push(!1),this.funcTable.resource.push(n),this.funcTable.source.push(null),this.funcTable.lineNumber.push(null),this.funcTable.columnNumber.push(null),i=this.funcTable.length++,this.funcMap.set(r,i)),i}},vt=class{strings;frameTable=At();frameMap=new Map;constructor(e){this.strings=e}toJson(){return this.frameTable}findOrAddFrame(e,n){let t=`${e}-${n}`,r=this.frameMap.get(t);return r||(this.frameTable.address.push(-1),this.frameTable.inlineDepth.push(0),this.frameTable.category.push(n),this.frameTable.subcategory.push(0),this.frameTable.func.push(e),this.frameTable.nativeSymbol.push(null),this.frameTable.innerWindowID.push(null),this.frameTable.line.push(null),this.frameTable.column.push(null),r=this.frameTable.length++,this.frameMap.set(t,r)),r}},St=class{strings;stackTable=Rt();stackMap=new Map;constructor(e){this.strings=e}toJson(){return this.stackTable}findOrAddStack(e,n){let t=`${e}-${n??"null"}`,r=this.stackMap.get(t);return r||(this.stackTable.frame.push(e),this.stackTable.prefix.push(n),r=this.stackTable.length++,this.stackMap.set(t,r)),r}},Ct=class{stringArray=[];stringTable=qt.withBackingArray(this.stringArray);stackTable=new St(this.stringTable);frameTable=new vt(this.stringTable);funcTable=new Tt(this.stringTable);resourceTable=new It(this.stringTable);toJson(){return{stackTable:this.stackTable.toJson(),frameTable:this.frameTable.toJson(),funcTable:this.funcTable.toJson(),resourceTable:this.resourceTable.toJson(),nativeSymbols:Ft(),sources:Mt(),stringArray:this.stringArray}}},Et=class{name;isMainThread;tid;pid;strings;sampleTable=Lt();stackTable;frameTable;funcTable;resourceTable;cpuClockEventId=-1;constructor(e,n){this.tid=e.threadId,this.pid=e.processId,this.isMainThread=e.threadId===e.processId,this.name=e.threadName??"",this.strings=n.stringTable,this.stackTable=n.stackTable,this.frameTable=n.frameTable,this.funcTable=n.funcTable,this.resourceTable=n.resourceTable}toJson(){return{processType:"default",processStartupTime:0,processShutdownTime:null,registerTime:0,unregisterTime:null,pausedRanges:[],name:this.name,isMainThread:this.isMainThread,pid:this.pid.toString(),tid:this.tid,samples:this.sampleTable,markers:Bt()}}enableCpuClock(e){this.cpuClockEventId=e,e>=0&&(this.sampleTable.weight=[],this.sampleTable.weightType="tracing-ms")}addSample(e,n){let t=null;for(let r of e.callchain.reverse()){let i=n.get(r.fileId),l=this.resourceTable.findOrAddResource(i),f=r.symbolId>=0?i.symbol[r.symbolId]:`${i.path.split(/[\\/]/).pop()}+0x${r.vaddrInFile.toString(16)}`,u=this.funcTable.findOrAddFunc(f,l),a=i.path??"",s=a.startsWith("/apex/")||a.startsWith("/system/")||a.startsWith("/vendor/"),b=U.Other;if(a==="[kernel.kallsyms]"||a.endsWith(".ko"))b=U.Kernel;else if(a.endsWith(".so"))b=s?U.System:U.Native;else if(a==="[JIT app cache]"||a.endsWith(".vdex")||a.endsWith(".apk")||a.endsWith(".jar")||a.endsWith(".oat")||a.endsWith(".odex")){let S=f.startsWith("java.")||f.startsWith("javax.")||f.startsWith("kotlin.")||f.startsWith("kotlinx.")||f.startsWith("dalvik."),Z=f.startsWith("android.")||f.startsWith("com.android.")||f.startsWith("androidx.")||f.startsWith("libcore.");b=s||Z||S?U.System:U.Java}let _=this.frameTable.findOrAddFrame(u,b);t=this.stackTable.findOrAddStack(_,t)}if(this.sampleTable.stack.push(t),kt(this.sampleTable.time).push(Xe(e.time??0)),this.sampleTable.weight){let r=this.cpuClockEventId>=0&&e.eventTypeId===this.cpuClockEventId?Xe(e.eventCount??0):0;this.sampleTable.weight.push(r)}this.sampleTable.length++}},Nt=class{threads=[];threadMap=new Map;fileMap=new Map;eventTypes=[];cpuClockEventId=-1;appPackageName=null;sampleCount=0;lostCount=0;shared=new Ct;toJson(){return{meta:this.getProfileMeta(),libs:[],shared:this.shared.toJson(),threads:this.threads.map(e=>e.toJson())}}getProfileMeta(){return{interval:0,startTime:0,processType:0,categories:U.toJson(),product:this.appPackageName??"Android Profile",stackwalk:0,version:30,preprocessedProfileVersion:60,symbolicationNotSupported:!0,markerSchema:[],platform:"Android",toolkit:"android",importedFrom:"Simpleperf",usesOnlyOneStackType:!0,sourceCodeIsNotOnSearchfox:!0,extra:[{label:"Profile Information",entries:[{label:"Sample Count",format:"integer",value:this.sampleCount},{label:"Lost Samples",format:"integer",value:this.lostCount},{label:"Sampled events",format:"list",value:this.eventTypes}]}],keepProfileThreadOrder:!0}}setMetaInfo(e){this.eventTypes=e?.eventType??[],this.appPackageName=e?.appPackageName??null,this.cpuClockEventId=(this.eventTypes&&this.eventTypes.indexOf("cpu-clock"))??-1}setLostSituation(e){this.sampleCount=ot(e?.sampleCount??0),this.lostCount=ot(e?.lostCount??0)}addFile(e){this.fileMap.set(e.id,e)}addThread(e){let n=new Et(e,this.shared);this.threads.push(n),this.threadMap.set(e.threadId,n)}finalizeThreads(){this.threads.forEach(e=>{e.enableCpuClock(this.cpuClockEventId??-1)})}addSample(e){let n=this.threadMap.get(e.threadId);if(!n){console.warn(`Thread not found for sample: ${e.threadId}`);return}n.addSample(e,this.fileMap)}},xt=class{buffer;bufferView;bufferOffset=0;constructor(e){this.buffer=e,this.bufferView=new DataView(e.buffer,e.byteOffset,e.byteLength)}readUint16LE(){let e=this.bufferView.getUint16(this.bufferOffset,!0);return this.bufferOffset+=2,e}readUint32LE(){let e=this.bufferView.getUint32(this.bufferOffset,!0);return this.bufferOffset+=4,e}readMagic(){if(!Ut(lt,this.buffer))throw new Error("Invalid simpleperf file");this.bufferOffset+=lt.length}readRecord(e){let n=this.buffer.subarray(this.bufferOffset,this.bufferOffset+e);return this.bufferOffset+=e,Ye.simpleperf_report_proto.Record.decode(n)}process(){this.readMagic(),this.readUint16LE();let e=this.readUint32LE(),n=new Nt,t=[],r=0;for(;e>0;){let i=this.readRecord(e);switch(i.recordData){case"sample":t.push(i.sample);break;case"lost":r=ot(i.lost?.sampleCount??0),n.setLostSituation(i.lost);break;case"file":n.addFile(i.file);break;case"thread":n.addThread(i.thread);break;case"metaInfo":n.setMetaInfo(i.metaInfo);break;case"contextSwitch":break;default:console.warn(`Unknown record type: ${i.recordData}`);break}e=this.readUint32LE()}if(t.length!==r)throw new Error("Samples count doesn't match the number of samples read");return n.finalizeThreads(),t.forEach(i=>n.addSample(i)),n.toJson()}};function Fr(o){return new xt(o).process()}export{xt as SimpleperfReportConverter,Fr as convertSimpleperfTraceProfile};
|
|
2
|
+
/*! Bundled license information:
|
|
3
|
+
|
|
4
|
+
long/index.js:
|
|
5
|
+
(**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2009 The Closure Library Authors
|
|
8
|
+
* Copyright 2020 Daniel Wirtz / The long.js Authors.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*
|
|
22
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
23
|
+
*)
|
|
24
|
+
*/
|
|
25
|
+
//# sourceMappingURL=/simpleperf-UUIE7C7E.js.map
|