-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Programmatically load local trace files #76
Comments
interesting! backing up.. what is the situation you have? (eg. you just traced a page with puppeteer and you have traces saved as files on disk. now you want to open a tab showing them) |
Yes exactly. To give you a little bit more context, I am using puppeteer to trace the performance of my web app during certain interactions. Now comes the slightly hacky part, I am loading the trace files with the timeline viewer to extract the recorded frame rate. Besides just extracting the framerate it's also nice to be able to immediately browse the trace for debugging. If there's was a way to automatically add a local trace file, I could get do both things at the same time: extract the frame rate and analyze why it improved or not. |
FYI i fixed the drag n drop back in June: #77 |
Given your attempt to synthesize a drop event (and that DnD is now fixed).... that could probably work. The less-involved solutions of something like |
First of all, thanks for this awesome tool! 👏
I am wondering if it's possible to programmatically load local trace files with https://chromedevtools.github.io/timeline-viewer/
I've been experimenting with puppeteer to automate the drag-and-drop interaction but I can't get a file to load. I noticed that on the initial dragover event, the UI changes from
#dropbox
to the timeline widget. I also figured out how to retrieve the drop target element fromtimeline-viewer/docs/dev_tools.js
Line 154 in f3e7ce0
dragenter
,dragover
,drop
event onwindow.Timeline.TimelinePanel.instance()._dropTarget._element
nothing happens.With puppeteer, I am doing the following:
It appears as if the drop event is registered, but the file is not loaded due to the following error:
Maybe my approach is overkill or simply not feasible. Any idea? Thanks a lot :)
The text was updated successfully, but these errors were encountered: