{"action":"created","comment":{"url":"https://api.github.com/repos/go-gitea/gitea/pulls/comments/207250471","pull_request_review_id":142823540,"id":207250471,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzI1MDQ3MQ==","diff_hunk":"@@ -773,6 +774,7 @@ func NewContext() {\n \tAppDataPath = sec.Key(\"APP_DATA_PATH\").MustString(path.Join(AppWorkPath, \"data\"))\n \tEnableGzip = sec.Key(\"ENABLE_GZIP\").MustBool()\n \tEnablePprof = sec.Key(\"ENABLE_PPROF\").MustBool(false)\n+\tPprofDataPath = sec.Key(\"PPROF_DATA_PATH\").MustString(path.Join(AppWorkPath, \"data/tmp/pprof\"))","path":"modules/setting/setting.go","position":12,"original_position":12,"commit_id":"88933945b60794ba0ef430632b50509c7217b5ee","original_commit_id":"88933945b60794ba0ef430632b50509c7217b5ee","user":{"login":"lafriks","id":165205,"node_id":"MDQ6VXNlcjE2NTIwNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/165205?v=4","gravatar_id":"","url":"https://api.github.com/users/lafriks","html_url":"https://github.com/lafriks","followers_url":"https://api.github.com/users/lafriks/followers","following_url":"https://api.github.com/users/lafriks/following{/other_user}","gists_url":"https://api.github.com/users/lafriks/gists{/gist_id}","starred_url":"https://api.github.com/users/lafriks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lafriks/subscriptions","organizations_url":"https://api.github.com/users/lafriks/orgs","repos_url":"https://api.github.com/users/lafriks/repos","events_url":"https://api.github.com/users/lafriks/events{/privacy}","received_events_url":"https://api.github.com/users/lafriks/received_events","type":"User","site_admin":false},"body":"After this line you also need:\r\n```\r\nif !filepath.IsAbs(PprofDataPath) {\r\n\t\tPprofDataPath = filepath.Join(AppWorkPath, PprofDataPath)\r\n}\r\n```","created_at":"2018-08-02T14:35:40Z","updated_at":"2018-08-02T14:36:43Z","html_url":"https://github.com/go-gitea/gitea/pull/4560#discussion_r207250471","pull_request_url":"https://api.github.com/repos/go-gitea/gitea/pulls/4560","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/comments/207250471"},"html":{"href":"https://github.com/go-gitea/gitea/pull/4560#discussion_r207250471"},"pull_request":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/4560"}}},"pull_request":{"url":"https://api.github.com/repos/go-gitea/gitea/pulls/4560","id":204877938,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0ODc3OTM4","html_url":"https://github.com/go-gitea/gitea/pull/4560","diff_url":"https://github.com/go-gitea/gitea/pull/4560.diff","patch_url":"https://github.com/go-gitea/gitea/pull/4560.patch","issue_url":"https://api.github.com/repos/go-gitea/gitea/issues/4560","number":4560,"state":"open","locked":false,"title":"cmd/serve: pprof cpu and memory profile dumps to disk","user":{"login":"xor-gate","id":1050166,"node_id":"MDQ6VXNlcjEwNTAxNjY=","avatar_url":"https://avatars1.githubusercontent.com/u/1050166?v=4","gravatar_id":"","url":"https://api.github.com/users/xor-gate","html_url":"https://github.com/xor-gate","followers_url":"https://api.github.com/users/xor-gate/followers","following_url":"https://api.github.com/users/xor-gate/following{/other_user}","gists_url":"https://api.github.com/users/xor-gate/gists{/gist_id}","starred_url":"https://api.github.com/users/xor-gate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xor-gate/subscriptions","organizations_url":"https://api.github.com/users/xor-gate/orgs","repos_url":"https://api.github.com/users/xor-gate/repos","events_url":"https://api.github.com/users/xor-gate/events{/privacy}","received_events_url":"https://api.github.com/users/xor-gate/received_events","type":"User","site_admin":false},"body":"Tracing memory usage with pprof dumps to disk for serve command which can help to find memory problems with issue #4450 ","created_at":"2018-07-30T17:39:06Z","updated_at":"2018-08-02T14:36:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"982f4a5a183aae1bd11153815c86828563851213","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":475283844,"node_id":"MDU6TGFiZWw0NzUyODM4NDQ=","url":"https://api.github.com/repos/go-gitea/gitea/labels/lgtm/need%201","name":"lgtm/need 1","color":"f9d0c4","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/go-gitea/gitea/pulls/4560/commits","review_comments_url":"https://api.github.com/repos/go-gitea/gitea/pulls/4560/comments","review_comment_url":"https://api.github.com/repos/go-gitea/gitea/pulls/comments{/number}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/4560/comments","statuses_url":"https://api.github.com/repos/go-gitea/gitea/statuses/88933945b60794ba0ef430632b50509c7217b5ee","head":{"label":"xor-gate:issue-4450","ref":"issue-4450","sha":"88933945b60794ba0ef430632b50509c7217b5ee","user":{"login":"xor-gate","id":1050166,"node_id":"MDQ6VXNlcjEwNTAxNjY=","avatar_url":"https://avatars1.githubusercontent.com/u/1050166?v=4","gravatar_id":"","url":"https://api.github.com/users/xor-gate","html_url":"https://github.com/xor-gate","followers_url":"https://api.github.com/users/xor-gate/followers","following_url":"https://api.github.com/users/xor-gate/following{/other_user}","gists_url":"https://api.github.com/users/xor-gate/gists{/gist_id}","starred_url":"https://api.github.com/users/xor-gate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xor-gate/subscriptions","organizations_url":"https://api.github.com/users/xor-gate/orgs","repos_url":"https://api.github.com/users/xor-gate/repos","events_url":"https://api.github.com/users/xor-gate/events{/privacy}","received_events_url":"https://api.github.com/users/xor-gate/received_events","type":"User","site_admin":false},"repo":{"id":142903249,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI5MDMyNDk=","name":"gitea","full_name":"xor-gate/gitea","owner":{"login":"xor-gate","id":1050166,"node_id":"MDQ6VXNlcjEwNTAxNjY=","avatar_url":"https://avatars1.githubusercontent.com/u/1050166?v=4","gravatar_id":"","url":"https://api.github.com/users/xor-gate","html_url":"https://github.com/xor-gate","followers_url":"https://api.github.com/users/xor-gate/followers","following_url":"https://api.github.com/users/xor-gate/following{/other_user}","gists_url":"https://api.github.com/users/xor-gate/gists{/gist_id}","starred_url":"https://api.github.com/users/xor-gate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xor-gate/subscriptions","organizations_url":"https://api.github.com/users/xor-gate/orgs","repos_url":"https://api.github.com/users/xor-gate/repos","events_url":"https://api.github.com/users/xor-gate/events{/privacy}","received_events_url":"https://api.github.com/users/xor-gate/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xor-gate/gitea","description":"Git with a cup of tea, painless self-hosted git service","fork":true,"url":"https://api.github.com/repos/xor-gate/gitea","forks_url":"https://api.github.com/repos/xor-gate/gitea/forks","keys_url":"https://api.github.com/repos/xor-gate/gitea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xor-gate/gitea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xor-gate/gitea/teams","hooks_url":"https://api.github.com/repos/xor-gate/gitea/hooks","issue_events_url":"https://api.github.com/repos/xor-gate/gitea/issues/events{/number}","events_url":"https://api.github.com/repos/xor-gate/gitea/events","assignees_url":"https://api.github.com/repos/xor-gate/gitea/assignees{/user}","branches_url":"https://api.github.com/repos/xor-gate/gitea/branches{/branch}","tags_url":"https://api.github.com/repos/xor-gate/gitea/tags","blobs_url":"https://api.github.com/repos/xor-gate/gitea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xor-gate/gitea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xor-gate/gitea/git/refs{/sha}","trees_url":"https://api.github.com/repos/xor-gate/gitea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xor-gate/gitea/statuses/{sha}","languages_url":"https://api.github.com/repos/xor-gate/gitea/languages","stargazers_url":"https://api.github.com/repos/xor-gate/gitea/stargazers","contributors_url":"https://api.github.com/repos/xor-gate/gitea/contributors","subscribers_url":"https://api.github.com/repos/xor-gate/gitea/subscribers","subscription_url":"https://api.github.com/repos/xor-gate/gitea/subscription","commits_url":"https://api.github.com/repos/xor-gate/gitea/commits{/sha}","git_commits_url":"https://api.github.com/repos/xor-gate/gitea/git/commits{/sha}","comments_url":"https://api.github.com/repos/xor-gate/gitea/comments{/number}","issue_comment_url":"https://api.github.com/repos/xor-gate/gitea/issues/comments{/number}","contents_url":"https://api.github.com/repos/xor-gate/gitea/contents/{+path}","compare_url":"https://api.github.com/repos/xor-gate/gitea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xor-gate/gitea/merges","archive_url":"https://api.github.com/repos/xor-gate/gitea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xor-gate/gitea/downloads","issues_url":"https://api.github.com/repos/xor-gate/gitea/issues{/number}","pulls_url":"https://api.github.com/repos/xor-gate/gitea/pulls{/number}","milestones_url":"https://api.github.com/repos/xor-gate/gitea/milestones{/number}","notifications_url":"https://api.github.com/repos/xor-gate/gitea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xor-gate/gitea/labels{/name}","releases_url":"https://api.github.com/repos/xor-gate/gitea/releases{/id}","deployments_url":"https://api.github.com/repos/xor-gate/gitea/deployments","created_at":"2018-07-30T16:50:54Z","updated_at":"2018-07-30T16:50:59Z","pushed_at":"2018-08-01T10:13:21Z","git_url":"git://github.com/xor-gate/gitea.git","ssh_url":"git@github.com:xor-gate/gitea.git","clone_url":"https://github.com/xor-gate/gitea.git","svn_url":"https://github.com/xor-gate/gitea","homepage":"https://gitea.io","size":117956,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"go-gitea:master","ref":"master","sha":"d57233680b71925f3812be885df479bb98cddf9c","user":{"login":"go-gitea","id":12724356,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzI0MzU2","avatar_url":"https://avatars1.githubusercontent.com/u/12724356?v=4","gravatar_id":"","url":"https://api.github.com/users/go-gitea","html_url":"https://github.com/go-gitea","followers_url":"https://api.github.com/users/go-gitea/followers","following_url":"https://api.github.com/users/go-gitea/following{/other_user}","gists_url":"https://api.github.com/users/go-gitea/gists{/gist_id}","starred_url":"https://api.github.com/users/go-gitea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-gitea/subscriptions","organizations_url":"https://api.github.com/users/go-gitea/orgs","repos_url":"https://api.github.com/users/go-gitea/repos","events_url":"https://api.github.com/users/go-gitea/events{/privacy}","received_events_url":"https://api.github.com/users/go-gitea/received_events","type":"Organization","site_admin":false},"repo":{"id":72495579,"node_id":"MDEwOlJlcG9zaXRvcnk3MjQ5NTU3OQ==","name":"gitea","full_name":"go-gitea/gitea","owner":{"login":"go-gitea","id":12724356,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzI0MzU2","avatar_url":"https://avatars1.githubusercontent.com/u/12724356?v=4","gravatar_id":"","url":"https://api.github.com/users/go-gitea","html_url":"https://github.com/go-gitea","followers_url":"https://api.github.com/users/go-gitea/followers","following_url":"https://api.github.com/users/go-gitea/following{/other_user}","gists_url":"https://api.github.com/users/go-gitea/gists{/gist_id}","starred_url":"https://api.github.com/users/go-gitea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-gitea/subscriptions","organizations_url":"https://api.github.com/users/go-gitea/orgs","repos_url":"https://api.github.com/users/go-gitea/repos","events_url":"https://api.github.com/users/go-gitea/events{/privacy}","received_events_url":"https://api.github.com/users/go-gitea/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-gitea/gitea","description":"Git with a cup of tea, painless self-hosted git service","fork":false,"url":"https://api.github.com/repos/go-gitea/gitea","forks_url":"https://api.github.com/repos/go-gitea/gitea/forks","keys_url":"https://api.github.com/repos/go-gitea/gitea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-gitea/gitea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-gitea/gitea/teams","hooks_url":"https://api.github.com/repos/go-gitea/gitea/hooks","issue_events_url":"https://api.github.com/repos/go-gitea/gitea/issues/events{/number}","events_url":"https://api.github.com/repos/go-gitea/gitea/events","assignees_url":"https://api.github.com/repos/go-gitea/gitea/assignees{/user}","branches_url":"https://api.github.com/repos/go-gitea/gitea/branches{/branch}","tags_url":"https://api.github.com/repos/go-gitea/gitea/tags","blobs_url":"https://api.github.com/repos/go-gitea/gitea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-gitea/gitea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-gitea/gitea/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-gitea/gitea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-gitea/gitea/statuses/{sha}","languages_url":"https://api.github.com/repos/go-gitea/gitea/languages","stargazers_url":"https://api.github.com/repos/go-gitea/gitea/stargazers","contributors_url":"https://api.github.com/repos/go-gitea/gitea/contributors","subscribers_url":"https://api.github.com/repos/go-gitea/gitea/subscribers","subscription_url":"https://api.github.com/repos/go-gitea/gitea/subscription","commits_url":"https://api.github.com/repos/go-gitea/gitea/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-gitea/gitea/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-gitea/gitea/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-gitea/gitea/issues/comments{/number}","contents_url":"https://api.github.com/repos/go-gitea/gitea/contents/{+path}","compare_url":"https://api.github.com/repos/go-gitea/gitea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-gitea/gitea/merges","archive_url":"https://api.github.com/repos/go-gitea/gitea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-gitea/gitea/downloads","issues_url":"https://api.github.com/repos/go-gitea/gitea/issues{/number}","pulls_url":"https://api.github.com/repos/go-gitea/gitea/pulls{/number}","milestones_url":"https://api.github.com/repos/go-gitea/gitea/milestones{/number}","notifications_url":"https://api.github.com/repos/go-gitea/gitea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-gitea/gitea/labels{/name}","releases_url":"https://api.github.com/repos/go-gitea/gitea/releases{/id}","deployments_url":"https://api.github.com/repos/go-gitea/gitea/deployments","created_at":"2016-11-01T02:13:26Z","updated_at":"2018-08-02T13:49:23Z","pushed_at":"2018-08-02T14:34:10Z","git_url":"git://github.com/go-gitea/gitea.git","ssh_url":"git@github.com:go-gitea/gitea.git","clone_url":"https://github.com/go-gitea/gitea.git","svn_url":"https://github.com/go-gitea/gitea","homepage":"https://gitea.io","size":117956,"stargazers_count":9273,"watchers_count":9273,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":887,"mirror_url":null,"archived":false,"open_issues_count":938,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":887,"open_issues":938,"watchers":9273,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/4560"},"html":{"href":"https://github.com/go-gitea/gitea/pull/4560"},"issue":{"href":"https://api.github.com/repos/go-gitea/gitea/issues/4560"},"comments":{"href":"https://api.github.com/repos/go-gitea/gitea/issues/4560/comments"},"review_comments":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/4560/comments"},"review_comment":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/4560/commits"},"statuses":{"href":"https://api.github.com/repos/go-gitea/gitea/statuses/88933945b60794ba0ef430632b50509c7217b5ee"}},"author_association":"NONE"}}
{"actor":{"display_login":"lafriks"}}