{"action":"created","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/6349","repository_url":"https://api.github.com/repos/ember-cli/ember-cli","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/6349/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/6349/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/6349/events","html_url":"https://github.com/ember-cli/ember-cli/issues/6349","id":183148800,"number":6349,"title":"Add a clean way to get access to build timing","user":{"login":"mdebbar","id":1278212,"avatar_url":"https://avatars.githubusercontent.com/u/1278212?v=3","gravatar_id":"","url":"https://api.github.com/users/mdebbar","html_url":"https://github.com/mdebbar","followers_url":"https://api.github.com/users/mdebbar/followers","following_url":"https://api.github.com/users/mdebbar/following{/other_user}","gists_url":"https://api.github.com/users/mdebbar/gists{/gist_id}","starred_url":"https://api.github.com/users/mdebbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdebbar/subscriptions","organizations_url":"https://api.github.com/users/mdebbar/orgs","repos_url":"https://api.github.com/users/mdebbar/repos","events_url":"https://api.github.com/users/mdebbar/events{/privacy}","received_events_url":"https://api.github.com/users/mdebbar/received_events","type":"User","site_admin":false},"labels":[{"id":181566657,"url":"https://api.github.com/repos/ember-cli/ember-cli/labels/Feature","name":"Feature","color":"009800","default":false}],"state":"open","locked":false,"assignee":{"login":"twokul","id":1131196,"avatar_url":"https://avatars.githubusercontent.com/u/1131196?v=3","gravatar_id":"","url":"https://api.github.com/users/twokul","html_url":"https://github.com/twokul","followers_url":"https://api.github.com/users/twokul/followers","following_url":"https://api.github.com/users/twokul/following{/other_user}","gists_url":"https://api.github.com/users/twokul/gists{/gist_id}","starred_url":"https://api.github.com/users/twokul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twokul/subscriptions","organizations_url":"https://api.github.com/users/twokul/orgs","repos_url":"https://api.github.com/users/twokul/repos","events_url":"https://api.github.com/users/twokul/events{/privacy}","received_events_url":"https://api.github.com/users/twokul/received_events","type":"User","site_admin":false},"assignees":[{"login":"twokul","id":1131196,"avatar_url":"https://avatars.githubusercontent.com/u/1131196?v=3","gravatar_id":"","url":"https://api.github.com/users/twokul","html_url":"https://github.com/twokul","followers_url":"https://api.github.com/users/twokul/followers","following_url":"https://api.github.com/users/twokul/following{/other_user}","gists_url":"https://api.github.com/users/twokul/gists{/gist_id}","starred_url":"https://api.github.com/users/twokul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twokul/subscriptions","organizations_url":"https://api.github.com/users/twokul/orgs","repos_url":"https://api.github.com/users/twokul/repos","events_url":"https://api.github.com/users/twokul/events{/privacy}","received_events_url":"https://api.github.com/users/twokul/received_events","type":"User","site_admin":false}],"milestone":null,"comments":24,"created_at":"2016-10-14T20:58:13Z","updated_at":"2016-12-03T09:07:32Z","closed_at":null,"body":"Right now, the only way to get the build time information is by creating an addon and monkey patching `project.cli.analytics.trackTiming` like so:\n\n``` javascript\nmodule.exports = {\n  name: 'build-time-tracker',\n  init: function() {\n    this._super.init && this._super.init.apply(this, arguments);\n\n    var analytics = project.cli.analytics;\n    var original = analytics.trackTiming;\n\n    analytics.trackTiming = function(info) {\n      original.apply(this, arguments);\n      // Access `info` which contains meta data about current build, including build time.\n    };\n  },\n};\n```\n\nIt would be great to have a clean API to listen to build time info. Something as simple as this could work:\n\n``` javascript\nproject.cli.onBuildComplete(function(info) {\n  // Access the build info here..\n});\n```\n\nAny thoughts?\n"},"comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments/264627409","html_url":"https://github.com/ember-cli/ember-cli/issues/6349#issuecomment-264627409","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/6349","id":264627409,"user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"created_at":"2016-12-03T09:07:32Z","updated_at":"2016-12-03T09:07:32Z","body":"@twokul please share a link to the RFC when you have it."}}
{"actor":{"display_login":"stefanpenner"}}