{"action":"closed","number":14,"pull_request":{"url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/pulls/14","id":46636272,"html_url":"https://github.com/sinisterchipmunk/rspec-prof/pull/14","diff_url":"https://github.com/sinisterchipmunk/rspec-prof/pull/14.diff","patch_url":"https://github.com/sinisterchipmunk/rspec-prof/pull/14.patch","issue_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/issues/14","number":14,"state":"closed","locked":false,"title":"Limit profiling report to the top 99% percent","user":{"login":"jrafanie","id":19339,"avatar_url":"https://avatars.githubusercontent.com/u/19339?v=3","gravatar_id":"","url":"https://api.github.com/users/jrafanie","html_url":"https://github.com/jrafanie","followers_url":"https://api.github.com/users/jrafanie/followers","following_url":"https://api.github.com/users/jrafanie/following{/other_user}","gists_url":"https://api.github.com/users/jrafanie/gists{/gist_id}","starred_url":"https://api.github.com/users/jrafanie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrafanie/subscriptions","organizations_url":"https://api.github.com/users/jrafanie/orgs","repos_url":"https://api.github.com/users/jrafanie/repos","events_url":"https://api.github.com/users/jrafanie/events{/privacy}","received_events_url":"https://api.github.com/users/jrafanie/received_events","type":"User","site_admin":false},"body":"We rarely if ever care about any code that consumes less than 1% of\r\nCPU/Wall time, allocations, etc.\r\n\r\nFor tests that take less than a few seconds, it's not a huge deal but\r\nfor anything more than that, it takes forever to run and creates an\r\nenormous html file with mostly useless information:\r\n\r\n**Without profiling**\r\n`bundle exec rake test  1.13s user 0.18s system 98% cpu 1.319 total`\r\n\r\n**With profiling, before this commit**\r\n`RSPEC_PROFILE=all bundle exec rake test  6.95s user 0.38s system 99% cpu 7.350 total`\r\n\r\nProduces an 11 MB html file.\r\n\r\n**With profiling, after this commit**\r\n`RSPEC_PROFILE=all bundle exec rake test  1.92s user 0.20s system 99% cpu 2.131 total`\r\n\r\nProduces an 75 KB html file.","created_at":"2015-10-02T13:41:59Z","updated_at":"2016-02-04T18:23:06Z","closed_at":"2016-02-04T18:23:06Z","merged_at":"2016-02-04T18:23:06Z","merge_commit_sha":"ba0a1c9131833855cbfaee1cb26dc27d65ba6160","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/pulls/14/commits","review_comments_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/pulls/14/comments","review_comment_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/issues/14/comments","statuses_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/statuses/78c757a72877a4710b7033ee3a17b7e498004a43","head":{"label":"jrafanie:limit_profile_report_to_top_99_percent","ref":"limit_profile_report_to_top_99_percent","sha":"78c757a72877a4710b7033ee3a17b7e498004a43","user":{"login":"jrafanie","id":19339,"avatar_url":"https://avatars.githubusercontent.com/u/19339?v=3","gravatar_id":"","url":"https://api.github.com/users/jrafanie","html_url":"https://github.com/jrafanie","followers_url":"https://api.github.com/users/jrafanie/followers","following_url":"https://api.github.com/users/jrafanie/following{/other_user}","gists_url":"https://api.github.com/users/jrafanie/gists{/gist_id}","starred_url":"https://api.github.com/users/jrafanie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrafanie/subscriptions","organizations_url":"https://api.github.com/users/jrafanie/orgs","repos_url":"https://api.github.com/users/jrafanie/repos","events_url":"https://api.github.com/users/jrafanie/events{/privacy}","received_events_url":"https://api.github.com/users/jrafanie/received_events","type":"User","site_admin":false},"repo":{"id":43553373,"name":"rspec-prof","full_name":"jrafanie/rspec-prof","owner":{"login":"jrafanie","id":19339,"avatar_url":"https://avatars.githubusercontent.com/u/19339?v=3","gravatar_id":"","url":"https://api.github.com/users/jrafanie","html_url":"https://github.com/jrafanie","followers_url":"https://api.github.com/users/jrafanie/followers","following_url":"https://api.github.com/users/jrafanie/following{/other_user}","gists_url":"https://api.github.com/users/jrafanie/gists{/gist_id}","starred_url":"https://api.github.com/users/jrafanie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrafanie/subscriptions","organizations_url":"https://api.github.com/users/jrafanie/orgs","repos_url":"https://api.github.com/users/jrafanie/repos","events_url":"https://api.github.com/users/jrafanie/events{/privacy}","received_events_url":"https://api.github.com/users/jrafanie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jrafanie/rspec-prof","description":"Integrates ruby-prof with RSpec, allowing you to easily profile your RSpec examples.","fork":true,"url":"https://api.github.com/repos/jrafanie/rspec-prof","forks_url":"https://api.github.com/repos/jrafanie/rspec-prof/forks","keys_url":"https://api.github.com/repos/jrafanie/rspec-prof/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jrafanie/rspec-prof/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jrafanie/rspec-prof/teams","hooks_url":"https://api.github.com/repos/jrafanie/rspec-prof/hooks","issue_events_url":"https://api.github.com/repos/jrafanie/rspec-prof/issues/events{/number}","events_url":"https://api.github.com/repos/jrafanie/rspec-prof/events","assignees_url":"https://api.github.com/repos/jrafanie/rspec-prof/assignees{/user}","branches_url":"https://api.github.com/repos/jrafanie/rspec-prof/branches{/branch}","tags_url":"https://api.github.com/repos/jrafanie/rspec-prof/tags","blobs_url":"https://api.github.com/repos/jrafanie/rspec-prof/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jrafanie/rspec-prof/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jrafanie/rspec-prof/git/refs{/sha}","trees_url":"https://api.github.com/repos/jrafanie/rspec-prof/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jrafanie/rspec-prof/statuses/{sha}","languages_url":"https://api.github.com/repos/jrafanie/rspec-prof/languages","stargazers_url":"https://api.github.com/repos/jrafanie/rspec-prof/stargazers","contributors_url":"https://api.github.com/repos/jrafanie/rspec-prof/contributors","subscribers_url":"https://api.github.com/repos/jrafanie/rspec-prof/subscribers","subscription_url":"https://api.github.com/repos/jrafanie/rspec-prof/subscription","commits_url":"https://api.github.com/repos/jrafanie/rspec-prof/commits{/sha}","git_commits_url":"https://api.github.com/repos/jrafanie/rspec-prof/git/commits{/sha}","comments_url":"https://api.github.com/repos/jrafanie/rspec-prof/comments{/number}","issue_comment_url":"https://api.github.com/repos/jrafanie/rspec-prof/issues/comments{/number}","contents_url":"https://api.github.com/repos/jrafanie/rspec-prof/contents/{+path}","compare_url":"https://api.github.com/repos/jrafanie/rspec-prof/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jrafanie/rspec-prof/merges","archive_url":"https://api.github.com/repos/jrafanie/rspec-prof/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jrafanie/rspec-prof/downloads","issues_url":"https://api.github.com/repos/jrafanie/rspec-prof/issues{/number}","pulls_url":"https://api.github.com/repos/jrafanie/rspec-prof/pulls{/number}","milestones_url":"https://api.github.com/repos/jrafanie/rspec-prof/milestones{/number}","notifications_url":"https://api.github.com/repos/jrafanie/rspec-prof/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jrafanie/rspec-prof/labels{/name}","releases_url":"https://api.github.com/repos/jrafanie/rspec-prof/releases{/id}","deployments_url":"https://api.github.com/repos/jrafanie/rspec-prof/deployments","created_at":"2015-10-02T13:09:42Z","updated_at":"2015-10-02T13:09:43Z","pushed_at":"2015-10-02T13:41:14Z","git_url":"git://github.com/jrafanie/rspec-prof.git","ssh_url":"git@github.com:jrafanie/rspec-prof.git","clone_url":"https://github.com/jrafanie/rspec-prof.git","svn_url":"https://github.com/jrafanie/rspec-prof","homepage":"http://www.thoughtsincomputation.com","size":126,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"sinisterchipmunk:master","ref":"master","sha":"7e0cde7ebeb6b291ef4a35f09d8e1c3cfdac3ff5","user":{"login":"sinisterchipmunk","id":85851,"avatar_url":"https://avatars.githubusercontent.com/u/85851?v=3","gravatar_id":"","url":"https://api.github.com/users/sinisterchipmunk","html_url":"https://github.com/sinisterchipmunk","followers_url":"https://api.github.com/users/sinisterchipmunk/followers","following_url":"https://api.github.com/users/sinisterchipmunk/following{/other_user}","gists_url":"https://api.github.com/users/sinisterchipmunk/gists{/gist_id}","starred_url":"https://api.github.com/users/sinisterchipmunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinisterchipmunk/subscriptions","organizations_url":"https://api.github.com/users/sinisterchipmunk/orgs","repos_url":"https://api.github.com/users/sinisterchipmunk/repos","events_url":"https://api.github.com/users/sinisterchipmunk/events{/privacy}","received_events_url":"https://api.github.com/users/sinisterchipmunk/received_events","type":"User","site_admin":false},"repo":{"id":772423,"name":"rspec-prof","full_name":"sinisterchipmunk/rspec-prof","owner":{"login":"sinisterchipmunk","id":85851,"avatar_url":"https://avatars.githubusercontent.com/u/85851?v=3","gravatar_id":"","url":"https://api.github.com/users/sinisterchipmunk","html_url":"https://github.com/sinisterchipmunk","followers_url":"https://api.github.com/users/sinisterchipmunk/followers","following_url":"https://api.github.com/users/sinisterchipmunk/following{/other_user}","gists_url":"https://api.github.com/users/sinisterchipmunk/gists{/gist_id}","starred_url":"https://api.github.com/users/sinisterchipmunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinisterchipmunk/subscriptions","organizations_url":"https://api.github.com/users/sinisterchipmunk/orgs","repos_url":"https://api.github.com/users/sinisterchipmunk/repos","events_url":"https://api.github.com/users/sinisterchipmunk/events{/privacy}","received_events_url":"https://api.github.com/users/sinisterchipmunk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sinisterchipmunk/rspec-prof","description":"Integrates ruby-prof with RSpec, allowing you to easily profile your RSpec examples.","fork":false,"url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof","forks_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/forks","keys_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/teams","hooks_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/hooks","issue_events_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/issues/events{/number}","events_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/events","assignees_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/assignees{/user}","branches_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/branches{/branch}","tags_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/tags","blobs_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/git/refs{/sha}","trees_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/statuses/{sha}","languages_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/languages","stargazers_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/stargazers","contributors_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/contributors","subscribers_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/subscribers","subscription_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/subscription","commits_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/commits{/sha}","git_commits_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/git/commits{/sha}","comments_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/comments{/number}","issue_comment_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/issues/comments{/number}","contents_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/contents/{+path}","compare_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/merges","archive_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/downloads","issues_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/issues{/number}","pulls_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/pulls{/number}","milestones_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/milestones{/number}","notifications_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/labels{/name}","releases_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/releases{/id}","deployments_url":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/deployments","created_at":"2010-07-13T13:17:49Z","updated_at":"2016-02-04T17:29:30Z","pushed_at":"2016-02-04T18:23:06Z","git_url":"git://github.com/sinisterchipmunk/rspec-prof.git","ssh_url":"git@github.com:sinisterchipmunk/rspec-prof.git","clone_url":"https://github.com/sinisterchipmunk/rspec-prof.git","svn_url":"https://github.com/sinisterchipmunk/rspec-prof","homepage":"http://www.thoughtsincomputation.com","size":238,"stargazers_count":100,"watchers_count":100,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":4,"forks":16,"open_issues":4,"watchers":100,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/pulls/14"},"html":{"href":"https://github.com/sinisterchipmunk/rspec-prof/pull/14"},"issue":{"href":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/issues/14"},"comments":{"href":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/sinisterchipmunk/rspec-prof/statuses/78c757a72877a4710b7033ee3a17b7e498004a43"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"sinisterchipmunk","id":85851,"avatar_url":"https://avatars.githubusercontent.com/u/85851?v=3","gravatar_id":"","url":"https://api.github.com/users/sinisterchipmunk","html_url":"https://github.com/sinisterchipmunk","followers_url":"https://api.github.com/users/sinisterchipmunk/followers","following_url":"https://api.github.com/users/sinisterchipmunk/following{/other_user}","gists_url":"https://api.github.com/users/sinisterchipmunk/gists{/gist_id}","starred_url":"https://api.github.com/users/sinisterchipmunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinisterchipmunk/subscriptions","organizations_url":"https://api.github.com/users/sinisterchipmunk/orgs","repos_url":"https://api.github.com/users/sinisterchipmunk/repos","events_url":"https://api.github.com/users/sinisterchipmunk/events{/privacy}","received_events_url":"https://api.github.com/users/sinisterchipmunk/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}