+perfe...@googlegroups.com for the docs feedbackOn Sun, May 15, 2022, 07:56 Jan Feitsma <jan.f...@gmail.com> wrote:Thanks for all the info and suggestions! I think I can proceed.Btw the deep-linking examples from given documentation site appear to be broken:1. rawgit.org domain expired2. when trying the gist myself, it errors out:Viewed on: https://ui.perfetto.dev SyntaxError: An invalid or illegal string was specified postMessageHandler@https://ui.perfetto.dev/v25.0-d1f7cc575/frontend_bundle.js:111385:22
Best regards, JanOn Friday, May 13, 2022 at 9:24:17 AM UTC+2 esec...@chromium.org wrote:See https://perfetto.dev/docs/visualization/deep-linking-to-perfetto-ui for ways to integrate with the UI.We don't support embedding or generating a standalone html (and don't plan to), but you're welcome to run your own UI server locally if you need a way to run truly offline (as you mention, ui.perfetto.dev uses service workers for offline use).On Thu, May 12, 2022, 20:08 Jan Feitsma <jan.f...@gmail.com> wrote:Hi Stephen,Thanks, I tried Perfetto after your suggestion and managed to get it to work (took a little bit of massaging my generated json).The arrow visualization is pretty much what I was looking for!However, trying to adopt Perfetto in my scripts, I run into a new problem.Previously I was making use of catapult trace2html, then launch browser from commandline with latest html, but I cannot find something equivalent in Perfetto.Documentation says: it works offline but only after first visit...Is it possible to create a standalone PerfettoUI.html based on given trace.json? That would fit perfectly in my workflow.(For offline use and to skip click/load dialog.)If not, then should I submit a feature request or contribute this feature myself, or just start hacking and see how far I get :)?Best regards,Jan--On Mon, May 9, 2022 at 12:40 PM Stephen Nusko <nus...@chromium.org> wrote:Have you tried using ui.perfetto.dev? (docs at perfetto.dev), instant events there are rendered as arrows:Note for completeness chrome://tracing is in maintenance mode and JSON based traces are mostly supported in ui.perfetto.dev, but some support is missing, and proto format is the new standard in chromium.Cheers,StephenOn Sun, May 8, 2022 at 9:49 AM Jan Feitsma <jan.f...@gmail.com> wrote:Hi!I am trying to use the trace viewer to visualize python logging+autologging.Autologging is like tracing, this is the easy part.But logging events (INFO, DEBUG etc) are not so easy, or, I am missing something?If I use instant events ("ph":"i"), then events are rendered only one pixel wide. The problem is: this is basically invisible to the user ...Example picture, I added the arrows to highlight.For completeness, this is the example corresponding log fragment produced by logging/autologging. (I made a tool to convert this into tracing .json.)2022-05-08 10:27:12,727408:TRACE:demo.py,6:__init__:CALL *('some_argument',) **{}
2022-05-08 10:27:12,727512:TRACE:demo.py,9:f:CALL *() **{}
2022-05-08 10:27:12,727564:INFO:demo.py,10:f:hi!
2022-05-08 10:27:12,727655:TRACE:demo.py,9:f:RETURN None
2022-05-08 10:27:12,727710:DEBUG:demo.py,8:__init__:__init__ done
2022-05-08 10:27:12,727738:TRACE:demo.py,6:__init__:RETURN None
2022-05-08 10:27:12,727767:TRACE:demo.py,12:g:CALL *() **{}
2022-05-08 10:27:12,727793:TRACE:demo.py,12:g:RETURN 3
2022-05-08 10:27:12,727838:WARNING:demo.py,21:<module>:doneSo my main question: Is there a way to have these events rendered as circles or triangles, insensitive to zoom level? (Am I correct in assuming that using "instant events" is correct approach?)I would be really happy to have something similar to the automagic alerts, or circles from the top lane of the screenshot from Android demo.Thanks in advance!Best regards,Jan Feitsma--
You received this message because you are subscribed to the Google Groups "tracing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tracing+u...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/tracing/12d26242-c5ac-4f10-bd2f-e596a6f8e4b5n%40chromium.org.
You received this message because you are subscribed to the Google Groups "tracing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tracing+u...@chromium.org.To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/tracing/CAGJ3hEfuMgNuc4nOyhZkoB3xbTaGA0G3iGrfk1kdDkd_QascHg%40mail.gmail.com.
Hi Hector,Link 1 works fine for me!For link 2, I still get errors:* I save the file index.html : wget https://gist.githubusercontent.com/chromy/170c11ce30d9084957d7f3aa065e89f8/raw/576483e3bdabb005cf5fa1825304e2f449920ae3/index.html* error when I open it in Firefox and click to run a trace:To assist with debugging please attach or link to the trace you were viewing. Viewed on: https://ui.perfetto.dev SyntaxError: An invalid or illegal string was specified postMessageHandler@https://ui.perfetto.dev/v25.0-d1f7cc575/frontend_bundle.js:111385:22 v25.0-d1f7cc575 d1f7cc5758b10aa536178aaccc01ea8b90d42b58 UA: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0* similar error, using chrome:To assist with debugging please attach or link to the trace you were viewing. Viewed on: https://ui.perfetto.dev Uncaught SyntaxError: Failed to execute 'postMessage' on 'Window': Invalid target origin 'null' in a call to 'postMessage'. Error: Failed to execute 'postMessage' on 'Window': Invalid target origin 'null' in a call to 'postMessage'. at postMessageHandler (https://ui.perfetto.dev/v25.0-d1f7cc575/frontend_bundle.js:111385:22) v25.0-d1f7cc575 d1f7cc5758b10aa536178aaccc01ea8b90d42b58 UA: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36At this point I am starting to wonder if I am just doing something wrong, perhaps trying to run the little gist html fragment in an unintended way?I hope I am not wasting your time with this.Thanks,Jan
On Monday, May 16, 2022 at 2:26:16 PM UTC+2 Hector Dearman wrote:
Thanks for pointing out the docs issue. Sent aosp/2096656 to fix that. The new links are:I couldn't reproduce the SyntaxError you are seeing. Can I ask what browser you are using? Do you still have the same issue with the links above?Thanks,Hector