{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/8433","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/8433/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/8433/comments","events_url":"https://api.github.com/repos/electron/electron/issues/8433/events","html_url":"https://github.com/electron/electron/issues/8433","id":201605256,"number":8433,"title":"The contentTracing module of electron seems not working","user":{"login":"Skywalker13","id":397862,"avatar_url":"https://avatars.githubusercontent.com/u/397862?v=3","gravatar_id":"","url":"https://api.github.com/users/Skywalker13","html_url":"https://github.com/Skywalker13","followers_url":"https://api.github.com/users/Skywalker13/followers","following_url":"https://api.github.com/users/Skywalker13/following{/other_user}","gists_url":"https://api.github.com/users/Skywalker13/gists{/gist_id}","starred_url":"https://api.github.com/users/Skywalker13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skywalker13/subscriptions","organizations_url":"https://api.github.com/users/Skywalker13/orgs","repos_url":"https://api.github.com/users/Skywalker13/repos","events_url":"https://api.github.com/users/Skywalker13/events{/privacy}","received_events_url":"https://api.github.com/users/Skywalker13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-18T15:27:45Z","updated_at":"2017-01-26T01:12:36Z","closed_at":null,"body":"Hello,\r\n\r\nI try this code without success:\r\n\r\n**test.js**\r\n```js\r\n'use strict';\r\n\r\nconst {contentTracing} = require ('electron');\r\n\r\nconst options = {\r\n  categoryFilter: '*',\r\n  traceOptions: 'record-until-full,enable-sampling'\r\n};\r\n\r\ncontentTracing.startRecording (options, () => {\r\n  console.log ('Tracing started');\r\n\r\n  setTimeout (() => {\r\n    contentTracing.stopRecording ('', (path) => {\r\n      console.log ('Tracing data recorded to ' + path);\r\n    });\r\n  }, 5000);\r\n});\r\n```\r\n\r\nIt comes from http://electron.atom.io/docs/api/content-tracing/\r\n\r\nNothing printed, no file.. WTF?\r\n\r\n* Electron version: v1.4.14\r\n* Operating system: MS Windows 10\r\n\r\n### Expected behavior\r\n\r\nAt least to see 'Tracing started' in the console output.\r\n\r\n### Actual behavior\r\n\r\nNothing happens; it hangs\r\n\r\n### How to reproduce\r\n\r\n```js\r\nnode_modules/.bin/electron test.js\r\n```"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/275282859","html_url":"https://github.com/electron/electron/issues/8433#issuecomment-275282859","issue_url":"https://api.github.com/repos/electron/electron/issues/8433","id":275282859,"user":{"login":"kevinsawicki","id":671378,"avatar_url":"https://avatars.githubusercontent.com/u/671378?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsawicki","html_url":"https://github.com/kevinsawicki","followers_url":"https://api.github.com/users/kevinsawicki/followers","following_url":"https://api.github.com/users/kevinsawicki/following{/other_user}","gists_url":"https://api.github.com/users/kevinsawicki/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsawicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsawicki/subscriptions","organizations_url":"https://api.github.com/users/kevinsawicki/orgs","repos_url":"https://api.github.com/users/kevinsawicki/repos","events_url":"https://api.github.com/users/kevinsawicki/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsawicki/received_events","type":"User","site_admin":true},"created_at":"2017-01-26T01:12:36Z","updated_at":"2017-01-26T01:12:36Z","body":"I was able to see log out and create a file with the following:\r\n\r\n```js\r\n'use strict';\r\n\r\nconst {app, contentTracing} = require ('electron');\r\n\r\n\r\napp.once('ready', function () {\r\n  const options = {\r\n    categoryFilter: '*',\r\n    traceOptions: 'record-until-full,enable-sampling'\r\n  };\r\n\r\n  contentTracing.startRecording (options, () => {\r\n    console.log ('Tracing started');\r\n\r\n    setTimeout (() => {\r\n      contentTracing.stopRecording ('', (path) => {\r\n        console.log ('Tracing data recorded to ' + path);\r\n      });\r\n    }, 5000);\r\n  });\r\n})\r\n```"}}
{"actor":{"display_login":"kevinsawicki"}}