{"action":"created","comment":{"url":"https://api.github.com/repos/enb/enb/pulls/comments/74103170","id":74103170,"diff_hunk":"@@ -110,5 +113,41 @@ module.exports = inherit(/** @lends BuildProfiler.prototype */ {\n         });\n \n         return this._buildTimes;\n+    },\n+\n+    calculateMetrics: function (buildTimes) {\n+        var infoData = {};\n+        var totalTime = 0;\n+\n+        Object.keys(buildTimes).map(function (targetName) {\n+            if (buildTimes[targetName] && buildTimes[targetName].techName) {\n+                var techName = buildTimes[targetName].techName;\n+                var selfTime = buildTimes[targetName].selfTime;\n+\n+                if (!infoData[techName]) {\n+                    infoData[techName] = { cnt: 1, time: selfTime, timeArr: [] };","path":"lib/build-profiler.js","position":41,"original_position":41,"commit_id":"2a28b4ae2340464929085b1fd6fdc245de11c0b6","original_commit_id":"2a28b4ae2340464929085b1fd6fdc245de11c0b6","user":{"login":"zxqfox","id":677518,"avatar_url":"https://avatars.githubusercontent.com/u/677518?v=3","gravatar_id":"","url":"https://api.github.com/users/zxqfox","html_url":"https://github.com/zxqfox","followers_url":"https://api.github.com/users/zxqfox/followers","following_url":"https://api.github.com/users/zxqfox/following{/other_user}","gists_url":"https://api.github.com/users/zxqfox/gists{/gist_id}","starred_url":"https://api.github.com/users/zxqfox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zxqfox/subscriptions","organizations_url":"https://api.github.com/users/zxqfox/orgs","repos_url":"https://api.github.com/users/zxqfox/repos","events_url":"https://api.github.com/users/zxqfox/events{/privacy}","received_events_url":"https://api.github.com/users/zxqfox/received_events","type":"User","site_admin":false},"body":"times это \"раз\" (в смысле, «15 раз»)","created_at":"2016-08-09T17:20:58Z","updated_at":"2016-08-09T17:20:58Z","html_url":"https://github.com/enb/enb/pull/490#discussion_r74103170","pull_request_url":"https://api.github.com/repos/enb/enb/pulls/490","_links":{"self":{"href":"https://api.github.com/repos/enb/enb/pulls/comments/74103170"},"html":{"href":"https://github.com/enb/enb/pull/490#discussion_r74103170"},"pull_request":{"href":"https://api.github.com/repos/enb/enb/pulls/490"}}},"pull_request":{"url":"https://api.github.com/repos/enb/enb/pulls/490","id":78443245,"html_url":"https://github.com/enb/enb/pull/490","diff_url":"https://github.com/enb/enb/pull/490.diff","patch_url":"https://github.com/enb/enb/pull/490.patch","issue_url":"https://api.github.com/repos/enb/enb/issues/490","number":490,"state":"open","locked":false,"title":"Metrics for profiler","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":"","created_at":"2016-07-22T08:44:05Z","updated_at":"2016-08-09T17:20:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29b24461daa482e6c9239f6fb42252edeac7e4a4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/enb/enb/pulls/490/commits","review_comments_url":"https://api.github.com/repos/enb/enb/pulls/490/comments","review_comment_url":"https://api.github.com/repos/enb/enb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/enb/enb/issues/490/comments","statuses_url":"https://api.github.com/repos/enb/enb/statuses/2a28b4ae2340464929085b1fd6fdc245de11c0b6","head":{"label":"emelyanovtv:profiler-metrics","ref":"profiler-metrics","sha":"2a28b4ae2340464929085b1fd6fdc245de11c0b6","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-07-29T09:29:13Z","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":2166,"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":"878c8bfb0e789d640a07c495b72552f1941eb920","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-07-30T06:59:08Z","pushed_at":"2016-08-09T05:29:21Z","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":2465,"stargazers_count":122,"watchers_count":122,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":42,"forks":57,"open_issues":42,"watchers":122,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/enb/enb/pulls/490"},"html":{"href":"https://github.com/enb/enb/pull/490"},"issue":{"href":"https://api.github.com/repos/enb/enb/issues/490"},"comments":{"href":"https://api.github.com/repos/enb/enb/issues/490/comments"},"review_comments":{"href":"https://api.github.com/repos/enb/enb/pulls/490/comments"},"review_comment":{"href":"https://api.github.com/repos/enb/enb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/enb/enb/pulls/490/commits"},"statuses":{"href":"https://api.github.com/repos/enb/enb/statuses/2a28b4ae2340464929085b1fd6fdc245de11c0b6"}}}}
{"actor":{"display_login":"zxqfox"}}