{"action":"created","comment":{"url":"https://api.github.com/repos/neovim/neovim/pulls/comments/28425164","id":28425164,"diff_hunk":"@@ -764,9 +764,13 @@ void ex_profile(exarg_T *eap)\n     do_profiling = PROF_YES;\n     profile_set_wait(profile_zero());\n     set_vim_var_nr(VV_PROFILING, 1L);\n-  } else if (do_profiling == PROF_NONE)\n+  } else if (do_profiling == PROF_NONE) {\n     EMSG(_(\"E750: First use \\\":profile start {fname}\\\"\"));\n-  else if (STRCMP(eap->arg, \"pause\") == 0) {\n+  } else if (STRCMP(eap->arg, \"stop\") == 0) {\n+    profile_dump();\n+    do_profiling = PROF_NONE;\n+    set_vim_var_nr(VV_PROFILING, 0L);","path":"src/nvim/ex_cmds2.c","position":11,"original_position":11,"commit_id":"d24745c606b9887199d2866486c49560f870d5bd","original_commit_id":"d24745c606b9887199d2866486c49560f870d5bd","user":{"login":"oni-link","id":2077655,"avatar_url":"https://avatars.githubusercontent.com/u/2077655?v=3","gravatar_id":"","url":"https://api.github.com/users/oni-link","html_url":"https://github.com/oni-link","followers_url":"https://api.github.com/users/oni-link/followers","following_url":"https://api.github.com/users/oni-link/following{/other_user}","gists_url":"https://api.github.com/users/oni-link/gists{/gist_id}","starred_url":"https://api.github.com/users/oni-link/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oni-link/subscriptions","organizations_url":"https://api.github.com/users/oni-link/orgs","repos_url":"https://api.github.com/users/oni-link/repos","events_url":"https://api.github.com/users/oni-link/events{/privacy}","received_events_url":"https://api.github.com/users/oni-link/received_events","type":"User","site_admin":false},"body":"`profile_fname` also needs to be freed.","created_at":"2015-04-15T14:39:32Z","updated_at":"2015-04-15T14:39:32Z","html_url":"https://github.com/neovim/neovim/pull/2427#discussion_r28425164","pull_request_url":"https://api.github.com/repos/neovim/neovim/pulls/2427","_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments/28425164"},"html":{"href":"https://github.com/neovim/neovim/pull/2427#discussion_r28425164"},"pull_request":{"href":"https://api.github.com/repos/neovim/neovim/pulls/2427"}}},"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/2427","id":33269813,"html_url":"https://github.com/neovim/neovim/pull/2427","diff_url":"https://github.com/neovim/neovim/pull/2427.diff","patch_url":"https://github.com/neovim/neovim/pull/2427.patch","issue_url":"https://api.github.com/repos/neovim/neovim/issues/2427","number":2427,"state":"open","locked":false,"title":"[RFC] Add \":profile dump\"","user":{"login":"mhinz","id":972014,"avatar_url":"https://avatars.githubusercontent.com/u/972014?v=3","gravatar_id":"","url":"https://api.github.com/users/mhinz","html_url":"https://github.com/mhinz","followers_url":"https://api.github.com/users/mhinz/followers","following_url":"https://api.github.com/users/mhinz/following{/other_user}","gists_url":"https://api.github.com/users/mhinz/gists{/gist_id}","starred_url":"https://api.github.com/users/mhinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhinz/subscriptions","organizations_url":"https://api.github.com/users/mhinz/orgs","repos_url":"https://api.github.com/users/mhinz/repos","events_url":"https://api.github.com/users/mhinz/events{/privacy}","received_events_url":"https://api.github.com/users/mhinz/received_events","type":"User","site_admin":false},"body":"Currently the logfile (\":profile start {logfile}\") only gets written when Vim\r\nexits. This new command allows to dump the log immediately without exiting.","created_at":"2015-04-14T15:35:56Z","updated_at":"2015-04-15T14:39:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be4a3d0b66b8f5312c9242c07c37d407880d407d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neovim/neovim/pulls/2427/commits","review_comments_url":"https://api.github.com/repos/neovim/neovim/pulls/2427/comments","review_comment_url":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/2427/comments","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/d24745c606b9887199d2866486c49560f870d5bd","head":{"label":"mhinz:add-profile-dump","ref":"add-profile-dump","sha":"d24745c606b9887199d2866486c49560f870d5bd","user":{"login":"mhinz","id":972014,"avatar_url":"https://avatars.githubusercontent.com/u/972014?v=3","gravatar_id":"","url":"https://api.github.com/users/mhinz","html_url":"https://github.com/mhinz","followers_url":"https://api.github.com/users/mhinz/followers","following_url":"https://api.github.com/users/mhinz/following{/other_user}","gists_url":"https://api.github.com/users/mhinz/gists{/gist_id}","starred_url":"https://api.github.com/users/mhinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhinz/subscriptions","organizations_url":"https://api.github.com/users/mhinz/orgs","repos_url":"https://api.github.com/users/mhinz/repos","events_url":"https://api.github.com/users/mhinz/events{/privacy}","received_events_url":"https://api.github.com/users/mhinz/received_events","type":"User","site_admin":false},"repo":{"id":33410656,"name":"neovim","full_name":"mhinz/neovim","owner":{"login":"mhinz","id":972014,"avatar_url":"https://avatars.githubusercontent.com/u/972014?v=3","gravatar_id":"","url":"https://api.github.com/users/mhinz","html_url":"https://github.com/mhinz","followers_url":"https://api.github.com/users/mhinz/followers","following_url":"https://api.github.com/users/mhinz/following{/other_user}","gists_url":"https://api.github.com/users/mhinz/gists{/gist_id}","starred_url":"https://api.github.com/users/mhinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhinz/subscriptions","organizations_url":"https://api.github.com/users/mhinz/orgs","repos_url":"https://api.github.com/users/mhinz/repos","events_url":"https://api.github.com/users/mhinz/events{/privacy}","received_events_url":"https://api.github.com/users/mhinz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mhinz/neovim","description":"vim out of the box","fork":true,"url":"https://api.github.com/repos/mhinz/neovim","forks_url":"https://api.github.com/repos/mhinz/neovim/forks","keys_url":"https://api.github.com/repos/mhinz/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mhinz/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mhinz/neovim/teams","hooks_url":"https://api.github.com/repos/mhinz/neovim/hooks","issue_events_url":"https://api.github.com/repos/mhinz/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/mhinz/neovim/events","assignees_url":"https://api.github.com/repos/mhinz/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/mhinz/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/mhinz/neovim/tags","blobs_url":"https://api.github.com/repos/mhinz/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mhinz/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mhinz/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/mhinz/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mhinz/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/mhinz/neovim/languages","stargazers_url":"https://api.github.com/repos/mhinz/neovim/stargazers","contributors_url":"https://api.github.com/repos/mhinz/neovim/contributors","subscribers_url":"https://api.github.com/repos/mhinz/neovim/subscribers","subscription_url":"https://api.github.com/repos/mhinz/neovim/subscription","commits_url":"https://api.github.com/repos/mhinz/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/mhinz/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/mhinz/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/mhinz/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/mhinz/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/mhinz/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mhinz/neovim/merges","archive_url":"https://api.github.com/repos/mhinz/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mhinz/neovim/downloads","issues_url":"https://api.github.com/repos/mhinz/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/mhinz/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/mhinz/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/mhinz/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mhinz/neovim/labels{/name}","releases_url":"https://api.github.com/repos/mhinz/neovim/releases{/id}","created_at":"2015-04-04T15:45:31Z","updated_at":"2015-04-04T15:45:37Z","pushed_at":"2015-04-15T00:29:22Z","git_url":"git://github.com/mhinz/neovim.git","ssh_url":"git@github.com:mhinz/neovim.git","clone_url":"https://github.com/mhinz/neovim.git","svn_url":"https://github.com/mhinz/neovim","homepage":"http://neovim.org","size":29329,"stargazers_count":0,"watchers_count":0,"language":"VimL","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":"neovim:master","ref":"master","sha":"a86193d88edda899dd9859c21554fd6e17cdcb3e","user":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"repo":{"id":16408992,"name":"neovim","full_name":"neovim/neovim","owner":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neovim/neovim","description":"vim out of the box","fork":false,"url":"https://api.github.com/repos/neovim/neovim","forks_url":"https://api.github.com/repos/neovim/neovim/forks","keys_url":"https://api.github.com/repos/neovim/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neovim/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neovim/neovim/teams","hooks_url":"https://api.github.com/repos/neovim/neovim/hooks","issue_events_url":"https://api.github.com/repos/neovim/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/neovim/neovim/events","assignees_url":"https://api.github.com/repos/neovim/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/neovim/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/neovim/neovim/tags","blobs_url":"https://api.github.com/repos/neovim/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neovim/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neovim/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/neovim/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/neovim/neovim/languages","stargazers_url":"https://api.github.com/repos/neovim/neovim/stargazers","contributors_url":"https://api.github.com/repos/neovim/neovim/contributors","subscribers_url":"https://api.github.com/repos/neovim/neovim/subscribers","subscription_url":"https://api.github.com/repos/neovim/neovim/subscription","commits_url":"https://api.github.com/repos/neovim/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/neovim/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/neovim/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/neovim/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/neovim/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/neovim/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neovim/neovim/merges","archive_url":"https://api.github.com/repos/neovim/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neovim/neovim/downloads","issues_url":"https://api.github.com/repos/neovim/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/neovim/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/neovim/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/neovim/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neovim/neovim/labels{/name}","releases_url":"https://api.github.com/repos/neovim/neovim/releases{/id}","created_at":"2014-01-31T13:39:22Z","updated_at":"2015-04-15T12:28:51Z","pushed_at":"2015-04-15T12:29:26Z","git_url":"git://github.com/neovim/neovim.git","ssh_url":"git@github.com:neovim/neovim.git","clone_url":"https://github.com/neovim/neovim.git","svn_url":"https://github.com/neovim/neovim","homepage":"http://neovim.org","size":66442,"stargazers_count":12901,"watchers_count":12901,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":871,"mirror_url":null,"open_issues_count":440,"forks":871,"open_issues":440,"watchers":12901,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/2427"},"html":{"href":"https://github.com/neovim/neovim/pull/2427"},"issue":{"href":"https://api.github.com/repos/neovim/neovim/issues/2427"},"comments":{"href":"https://api.github.com/repos/neovim/neovim/issues/2427/comments"},"review_comments":{"href":"https://api.github.com/repos/neovim/neovim/pulls/2427/comments"},"review_comment":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neovim/neovim/pulls/2427/commits"},"statuses":{"href":"https://api.github.com/repos/neovim/neovim/statuses/d24745c606b9887199d2866486c49560f870d5bd"}}}}