{"action":"opened","number":182,"pull_request":{"url":"https://api.github.com/repos/google/benchmark/pulls/182","id":59363862,"html_url":"https://github.com/google/benchmark/pull/182","diff_url":"https://github.com/google/benchmark/pull/182.diff","patch_url":"https://github.com/google/benchmark/pull/182.patch","issue_url":"https://api.github.com/repos/google/benchmark/issues/182","number":182,"state":"open","locked":false,"title":"Add number of threads to State.","user":{"login":"buchgr","id":1388179,"avatar_url":"https://avatars.githubusercontent.com/u/1388179?v=3","gravatar_id":"","url":"https://api.github.com/users/buchgr","html_url":"https://github.com/buchgr","followers_url":"https://api.github.com/users/buchgr/followers","following_url":"https://api.github.com/users/buchgr/following{/other_user}","gists_url":"https://api.github.com/users/buchgr/gists{/gist_id}","starred_url":"https://api.github.com/users/buchgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buchgr/subscriptions","organizations_url":"https://api.github.com/users/buchgr/orgs","repos_url":"https://api.github.com/users/buchgr/repos","events_url":"https://api.github.com/users/buchgr/events{/privacy}","received_events_url":"https://api.github.com/users/buchgr/received_events","type":"User","site_admin":false},"body":"Having access to the thread count from within a benchmark is useful,\r\nfor when one wants to distribute a workload dynamically among the\r\nbenchmarks running in parallel e.g when using ThreadRange() or\r\nThreadPerCpu().","created_at":"2016-02-15T13:31:25Z","updated_at":"2016-02-15T13:31:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/google/benchmark/pulls/182/commits","review_comments_url":"https://api.github.com/repos/google/benchmark/pulls/182/comments","review_comment_url":"https://api.github.com/repos/google/benchmark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/benchmark/issues/182/comments","statuses_url":"https://api.github.com/repos/google/benchmark/statuses/23e92296454aa279cf3b239450c14e83f30177cc","head":{"label":"buchgr:state_threads","ref":"state_threads","sha":"23e92296454aa279cf3b239450c14e83f30177cc","user":{"login":"buchgr","id":1388179,"avatar_url":"https://avatars.githubusercontent.com/u/1388179?v=3","gravatar_id":"","url":"https://api.github.com/users/buchgr","html_url":"https://github.com/buchgr","followers_url":"https://api.github.com/users/buchgr/followers","following_url":"https://api.github.com/users/buchgr/following{/other_user}","gists_url":"https://api.github.com/users/buchgr/gists{/gist_id}","starred_url":"https://api.github.com/users/buchgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buchgr/subscriptions","organizations_url":"https://api.github.com/users/buchgr/orgs","repos_url":"https://api.github.com/users/buchgr/repos","events_url":"https://api.github.com/users/buchgr/events{/privacy}","received_events_url":"https://api.github.com/users/buchgr/received_events","type":"User","site_admin":false},"repo":{"id":51756806,"name":"benchmark","full_name":"buchgr/benchmark","owner":{"login":"buchgr","id":1388179,"avatar_url":"https://avatars.githubusercontent.com/u/1388179?v=3","gravatar_id":"","url":"https://api.github.com/users/buchgr","html_url":"https://github.com/buchgr","followers_url":"https://api.github.com/users/buchgr/followers","following_url":"https://api.github.com/users/buchgr/following{/other_user}","gists_url":"https://api.github.com/users/buchgr/gists{/gist_id}","starred_url":"https://api.github.com/users/buchgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buchgr/subscriptions","organizations_url":"https://api.github.com/users/buchgr/orgs","repos_url":"https://api.github.com/users/buchgr/repos","events_url":"https://api.github.com/users/buchgr/events{/privacy}","received_events_url":"https://api.github.com/users/buchgr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/buchgr/benchmark","description":"A microbenchmark support library","fork":true,"url":"https://api.github.com/repos/buchgr/benchmark","forks_url":"https://api.github.com/repos/buchgr/benchmark/forks","keys_url":"https://api.github.com/repos/buchgr/benchmark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/buchgr/benchmark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/buchgr/benchmark/teams","hooks_url":"https://api.github.com/repos/buchgr/benchmark/hooks","issue_events_url":"https://api.github.com/repos/buchgr/benchmark/issues/events{/number}","events_url":"https://api.github.com/repos/buchgr/benchmark/events","assignees_url":"https://api.github.com/repos/buchgr/benchmark/assignees{/user}","branches_url":"https://api.github.com/repos/buchgr/benchmark/branches{/branch}","tags_url":"https://api.github.com/repos/buchgr/benchmark/tags","blobs_url":"https://api.github.com/repos/buchgr/benchmark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/buchgr/benchmark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/buchgr/benchmark/git/refs{/sha}","trees_url":"https://api.github.com/repos/buchgr/benchmark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/buchgr/benchmark/statuses/{sha}","languages_url":"https://api.github.com/repos/buchgr/benchmark/languages","stargazers_url":"https://api.github.com/repos/buchgr/benchmark/stargazers","contributors_url":"https://api.github.com/repos/buchgr/benchmark/contributors","subscribers_url":"https://api.github.com/repos/buchgr/benchmark/subscribers","subscription_url":"https://api.github.com/repos/buchgr/benchmark/subscription","commits_url":"https://api.github.com/repos/buchgr/benchmark/commits{/sha}","git_commits_url":"https://api.github.com/repos/buchgr/benchmark/git/commits{/sha}","comments_url":"https://api.github.com/repos/buchgr/benchmark/comments{/number}","issue_comment_url":"https://api.github.com/repos/buchgr/benchmark/issues/comments{/number}","contents_url":"https://api.github.com/repos/buchgr/benchmark/contents/{+path}","compare_url":"https://api.github.com/repos/buchgr/benchmark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/buchgr/benchmark/merges","archive_url":"https://api.github.com/repos/buchgr/benchmark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/buchgr/benchmark/downloads","issues_url":"https://api.github.com/repos/buchgr/benchmark/issues{/number}","pulls_url":"https://api.github.com/repos/buchgr/benchmark/pulls{/number}","milestones_url":"https://api.github.com/repos/buchgr/benchmark/milestones{/number}","notifications_url":"https://api.github.com/repos/buchgr/benchmark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/buchgr/benchmark/labels{/name}","releases_url":"https://api.github.com/repos/buchgr/benchmark/releases{/id}","deployments_url":"https://api.github.com/repos/buchgr/benchmark/deployments","created_at":"2016-02-15T13:20:26Z","updated_at":"2016-02-15T13:20:27Z","pushed_at":"2016-02-15T13:30:50Z","git_url":"git://github.com/buchgr/benchmark.git","ssh_url":"git@github.com:buchgr/benchmark.git","clone_url":"https://github.com/buchgr/benchmark.git","svn_url":"https://github.com/buchgr/benchmark","homepage":"","size":463,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"google:master","ref":"master","sha":"bdb9f697d77bdf399569a3d5872d4c2d12fa458a","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":15122806,"name":"benchmark","full_name":"google/benchmark","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/benchmark","description":"A microbenchmark support library","fork":false,"url":"https://api.github.com/repos/google/benchmark","forks_url":"https://api.github.com/repos/google/benchmark/forks","keys_url":"https://api.github.com/repos/google/benchmark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/benchmark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/benchmark/teams","hooks_url":"https://api.github.com/repos/google/benchmark/hooks","issue_events_url":"https://api.github.com/repos/google/benchmark/issues/events{/number}","events_url":"https://api.github.com/repos/google/benchmark/events","assignees_url":"https://api.github.com/repos/google/benchmark/assignees{/user}","branches_url":"https://api.github.com/repos/google/benchmark/branches{/branch}","tags_url":"https://api.github.com/repos/google/benchmark/tags","blobs_url":"https://api.github.com/repos/google/benchmark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/benchmark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/benchmark/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/benchmark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/benchmark/statuses/{sha}","languages_url":"https://api.github.com/repos/google/benchmark/languages","stargazers_url":"https://api.github.com/repos/google/benchmark/stargazers","contributors_url":"https://api.github.com/repos/google/benchmark/contributors","subscribers_url":"https://api.github.com/repos/google/benchmark/subscribers","subscription_url":"https://api.github.com/repos/google/benchmark/subscription","commits_url":"https://api.github.com/repos/google/benchmark/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/benchmark/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/benchmark/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/benchmark/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/benchmark/contents/{+path}","compare_url":"https://api.github.com/repos/google/benchmark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/benchmark/merges","archive_url":"https://api.github.com/repos/google/benchmark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/benchmark/downloads","issues_url":"https://api.github.com/repos/google/benchmark/issues{/number}","pulls_url":"https://api.github.com/repos/google/benchmark/pulls{/number}","milestones_url":"https://api.github.com/repos/google/benchmark/milestones{/number}","notifications_url":"https://api.github.com/repos/google/benchmark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/benchmark/labels{/name}","releases_url":"https://api.github.com/repos/google/benchmark/releases{/id}","deployments_url":"https://api.github.com/repos/google/benchmark/deployments","created_at":"2013-12-12T00:10:48Z","updated_at":"2016-02-14T18:18:11Z","pushed_at":"2016-02-15T13:31:26Z","git_url":"git://github.com/google/benchmark.git","ssh_url":"git@github.com:google/benchmark.git","clone_url":"https://github.com/google/benchmark.git","svn_url":"https://github.com/google/benchmark","homepage":"","size":961,"stargazers_count":742,"watchers_count":742,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":126,"mirror_url":null,"open_issues_count":18,"forks":126,"open_issues":18,"watchers":742,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/benchmark/pulls/182"},"html":{"href":"https://github.com/google/benchmark/pull/182"},"issue":{"href":"https://api.github.com/repos/google/benchmark/issues/182"},"comments":{"href":"https://api.github.com/repos/google/benchmark/issues/182/comments"},"review_comments":{"href":"https://api.github.com/repos/google/benchmark/pulls/182/comments"},"review_comment":{"href":"https://api.github.com/repos/google/benchmark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/benchmark/pulls/182/commits"},"statuses":{"href":"https://api.github.com/repos/google/benchmark/statuses/23e92296454aa279cf3b239450c14e83f30177cc"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":3,"changed_files":2}}