Closed
Description
openedon Sep 2, 2021
Is this possible to deploy the perfetto ui in the remote server?
I'm just testing using run-dev-server, which seems to use build.js to create a http server.
I slightly modify startServer function in the perfetto/ui/build.js to run the server to listen 0.0.0.0:30000 for example.
I passed the perfetto protobuf file using window.postMessage to open a new tab.
It seems work(my trace is showing well) but an error occurs like:
To assist with debugging please attach or link to the trace you were viewing.
Viewed on: http://MY_REMOTE_HOST:PORT
ReferenceError: caches is not defined
ReferenceError: caches is not defined
at Object.<anonymous> (http://MY_REMOTE_HOST:PORT/v18.0.0/frontend_bundle.js:10341:28)
at Generator.next (<anonymous>)
at http://MY_REMOTE_HOST:PORT/v18.0.0/frontend_bundle.js:131:75
at new Promise (<anonymous>)
at Object.__awaiter (http://MY_REMOTE_HOST:PORT/v18.0.0/frontend_bundle.js:127:16)
at Object.cacheTrace (http://MY_REMOTE_HOST:PORT/v18.0.0/frontend_bundle.js:10309:18)
at TraceController.<anonymous> (http://MY_REMOTE_HOST:PORT/v18.0.0/frontend_bundle.js:86545:27)
at Generator.next (<anonymous>)
at fulfilled (http://MY_REMOTE_HOST:PORT/v18.0.0/frontend_bundle.js:128:62)
v18.0.0 45571639857aa59be41f77a2d774f6577d03c86c
UA: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
when I use the default setting, localhost:10000, It works well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels