timed icon indicating copy to clipboard operation
timed copied to clipboard

Add documentation show how to use chrome://tracing

Open y2kappa opened this issue 5 years ago • 3 comments

I only heard about this one month ago so I assume most people are unfamiliar. Documentation with gifs are welcome.

y2kappa avatar Oct 19 '20 23:10 y2kappa

Why not generate a plot using https://github.com/milliams/plotlib or something similar?

yonip23 avatar Oct 22 '20 23:10 yonip23

It's a good idea, I think we can add an output parameter of how you want to deliver it.

I'd like to keep chrome://tracing as an option for two reasons:

  1. For myy main use case, I can only print to console, I have no filesystem to save on - it's a docker container / aws lambda function.
  2. Also, chrome://tracing is pretty sweet, has a lot of built in stuff and interactivity. You can click on individual spans and it shows you the total duration, metadata, etc.

By the way, did you check chrome://tracing with this crate to see how it feels? What do you think a plot can do that chrome://tracing can't?

y2kappa avatar Oct 23 '20 18:10 y2kappa

Haven't tried chrome tracing yet, mainly bc I work with firefox... That's also why I don't know if plots have any advantage here. It's just a widely accepted way of viewing your data.

There is Python's Plotly library which is very rich and easy quite easy to work with, maybe it's a good idea to add a python script to this crate, something like ./visualize.py or something.

(Of course, in addition to chrome tracing, which sounds good)

yonip23 avatar Oct 23 '20 19:10 yonip23