question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incomplete timeline information using Tracing domain

See original GitHub issue
Component Version
Operating system Ubuntu 18.04
Node.js 8.11.2
Chrome/Chromium/… 68
chrome-remote-interface 0.26

Is Chrome running in a container? NO

Snippet of code to obtain timeline information

rawEvents = []
Tracing.dataCollected(function(data){
                var events = data.value;
                rawEvents = rawEvents.concat(events);
            });
Page.loadEventFired(function(){Tracing.end()});
Tracing.start(); Page.navigate({'url': 'http://github.com'});

When I dump the contents of rawEvents in a file and load inside chrome’s performance tab using the graphical interface, it gives an empty timeline.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cyrus-andcommented, Jul 30, 2018

I didn’t thoroughly check the output, I just noticed that something has been loaded.

Anyway, if you inspect DevTools during the tracing you can see that it’s using something like this:

{
  "id": 63,
  "method": "Tracing.start",
  "params": {
    "categories": "-*,devtools.timeline,v8.execute,disabled-by-default-devtools.timeline,disabled-by-default-devtools.timeline.frame,toplevel,blink.console,blink.user_timing,latencyInfo,disabled-by-default-devtools.timeline.stack,disabled-by-default-devtools.screenshot",
    "options": "sampling-frequency=10000",
    "bufferUsageReportingInterval": 500,
    "transferMode": "ReportEvents"
  }
}

Maybe you could try playing with the categories param (not sure if it defaults to “everything”). I’m shooting in the dark here…

0reactions
goelayucommented, Jul 31, 2018

Perfect, that seems to work. Thanks a lot!

I don’t know why the dev protocol says the ‘categories’ option is deprecated since not using that doesn’t work with the latest version of Chrome. I would leave it up to you guys if the dev protocol should be updated, or the example provided as a part of this repo.

I’ll be closing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incomplete Survey Responses - Qualtrics
After a respondent starts a survey, they have a certain amount of time allotted for them to complete the survey, regardless of the...
Read more >
Advanced AD DS Management Using Active Directory ...
This topic covers the updated Active Directory Administrative Center with its new Active Directory Recycle Bin, Fine-grained Password policy ...
Read more >
Commonsense reasoning about containers using radically ...
Abstract. In physical reasoning, humans are often able to carry out useful reasoning based on radically incomplete information. One physical domain that is ......
Read more >
Navigate a Systrace report - Android Developers
Center the trace timeline on the current mouse location. M, Frame the current selection. 1, Change the currently-active selection model to the " ......
Read more >
Traceability in the wild - ACM Digital Library
Traceability in the wild: automatically augmenting incomplete trace links.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found