{"action":"created","comment":{"url":"https://api.github.com/repos/screepers/typed-screeps/pulls/comments/174628188","pull_request_review_id":104020107,"id":174628188,"diff_hunk":"@@ -64,6 +64,31 @@ interface CPU {\n      * @memberof CPU\n      */\n     setShardLimits(limits: CPUShardLimits): OK | ERR_BUSY | ERR_INVALID_ARGS;\n+\n+    /**\n+     * Use this method to get heap statistics for your virtual machine.\n+     *\n+     * This method will be undefined if you are not using IVM.\n+     *\n+     * The return value is almost identical to the Node.js function v8.getHeapStatistics().\n+     * This function returns one additional property: externally_allocated_size which is the total amount of currently\n+     * allocated memory which is not included in the v8 heap but counts against this isolate's memory limit.\n+     * ArrayBuffer instances over a certain size are externally allocated and will be counted here.\n+     */\n+    getHeapStatistics?(): HeapStatistics;\n+}\n+\n+interface HeapStatistics {\n+  total_heap_size: number;\n+  total_heap_size_executable: number;\n+  total_physical_size: number;\n+  total_available_size: number;\n+  used_heap_size: number;\n+  heap_size_limit: number;\n+  malloced_memory: number;\n+  peak_malloced_memory: number;\n+  does_zap_garbage: number;","path":"src/helpers.ts","position":27,"original_position":27,"commit_id":"2acb30217a5059eb547ab25e55c9b48bc8cd3e0c","original_commit_id":"2acb30217a5059eb547ab25e55c9b48bc8cd3e0c","user":{"login":"apemanzilla","id":5429337,"avatar_url":"https://avatars1.githubusercontent.com/u/5429337?v=4","gravatar_id":"","url":"https://api.github.com/users/apemanzilla","html_url":"https://github.com/apemanzilla","followers_url":"https://api.github.com/users/apemanzilla/followers","following_url":"https://api.github.com/users/apemanzilla/following{/other_user}","gists_url":"https://api.github.com/users/apemanzilla/gists{/gist_id}","starred_url":"https://api.github.com/users/apemanzilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apemanzilla/subscriptions","organizations_url":"https://api.github.com/users/apemanzilla/orgs","repos_url":"https://api.github.com/users/apemanzilla/repos","events_url":"https://api.github.com/users/apemanzilla/events{/privacy}","received_events_url":"https://api.github.com/users/apemanzilla/received_events","type":"User","site_admin":false},"body":"Type for `does_zap_garbage` should be `0 | 1`","created_at":"2018-03-14T22:21:36Z","updated_at":"2018-03-14T22:21:45Z","html_url":"https://github.com/screepers/typed-screeps/pull/55#discussion_r174628188","pull_request_url":"https://api.github.com/repos/screepers/typed-screeps/pulls/55","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/screepers/typed-screeps/pulls/comments/174628188"},"html":{"href":"https://github.com/screepers/typed-screeps/pull/55#discussion_r174628188"},"pull_request":{"href":"https://api.github.com/repos/screepers/typed-screeps/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/screepers/typed-screeps/pulls/55","id":174925076,"html_url":"https://github.com/screepers/typed-screeps/pull/55","diff_url":"https://github.com/screepers/typed-screeps/pull/55.diff","patch_url":"https://github.com/screepers/typed-screeps/pull/55.patch","issue_url":"https://api.github.com/repos/screepers/typed-screeps/issues/55","number":55,"state":"open","locked":false,"title":"add typings for IVM","user":{"login":"Arcath","id":19609,"avatar_url":"https://avatars1.githubusercontent.com/u/19609?v=4","gravatar_id":"","url":"https://api.github.com/users/Arcath","html_url":"https://github.com/Arcath","followers_url":"https://api.github.com/users/Arcath/followers","following_url":"https://api.github.com/users/Arcath/following{/other_user}","gists_url":"https://api.github.com/users/Arcath/gists{/gist_id}","starred_url":"https://api.github.com/users/Arcath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arcath/subscriptions","organizations_url":"https://api.github.com/users/Arcath/orgs","repos_url":"https://api.github.com/users/Arcath/repos","events_url":"https://api.github.com/users/Arcath/events{/privacy}","received_events_url":"https://api.github.com/users/Arcath/received_events","type":"User","site_admin":false},"body":"### Brief Description\r\n\r\nAdds Typings for the new IVM runtime.\r\n\r\n### Checklists\r\n\r\n- [x] Test passed\r\n- [x] Coding style (indentation, etc)\r\n- [x] Edits have been made to `src/` files not `index.d.ts`\r\n","created_at":"2018-03-14T11:24:31Z","updated_at":"2018-03-14T22:21:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe81a8c6e20b1586a6e937d7001bf12efa71df42","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/screepers/typed-screeps/pulls/55/commits","review_comments_url":"https://api.github.com/repos/screepers/typed-screeps/pulls/55/comments","review_comment_url":"https://api.github.com/repos/screepers/typed-screeps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/screepers/typed-screeps/issues/55/comments","statuses_url":"https://api.github.com/repos/screepers/typed-screeps/statuses/2acb30217a5059eb547ab25e55c9b48bc8cd3e0c","head":{"label":"screepers:ivm","ref":"ivm","sha":"2acb30217a5059eb547ab25e55c9b48bc8cd3e0c","user":{"login":"screepers","id":19614955,"avatar_url":"https://avatars0.githubusercontent.com/u/19614955?v=4","gravatar_id":"","url":"https://api.github.com/users/screepers","html_url":"https://github.com/screepers","followers_url":"https://api.github.com/users/screepers/followers","following_url":"https://api.github.com/users/screepers/following{/other_user}","gists_url":"https://api.github.com/users/screepers/gists{/gist_id}","starred_url":"https://api.github.com/users/screepers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screepers/subscriptions","organizations_url":"https://api.github.com/users/screepers/orgs","repos_url":"https://api.github.com/users/screepers/repos","events_url":"https://api.github.com/users/screepers/events{/privacy}","received_events_url":"https://api.github.com/users/screepers/received_events","type":"Organization","site_admin":false},"repo":{"id":92635159,"name":"typed-screeps","full_name":"screepers/typed-screeps","owner":{"login":"screepers","id":19614955,"avatar_url":"https://avatars0.githubusercontent.com/u/19614955?v=4","gravatar_id":"","url":"https://api.github.com/users/screepers","html_url":"https://github.com/screepers","followers_url":"https://api.github.com/users/screepers/followers","following_url":"https://api.github.com/users/screepers/following{/other_user}","gists_url":"https://api.github.com/users/screepers/gists{/gist_id}","starred_url":"https://api.github.com/users/screepers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screepers/subscriptions","organizations_url":"https://api.github.com/users/screepers/orgs","repos_url":"https://api.github.com/users/screepers/repos","events_url":"https://api.github.com/users/screepers/events{/privacy}","received_events_url":"https://api.github.com/users/screepers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/screepers/typed-screeps","description":"Strong TypeScript declarations for the game Screeps.","fork":false,"url":"https://api.github.com/repos/screepers/typed-screeps","forks_url":"https://api.github.com/repos/screepers/typed-screeps/forks","keys_url":"https://api.github.com/repos/screepers/typed-screeps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/screepers/typed-screeps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/screepers/typed-screeps/teams","hooks_url":"https://api.github.com/repos/screepers/typed-screeps/hooks","issue_events_url":"https://api.github.com/repos/screepers/typed-screeps/issues/events{/number}","events_url":"https://api.github.com/repos/screepers/typed-screeps/events","assignees_url":"https://api.github.com/repos/screepers/typed-screeps/assignees{/user}","branches_url":"https://api.github.com/repos/screepers/typed-screeps/branches{/branch}","tags_url":"https://api.github.com/repos/screepers/typed-screeps/tags","blobs_url":"https://api.github.com/repos/screepers/typed-screeps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/screepers/typed-screeps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/screepers/typed-screeps/git/refs{/sha}","trees_url":"https://api.github.com/repos/screepers/typed-screeps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/screepers/typed-screeps/statuses/{sha}","languages_url":"https://api.github.com/repos/screepers/typed-screeps/languages","stargazers_url":"https://api.github.com/repos/screepers/typed-screeps/stargazers","contributors_url":"https://api.github.com/repos/screepers/typed-screeps/contributors","subscribers_url":"https://api.github.com/repos/screepers/typed-screeps/subscribers","subscription_url":"https://api.github.com/repos/screepers/typed-screeps/subscription","commits_url":"https://api.github.com/repos/screepers/typed-screeps/commits{/sha}","git_commits_url":"https://api.github.com/repos/screepers/typed-screeps/git/commits{/sha}","comments_url":"https://api.github.com/repos/screepers/typed-screeps/comments{/number}","issue_comment_url":"https://api.github.com/repos/screepers/typed-screeps/issues/comments{/number}","contents_url":"https://api.github.com/repos/screepers/typed-screeps/contents/{+path}","compare_url":"https://api.github.com/repos/screepers/typed-screeps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/screepers/typed-screeps/merges","archive_url":"https://api.github.com/repos/screepers/typed-screeps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/screepers/typed-screeps/downloads","issues_url":"https://api.github.com/repos/screepers/typed-screeps/issues{/number}","pulls_url":"https://api.github.com/repos/screepers/typed-screeps/pulls{/number}","milestones_url":"https://api.github.com/repos/screepers/typed-screeps/milestones{/number}","notifications_url":"https://api.github.com/repos/screepers/typed-screeps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/screepers/typed-screeps/labels{/name}","releases_url":"https://api.github.com/repos/screepers/typed-screeps/releases{/id}","deployments_url":"https://api.github.com/repos/screepers/typed-screeps/deployments","created_at":"2017-05-28T02:19:49Z","updated_at":"2018-03-14T02:44:58Z","pushed_at":"2018-03-14T11:24:32Z","git_url":"git://github.com/screepers/typed-screeps.git","ssh_url":"git@github.com:screepers/typed-screeps.git","clone_url":"https://github.com/screepers/typed-screeps.git","svn_url":"https://github.com/screepers/typed-screeps","homepage":"","size":736,"stargazers_count":23,"watchers_count":23,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":13,"open_issues":5,"watchers":23,"default_branch":"master"}},"base":{"label":"screepers:master","ref":"master","sha":"bd86ec93b74daa04320044fa43cf8bca09e8ac89","user":{"login":"screepers","id":19614955,"avatar_url":"https://avatars0.githubusercontent.com/u/19614955?v=4","gravatar_id":"","url":"https://api.github.com/users/screepers","html_url":"https://github.com/screepers","followers_url":"https://api.github.com/users/screepers/followers","following_url":"https://api.github.com/users/screepers/following{/other_user}","gists_url":"https://api.github.com/users/screepers/gists{/gist_id}","starred_url":"https://api.github.com/users/screepers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screepers/subscriptions","organizations_url":"https://api.github.com/users/screepers/orgs","repos_url":"https://api.github.com/users/screepers/repos","events_url":"https://api.github.com/users/screepers/events{/privacy}","received_events_url":"https://api.github.com/users/screepers/received_events","type":"Organization","site_admin":false},"repo":{"id":92635159,"name":"typed-screeps","full_name":"screepers/typed-screeps","owner":{"login":"screepers","id":19614955,"avatar_url":"https://avatars0.githubusercontent.com/u/19614955?v=4","gravatar_id":"","url":"https://api.github.com/users/screepers","html_url":"https://github.com/screepers","followers_url":"https://api.github.com/users/screepers/followers","following_url":"https://api.github.com/users/screepers/following{/other_user}","gists_url":"https://api.github.com/users/screepers/gists{/gist_id}","starred_url":"https://api.github.com/users/screepers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screepers/subscriptions","organizations_url":"https://api.github.com/users/screepers/orgs","repos_url":"https://api.github.com/users/screepers/repos","events_url":"https://api.github.com/users/screepers/events{/privacy}","received_events_url":"https://api.github.com/users/screepers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/screepers/typed-screeps","description":"Strong TypeScript declarations for the game Screeps.","fork":false,"url":"https://api.github.com/repos/screepers/typed-screeps","forks_url":"https://api.github.com/repos/screepers/typed-screeps/forks","keys_url":"https://api.github.com/repos/screepers/typed-screeps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/screepers/typed-screeps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/screepers/typed-screeps/teams","hooks_url":"https://api.github.com/repos/screepers/typed-screeps/hooks","issue_events_url":"https://api.github.com/repos/screepers/typed-screeps/issues/events{/number}","events_url":"https://api.github.com/repos/screepers/typed-screeps/events","assignees_url":"https://api.github.com/repos/screepers/typed-screeps/assignees{/user}","branches_url":"https://api.github.com/repos/screepers/typed-screeps/branches{/branch}","tags_url":"https://api.github.com/repos/screepers/typed-screeps/tags","blobs_url":"https://api.github.com/repos/screepers/typed-screeps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/screepers/typed-screeps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/screepers/typed-screeps/git/refs{/sha}","trees_url":"https://api.github.com/repos/screepers/typed-screeps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/screepers/typed-screeps/statuses/{sha}","languages_url":"https://api.github.com/repos/screepers/typed-screeps/languages","stargazers_url":"https://api.github.com/repos/screepers/typed-screeps/stargazers","contributors_url":"https://api.github.com/repos/screepers/typed-screeps/contributors","subscribers_url":"https://api.github.com/repos/screepers/typed-screeps/subscribers","subscription_url":"https://api.github.com/repos/screepers/typed-screeps/subscription","commits_url":"https://api.github.com/repos/screepers/typed-screeps/commits{/sha}","git_commits_url":"https://api.github.com/repos/screepers/typed-screeps/git/commits{/sha}","comments_url":"https://api.github.com/repos/screepers/typed-screeps/comments{/number}","issue_comment_url":"https://api.github.com/repos/screepers/typed-screeps/issues/comments{/number}","contents_url":"https://api.github.com/repos/screepers/typed-screeps/contents/{+path}","compare_url":"https://api.github.com/repos/screepers/typed-screeps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/screepers/typed-screeps/merges","archive_url":"https://api.github.com/repos/screepers/typed-screeps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/screepers/typed-screeps/downloads","issues_url":"https://api.github.com/repos/screepers/typed-screeps/issues{/number}","pulls_url":"https://api.github.com/repos/screepers/typed-screeps/pulls{/number}","milestones_url":"https://api.github.com/repos/screepers/typed-screeps/milestones{/number}","notifications_url":"https://api.github.com/repos/screepers/typed-screeps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/screepers/typed-screeps/labels{/name}","releases_url":"https://api.github.com/repos/screepers/typed-screeps/releases{/id}","deployments_url":"https://api.github.com/repos/screepers/typed-screeps/deployments","created_at":"2017-05-28T02:19:49Z","updated_at":"2018-03-14T02:44:58Z","pushed_at":"2018-03-14T11:24:32Z","git_url":"git://github.com/screepers/typed-screeps.git","ssh_url":"git@github.com:screepers/typed-screeps.git","clone_url":"https://github.com/screepers/typed-screeps.git","svn_url":"https://github.com/screepers/typed-screeps","homepage":"","size":736,"stargazers_count":23,"watchers_count":23,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":13,"open_issues":5,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/screepers/typed-screeps/pulls/55"},"html":{"href":"https://github.com/screepers/typed-screeps/pull/55"},"issue":{"href":"https://api.github.com/repos/screepers/typed-screeps/issues/55"},"comments":{"href":"https://api.github.com/repos/screepers/typed-screeps/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/screepers/typed-screeps/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/screepers/typed-screeps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/screepers/typed-screeps/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/screepers/typed-screeps/statuses/2acb30217a5059eb547ab25e55c9b48bc8cd3e0c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"apemanzilla"}}