-
Notifications
You must be signed in to change notification settings - Fork 6
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
trace file for simple action: LHError.errors.NO_NAVSTART #14
Comments
I observed the same thing. It seems that tracium only works if the trace file includes a navigation start event. For something like Lighthouse this makes sense, but for generic traces that may or may not contain a navigation start, it's unfortunate that it throws an error. For the steps to repro, you can create a trace file without actually reloading or navigating to a page, then parse with Line 98 in 24ac55c
|
@nolanlawson we're aware of this and slowly working on eliminating the dependency on navStart for example GoogleChrome/lighthouse#11034 tracked by GoogleChrome/lighthouse#9519 and GoogleChrome/lighthouse#8984 |
Is there any kind of workaround for this? We have a SPA and we want to use puppeteer to generate traces for different tasks. We'd like to break down each task into a set of distinct steps and generate traces for each step. Then we want to have hundreds or thousands of users performing each task concurrently. Finally, we want to use tracium to aggregate some of the metrics for analysis. But this issue is preventing us from using tracium the way we'd hoped. |
I open the page with puppeteer, start the trace recording and do some action, turn off the record, then tracium.computeMainThreadTasks returns me the error /node_modules/tracium/lib/trace-of-tab.js:98
if (! navigationStart) throw new LHError (LHError.errors.NO_NAVSTART); But I want to record trace and read this trace with tracium, only for certain action, can I do it somehow?
The text was updated successfully, but these errors were encountered: