{"action":"created","comment":{"url":"https://api.github.com/repos/enb/enb/pulls/comments/66611009","id":66611009,"diff_hunk":"@@ -0,0 +1,112 @@\n+/**\n+ * BuildProfiler\n+ * ======\n+ */\n+var inherit = require('inherit'),\n+    _ = require('lodash');\n+\n+/**\n+ * BuildProfiler\n+ * ============\n+ *\n+ * Накапливает знания о времени сборки таргетов.\n+ * @name BuildProfiler\n+ * @class\n+ */\n+module.exports = inherit(/** @lends BuildProfiler.prototype */ {\n+\n+    /**\n+     * Конструктор.\n+     * @private\n+     */\n+    __constructor: function (buildTimes) {\n+        this._buildTimes = buildTimes || {};\n+    },\n+\n+    /**\n+     * Устанавливает время начала работы для указанного таргета.\n+     * @param {String} bundle\n+     * @param {String} target\n+     */\n+    setStartTime: function (targetName, time) {\n+        if (!this._buildTimes[targetName]) {\n+            this._buildTimes[targetName] = {};\n+        }\n+\n+        this._buildTimes[targetName].startTime = time ? time : Date.now();\n+    },\n+\n+    /**\n+     * Устанавливает время окончания работы для указанного таргета.\n+     * @param {String} bundle\n+     * @param {String} target\n+     */\n+    setEndTime: function (targetName, time) {\n+        if (this._buildTimes[targetName]) {","path":"lib/build-profiler.js","position":null,"original_position":45,"commit_id":"e8f37c42d479ba616090089c2626237b853b3aef","original_commit_id":"2907a19b80447d62e2f2fd375d02a21ab30b5ca5","user":{"login":"blond","id":2225579,"avatar_url":"https://avatars.githubusercontent.com/u/2225579?v=3","gravatar_id":"","url":"https://api.github.com/users/blond","html_url":"https://github.com/blond","followers_url":"https://api.github.com/users/blond/followers","following_url":"https://api.github.com/users/blond/following{/other_user}","gists_url":"https://api.github.com/users/blond/gists{/gist_id}","starred_url":"https://api.github.com/users/blond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blond/subscriptions","organizations_url":"https://api.github.com/users/blond/orgs","repos_url":"https://api.github.com/users/blond/repos","events_url":"https://api.github.com/users/blond/events{/privacy}","received_events_url":"https://api.github.com/users/blond/received_events","type":"User","site_admin":false},"body":"И хорошо бы на это тест сделать.","created_at":"2016-06-10T13:18:55Z","updated_at":"2016-06-10T13:18:55Z","html_url":"https://github.com/enb/enb/pull/476#discussion_r66611009","pull_request_url":"https://api.github.com/repos/enb/enb/pulls/476","_links":{"self":{"href":"https://api.github.com/repos/enb/enb/pulls/comments/66611009"},"html":{"href":"https://github.com/enb/enb/pull/476#discussion_r66611009"},"pull_request":{"href":"https://api.github.com/repos/enb/enb/pulls/476"}}},"pull_request":{"url":"https://api.github.com/repos/enb/enb/pulls/476","id":72679151,"html_url":"https://github.com/enb/enb/pull/476","diff_url":"https://github.com/enb/enb/pull/476.diff","patch_url":"https://github.com/enb/enb/pull/476.patch","issue_url":"https://api.github.com/repos/enb/enb/issues/476","number":476,"state":"open","locked":false,"title":"build time for targets","user":{"login":"emelyanovtv","id":2901848,"avatar_url":"https://avatars.githubusercontent.com/u/2901848?v=3","gravatar_id":"","url":"https://api.github.com/users/emelyanovtv","html_url":"https://github.com/emelyanovtv","followers_url":"https://api.github.com/users/emelyanovtv/followers","following_url":"https://api.github.com/users/emelyanovtv/following{/other_user}","gists_url":"https://api.github.com/users/emelyanovtv/gists{/gist_id}","starred_url":"https://api.github.com/users/emelyanovtv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emelyanovtv/subscriptions","organizations_url":"https://api.github.com/users/emelyanovtv/orgs","repos_url":"https://api.github.com/users/emelyanovtv/repos","events_url":"https://api.github.com/users/emelyanovtv/events{/privacy}","received_events_url":"https://api.github.com/users/emelyanovtv/received_events","type":"User","site_admin":false},"body":"Calculate build time for targets","created_at":"2016-06-06T09:23:45Z","updated_at":"2016-06-10T13:18:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e33c0bc03ee8bf0fe14f997ff812b36717d5a99","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/enb/enb/pulls/476/commits","review_comments_url":"https://api.github.com/repos/enb/enb/pulls/476/comments","review_comment_url":"https://api.github.com/repos/enb/enb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/enb/enb/issues/476/comments","statuses_url":"https://api.github.com/repos/enb/enb/statuses/e8f37c42d479ba616090089c2626237b853b3aef","head":{"label":"emelyanovtv:benchamrk-for-target","ref":"benchamrk-for-target","sha":"e8f37c42d479ba616090089c2626237b853b3aef","user":{"login":"emelyanovtv","id":2901848,"avatar_url":"https://avatars.githubusercontent.com/u/2901848?v=3","gravatar_id":"","url":"https://api.github.com/users/emelyanovtv","html_url":"https://github.com/emelyanovtv","followers_url":"https://api.github.com/users/emelyanovtv/followers","following_url":"https://api.github.com/users/emelyanovtv/following{/other_user}","gists_url":"https://api.github.com/users/emelyanovtv/gists{/gist_id}","starred_url":"https://api.github.com/users/emelyanovtv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emelyanovtv/subscriptions","organizations_url":"https://api.github.com/users/emelyanovtv/orgs","repos_url":"https://api.github.com/users/emelyanovtv/repos","events_url":"https://api.github.com/users/emelyanovtv/events{/privacy}","received_events_url":"https://api.github.com/users/emelyanovtv/received_events","type":"User","site_admin":false},"repo":{"id":59997512,"name":"enb","full_name":"emelyanovtv/enb","owner":{"login":"emelyanovtv","id":2901848,"avatar_url":"https://avatars.githubusercontent.com/u/2901848?v=3","gravatar_id":"","url":"https://api.github.com/users/emelyanovtv","html_url":"https://github.com/emelyanovtv","followers_url":"https://api.github.com/users/emelyanovtv/followers","following_url":"https://api.github.com/users/emelyanovtv/following{/other_user}","gists_url":"https://api.github.com/users/emelyanovtv/gists{/gist_id}","starred_url":"https://api.github.com/users/emelyanovtv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emelyanovtv/subscriptions","organizations_url":"https://api.github.com/users/emelyanovtv/orgs","repos_url":"https://api.github.com/users/emelyanovtv/repos","events_url":"https://api.github.com/users/emelyanovtv/events{/privacy}","received_events_url":"https://api.github.com/users/emelyanovtv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/emelyanovtv/enb","description":"Faster BEM/BEViS assembler","fork":true,"url":"https://api.github.com/repos/emelyanovtv/enb","forks_url":"https://api.github.com/repos/emelyanovtv/enb/forks","keys_url":"https://api.github.com/repos/emelyanovtv/enb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emelyanovtv/enb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emelyanovtv/enb/teams","hooks_url":"https://api.github.com/repos/emelyanovtv/enb/hooks","issue_events_url":"https://api.github.com/repos/emelyanovtv/enb/issues/events{/number}","events_url":"https://api.github.com/repos/emelyanovtv/enb/events","assignees_url":"https://api.github.com/repos/emelyanovtv/enb/assignees{/user}","branches_url":"https://api.github.com/repos/emelyanovtv/enb/branches{/branch}","tags_url":"https://api.github.com/repos/emelyanovtv/enb/tags","blobs_url":"https://api.github.com/repos/emelyanovtv/enb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emelyanovtv/enb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emelyanovtv/enb/git/refs{/sha}","trees_url":"https://api.github.com/repos/emelyanovtv/enb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emelyanovtv/enb/statuses/{sha}","languages_url":"https://api.github.com/repos/emelyanovtv/enb/languages","stargazers_url":"https://api.github.com/repos/emelyanovtv/enb/stargazers","contributors_url":"https://api.github.com/repos/emelyanovtv/enb/contributors","subscribers_url":"https://api.github.com/repos/emelyanovtv/enb/subscribers","subscription_url":"https://api.github.com/repos/emelyanovtv/enb/subscription","commits_url":"https://api.github.com/repos/emelyanovtv/enb/commits{/sha}","git_commits_url":"https://api.github.com/repos/emelyanovtv/enb/git/commits{/sha}","comments_url":"https://api.github.com/repos/emelyanovtv/enb/comments{/number}","issue_comment_url":"https://api.github.com/repos/emelyanovtv/enb/issues/comments{/number}","contents_url":"https://api.github.com/repos/emelyanovtv/enb/contents/{+path}","compare_url":"https://api.github.com/repos/emelyanovtv/enb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emelyanovtv/enb/merges","archive_url":"https://api.github.com/repos/emelyanovtv/enb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emelyanovtv/enb/downloads","issues_url":"https://api.github.com/repos/emelyanovtv/enb/issues{/number}","pulls_url":"https://api.github.com/repos/emelyanovtv/enb/pulls{/number}","milestones_url":"https://api.github.com/repos/emelyanovtv/enb/milestones{/number}","notifications_url":"https://api.github.com/repos/emelyanovtv/enb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emelyanovtv/enb/labels{/name}","releases_url":"https://api.github.com/repos/emelyanovtv/enb/releases{/id}","deployments_url":"https://api.github.com/repos/emelyanovtv/enb/deployments","created_at":"2016-05-30T09:25:25Z","updated_at":"2016-05-30T09:25:26Z","pushed_at":"2016-06-10T13:18:54Z","git_url":"git://github.com/emelyanovtv/enb.git","ssh_url":"git@github.com:emelyanovtv/enb.git","clone_url":"https://github.com/emelyanovtv/enb.git","svn_url":"https://github.com/emelyanovtv/enb","homepage":"http://enb-make.info","size":2144,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"enb:master","ref":"master","sha":"ab71be407d85d4cc93e345e82e7307b4266138b1","user":{"login":"enb","id":14005055,"avatar_url":"https://avatars.githubusercontent.com/u/14005055?v=3","gravatar_id":"","url":"https://api.github.com/users/enb","html_url":"https://github.com/enb","followers_url":"https://api.github.com/users/enb/followers","following_url":"https://api.github.com/users/enb/following{/other_user}","gists_url":"https://api.github.com/users/enb/gists{/gist_id}","starred_url":"https://api.github.com/users/enb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb/subscriptions","organizations_url":"https://api.github.com/users/enb/orgs","repos_url":"https://api.github.com/users/enb/repos","events_url":"https://api.github.com/users/enb/events{/privacy}","received_events_url":"https://api.github.com/users/enb/received_events","type":"Organization","site_admin":false},"repo":{"id":10054361,"name":"enb","full_name":"enb/enb","owner":{"login":"enb","id":14005055,"avatar_url":"https://avatars.githubusercontent.com/u/14005055?v=3","gravatar_id":"","url":"https://api.github.com/users/enb","html_url":"https://github.com/enb","followers_url":"https://api.github.com/users/enb/followers","following_url":"https://api.github.com/users/enb/following{/other_user}","gists_url":"https://api.github.com/users/enb/gists{/gist_id}","starred_url":"https://api.github.com/users/enb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb/subscriptions","organizations_url":"https://api.github.com/users/enb/orgs","repos_url":"https://api.github.com/users/enb/repos","events_url":"https://api.github.com/users/enb/events{/privacy}","received_events_url":"https://api.github.com/users/enb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enb/enb","description":"Faster BEM/BEViS assembler","fork":false,"url":"https://api.github.com/repos/enb/enb","forks_url":"https://api.github.com/repos/enb/enb/forks","keys_url":"https://api.github.com/repos/enb/enb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enb/enb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enb/enb/teams","hooks_url":"https://api.github.com/repos/enb/enb/hooks","issue_events_url":"https://api.github.com/repos/enb/enb/issues/events{/number}","events_url":"https://api.github.com/repos/enb/enb/events","assignees_url":"https://api.github.com/repos/enb/enb/assignees{/user}","branches_url":"https://api.github.com/repos/enb/enb/branches{/branch}","tags_url":"https://api.github.com/repos/enb/enb/tags","blobs_url":"https://api.github.com/repos/enb/enb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enb/enb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enb/enb/git/refs{/sha}","trees_url":"https://api.github.com/repos/enb/enb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enb/enb/statuses/{sha}","languages_url":"https://api.github.com/repos/enb/enb/languages","stargazers_url":"https://api.github.com/repos/enb/enb/stargazers","contributors_url":"https://api.github.com/repos/enb/enb/contributors","subscribers_url":"https://api.github.com/repos/enb/enb/subscribers","subscription_url":"https://api.github.com/repos/enb/enb/subscription","commits_url":"https://api.github.com/repos/enb/enb/commits{/sha}","git_commits_url":"https://api.github.com/repos/enb/enb/git/commits{/sha}","comments_url":"https://api.github.com/repos/enb/enb/comments{/number}","issue_comment_url":"https://api.github.com/repos/enb/enb/issues/comments{/number}","contents_url":"https://api.github.com/repos/enb/enb/contents/{+path}","compare_url":"https://api.github.com/repos/enb/enb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enb/enb/merges","archive_url":"https://api.github.com/repos/enb/enb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enb/enb/downloads","issues_url":"https://api.github.com/repos/enb/enb/issues{/number}","pulls_url":"https://api.github.com/repos/enb/enb/pulls{/number}","milestones_url":"https://api.github.com/repos/enb/enb/milestones{/number}","notifications_url":"https://api.github.com/repos/enb/enb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enb/enb/labels{/name}","releases_url":"https://api.github.com/repos/enb/enb/releases{/id}","deployments_url":"https://api.github.com/repos/enb/enb/deployments","created_at":"2013-05-14T12:15:32Z","updated_at":"2016-06-09T04:07:09Z","pushed_at":"2016-06-10T13:18:54Z","git_url":"git://github.com/enb/enb.git","ssh_url":"git@github.com:enb/enb.git","clone_url":"https://github.com/enb/enb.git","svn_url":"https://github.com/enb/enb","homepage":"https://bem.info/toolbox/enb/","size":2267,"stargazers_count":120,"watchers_count":120,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":43,"forks":54,"open_issues":43,"watchers":120,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/enb/enb/pulls/476"},"html":{"href":"https://github.com/enb/enb/pull/476"},"issue":{"href":"https://api.github.com/repos/enb/enb/issues/476"},"comments":{"href":"https://api.github.com/repos/enb/enb/issues/476/comments"},"review_comments":{"href":"https://api.github.com/repos/enb/enb/pulls/476/comments"},"review_comment":{"href":"https://api.github.com/repos/enb/enb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/enb/enb/pulls/476/commits"},"statuses":{"href":"https://api.github.com/repos/enb/enb/statuses/e8f37c42d479ba616090089c2626237b853b3aef"}}}}
{"actor":{"display_login":"blond"}}