{"action":"created","issue":{"url":"https://api.github.com/repos/paulirish/devtools-timeline-model/issues/20","repository_url":"https://api.github.com/repos/paulirish/devtools-timeline-model","labels_url":"https://api.github.com/repos/paulirish/devtools-timeline-model/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/paulirish/devtools-timeline-model/issues/20/comments","events_url":"https://api.github.com/repos/paulirish/devtools-timeline-model/issues/20/events","html_url":"https://github.com/paulirish/devtools-timeline-model/issues/20","id":194128705,"number":20,"title":"Can devtools-timeline-model work on a smaller set of trace events?","user":{"login":"hrgui","id":5001432,"avatar_url":"https://avatars.githubusercontent.com/u/5001432?v=3","gravatar_id":"","url":"https://api.github.com/users/hrgui","html_url":"https://github.com/hrgui","followers_url":"https://api.github.com/users/hrgui/followers","following_url":"https://api.github.com/users/hrgui/following{/other_user}","gists_url":"https://api.github.com/users/hrgui/gists{/gist_id}","starred_url":"https://api.github.com/users/hrgui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrgui/subscriptions","organizations_url":"https://api.github.com/users/hrgui/orgs","repos_url":"https://api.github.com/users/hrgui/repos","events_url":"https://api.github.com/users/hrgui/events{/privacy}","received_events_url":"https://api.github.com/users/hrgui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-07T18:28:20Z","updated_at":"2016-12-07T20:33:24Z","closed_at":null,"body":"I have a list of events, but I had already filtered it down to just 'TimerInstall, TimerFire, TimerRemove, XHRLoad, EvaluateScript, ResourceSendRequest', because i'm only interested with those events in my data analysis.\r\n\r\n```javascript\r\n> var model = new DevtoolsTimelineModel(events)\r\nTracingStartedInPage event not found.\r\n```\r\n\r\n===\r\nUpdate 12/7 11:23 AM\r\n\r\nIt looks like I needed \"disabled-by-default-devtools.timeline\" and __metadata trace entries, but when I call\r\n\r\n```javascript\r\nlet model = new DevtoolsTimelineModel(entries);\r\nlet timelineModel = model.timelineModel();\r\n\r\nlet networkRequests = timelineModel.networkRequests();\r\n```\r\n\r\nThe networkRequests do show up, but the endTime is infinity. Will look into it some more. \r\n\r\n===\r\nUpdate 12/7 11:37 AM\r\n\r\nLooks like I needed these extra events after looking into how networkRequests are made in devtools-frontend:\r\n\r\n```\r\n       ['ResourceReceiveResponse',\r\n        'ResourceReceivedData',\r\n        'ResourceFinish',\r\n        'ResourceSendRequest']\r\n```"},"comment":{"url":"https://api.github.com/repos/paulirish/devtools-timeline-model/issues/comments/265565099","html_url":"https://github.com/paulirish/devtools-timeline-model/issues/20#issuecomment-265565099","issue_url":"https://api.github.com/repos/paulirish/devtools-timeline-model/issues/20","id":265565099,"user":{"login":"paulirish","id":39191,"avatar_url":"https://avatars.githubusercontent.com/u/39191?v=3","gravatar_id":"","url":"https://api.github.com/users/paulirish","html_url":"https://github.com/paulirish","followers_url":"https://api.github.com/users/paulirish/followers","following_url":"https://api.github.com/users/paulirish/following{/other_user}","gists_url":"https://api.github.com/users/paulirish/gists{/gist_id}","starred_url":"https://api.github.com/users/paulirish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulirish/subscriptions","organizations_url":"https://api.github.com/users/paulirish/orgs","repos_url":"https://api.github.com/users/paulirish/repos","events_url":"https://api.github.com/users/paulirish/events{/privacy}","received_events_url":"https://api.github.com/users/paulirish/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T20:33:24Z","updated_at":"2016-12-07T20:33:24Z","body":":D Yeah i think you're answering your own question.\r\n\r\nI personally wouldnt filter it manually before feeding to d-t-m. I would just change the trace categories I collect."}}
{"actor":{"display_login":"paulirish"}}