{"action":"created","comment":{"url":"https://api.github.com/repos/mono/mono/pulls/comments/43382604","id":43382604,"diff_hunk":"@@ -743,6 +789,38 @@ mono_profiler_class_loaded (MonoClass *klass, int result)\n \t}\n }\n \n+void\n+mono_profiler_static_field (MonoClassField *field)\n+{\n+\tfor (ProfilerDesc *prof = prof_list; prof; prof = prof->next)\n+\t\tif ((prof->events & MONO_PROFILE_FIELD_EVENTS) && prof->static_field)\n+\t\t\tprof->static_field (prof->profiler, field);\n+}\n+\n+void\n+mono_profiler_static_fields_allocated (MonoClass *klass)\n+{\n+\tfor (ProfilerDesc *prof = prof_list; prof; prof = prof->next)\n+\t\tif ((prof->events & MONO_PROFILE_FIELD_EVENTS) && prof->static_fields_allocated)\n+\t\t\tprof->static_fields_allocated (prof->profiler, klass);\n+}\n+\n+void\n+mono_profiler_special_static_area_allocated (MonoObject *owner, gboolean thread_local, gsize owner_id, int index, void **addr, gsize size)","path":"mono/metadata/profiler.c","position":106,"original_position":106,"commit_id":"73d28d21791bf8b5024677c65573cf62a866bc23","original_commit_id":"73d28d21791bf8b5024677c65573cf62a866bc23","user":{"login":"alexrp","id":44076,"avatar_url":"https://avatars.githubusercontent.com/u/44076?v=3","gravatar_id":"","url":"https://api.github.com/users/alexrp","html_url":"https://github.com/alexrp","followers_url":"https://api.github.com/users/alexrp/followers","following_url":"https://api.github.com/users/alexrp/following{/other_user}","gists_url":"https://api.github.com/users/alexrp/gists{/gist_id}","starred_url":"https://api.github.com/users/alexrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexrp/subscriptions","organizations_url":"https://api.github.com/users/alexrp/orgs","repos_url":"https://api.github.com/users/alexrp/repos","events_url":"https://api.github.com/users/alexrp/events{/privacy}","received_events_url":"https://api.github.com/users/alexrp/received_events","type":"User","site_admin":false},"body":"We don't need it in the log profiler. I just figured I'd pass it in case some other profilers might find it useful.","created_at":"2015-10-29T13:17:34Z","updated_at":"2015-10-29T13:17:34Z","html_url":"https://github.com/mono/mono/pull/2054#discussion_r43382604","pull_request_url":"https://api.github.com/repos/mono/mono/pulls/2054","_links":{"self":{"href":"https://api.github.com/repos/mono/mono/pulls/comments/43382604"},"html":{"href":"https://github.com/mono/mono/pull/2054#discussion_r43382604"},"pull_request":{"href":"https://api.github.com/repos/mono/mono/pulls/2054"}}},"pull_request":{"url":"https://api.github.com/repos/mono/mono/pulls/2054","id":45044937,"html_url":"https://github.com/mono/mono/pull/2054","diff_url":"https://github.com/mono/mono/pull/2054.diff","patch_url":"https://github.com/mono/mono/pull/2054.patch","issue_url":"https://api.github.com/repos/mono/mono/issues/2054","number":2054,"state":"open","locked":false,"title":"[profiler] Add thread bounds and static field callbacks.","user":{"login":"alexrp","id":44076,"avatar_url":"https://avatars.githubusercontent.com/u/44076?v=3","gravatar_id":"","url":"https://api.github.com/users/alexrp","html_url":"https://github.com/alexrp","followers_url":"https://api.github.com/users/alexrp/followers","following_url":"https://api.github.com/users/alexrp/following{/other_user}","gists_url":"https://api.github.com/users/alexrp/gists{/gist_id}","starred_url":"https://api.github.com/users/alexrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexrp/subscriptions","organizations_url":"https://api.github.com/users/alexrp/orgs","repos_url":"https://api.github.com/users/alexrp/repos","events_url":"https://api.github.com/users/alexrp/events{/privacy}","received_events_url":"https://api.github.com/users/alexrp/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-15T12:52:49Z","updated_at":"2015-10-29T13:17:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a3b886fead53a43961afd67a2840d35b20a05d05","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mono/mono/pulls/2054/commits","review_comments_url":"https://api.github.com/repos/mono/mono/pulls/2054/comments","review_comment_url":"https://api.github.com/repos/mono/mono/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mono/mono/issues/2054/comments","statuses_url":"https://api.github.com/repos/mono/mono/statuses/73d28d21791bf8b5024677c65573cf62a866bc23","head":{"label":"alexrp:profiler-roots-v2","ref":"profiler-roots-v2","sha":"73d28d21791bf8b5024677c65573cf62a866bc23","user":{"login":"alexrp","id":44076,"avatar_url":"https://avatars.githubusercontent.com/u/44076?v=3","gravatar_id":"","url":"https://api.github.com/users/alexrp","html_url":"https://github.com/alexrp","followers_url":"https://api.github.com/users/alexrp/followers","following_url":"https://api.github.com/users/alexrp/following{/other_user}","gists_url":"https://api.github.com/users/alexrp/gists{/gist_id}","starred_url":"https://api.github.com/users/alexrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexrp/subscriptions","organizations_url":"https://api.github.com/users/alexrp/orgs","repos_url":"https://api.github.com/users/alexrp/repos","events_url":"https://api.github.com/users/alexrp/events{/privacy}","received_events_url":"https://api.github.com/users/alexrp/received_events","type":"User","site_admin":false},"repo":{"id":1155583,"name":"mono","full_name":"alexrp/mono","owner":{"login":"alexrp","id":44076,"avatar_url":"https://avatars.githubusercontent.com/u/44076?v=3","gravatar_id":"","url":"https://api.github.com/users/alexrp","html_url":"https://github.com/alexrp","followers_url":"https://api.github.com/users/alexrp/followers","following_url":"https://api.github.com/users/alexrp/following{/other_user}","gists_url":"https://api.github.com/users/alexrp/gists{/gist_id}","starred_url":"https://api.github.com/users/alexrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexrp/subscriptions","organizations_url":"https://api.github.com/users/alexrp/orgs","repos_url":"https://api.github.com/users/alexrp/repos","events_url":"https://api.github.com/users/alexrp/events{/privacy}","received_events_url":"https://api.github.com/users/alexrp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexrp/mono","description":"My contributions to Mono.","fork":true,"url":"https://api.github.com/repos/alexrp/mono","forks_url":"https://api.github.com/repos/alexrp/mono/forks","keys_url":"https://api.github.com/repos/alexrp/mono/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexrp/mono/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexrp/mono/teams","hooks_url":"https://api.github.com/repos/alexrp/mono/hooks","issue_events_url":"https://api.github.com/repos/alexrp/mono/issues/events{/number}","events_url":"https://api.github.com/repos/alexrp/mono/events","assignees_url":"https://api.github.com/repos/alexrp/mono/assignees{/user}","branches_url":"https://api.github.com/repos/alexrp/mono/branches{/branch}","tags_url":"https://api.github.com/repos/alexrp/mono/tags","blobs_url":"https://api.github.com/repos/alexrp/mono/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexrp/mono/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexrp/mono/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexrp/mono/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexrp/mono/statuses/{sha}","languages_url":"https://api.github.com/repos/alexrp/mono/languages","stargazers_url":"https://api.github.com/repos/alexrp/mono/stargazers","contributors_url":"https://api.github.com/repos/alexrp/mono/contributors","subscribers_url":"https://api.github.com/repos/alexrp/mono/subscribers","subscription_url":"https://api.github.com/repos/alexrp/mono/subscription","commits_url":"https://api.github.com/repos/alexrp/mono/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexrp/mono/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexrp/mono/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexrp/mono/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexrp/mono/contents/{+path}","compare_url":"https://api.github.com/repos/alexrp/mono/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexrp/mono/merges","archive_url":"https://api.github.com/repos/alexrp/mono/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexrp/mono/downloads","issues_url":"https://api.github.com/repos/alexrp/mono/issues{/number}","pulls_url":"https://api.github.com/repos/alexrp/mono/pulls{/number}","milestones_url":"https://api.github.com/repos/alexrp/mono/milestones{/number}","notifications_url":"https://api.github.com/repos/alexrp/mono/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexrp/mono/labels{/name}","releases_url":"https://api.github.com/repos/alexrp/mono/releases{/id}","created_at":"2010-12-10T07:59:15Z","updated_at":"2015-05-08T09:05:58Z","pushed_at":"2015-10-28T14:34:31Z","git_url":"git://github.com/alexrp/mono.git","ssh_url":"git@github.com:alexrp/mono.git","clone_url":"https://github.com/alexrp/mono.git","svn_url":"https://github.com/alexrp/mono","homepage":"http://www.mono-project.com/","size":446897,"stargazers_count":11,"watchers_count":11,"language":"C#","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":11,"default_branch":"master"}},"base":{"label":"mono:master","ref":"master","sha":"042ddd504c09977682bb48010c5642390826d1da","user":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"repo":{"id":791611,"name":"mono","full_name":"mono/mono","owner":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mono/mono","description":"Mono open source ECMA CLI, C# and .NET implementation.","fork":false,"url":"https://api.github.com/repos/mono/mono","forks_url":"https://api.github.com/repos/mono/mono/forks","keys_url":"https://api.github.com/repos/mono/mono/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mono/mono/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mono/mono/teams","hooks_url":"https://api.github.com/repos/mono/mono/hooks","issue_events_url":"https://api.github.com/repos/mono/mono/issues/events{/number}","events_url":"https://api.github.com/repos/mono/mono/events","assignees_url":"https://api.github.com/repos/mono/mono/assignees{/user}","branches_url":"https://api.github.com/repos/mono/mono/branches{/branch}","tags_url":"https://api.github.com/repos/mono/mono/tags","blobs_url":"https://api.github.com/repos/mono/mono/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mono/mono/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mono/mono/git/refs{/sha}","trees_url":"https://api.github.com/repos/mono/mono/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mono/mono/statuses/{sha}","languages_url":"https://api.github.com/repos/mono/mono/languages","stargazers_url":"https://api.github.com/repos/mono/mono/stargazers","contributors_url":"https://api.github.com/repos/mono/mono/contributors","subscribers_url":"https://api.github.com/repos/mono/mono/subscribers","subscription_url":"https://api.github.com/repos/mono/mono/subscription","commits_url":"https://api.github.com/repos/mono/mono/commits{/sha}","git_commits_url":"https://api.github.com/repos/mono/mono/git/commits{/sha}","comments_url":"https://api.github.com/repos/mono/mono/comments{/number}","issue_comment_url":"https://api.github.com/repos/mono/mono/issues/comments{/number}","contents_url":"https://api.github.com/repos/mono/mono/contents/{+path}","compare_url":"https://api.github.com/repos/mono/mono/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mono/mono/merges","archive_url":"https://api.github.com/repos/mono/mono/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mono/mono/downloads","issues_url":"https://api.github.com/repos/mono/mono/issues{/number}","pulls_url":"https://api.github.com/repos/mono/mono/pulls{/number}","milestones_url":"https://api.github.com/repos/mono/mono/milestones{/number}","notifications_url":"https://api.github.com/repos/mono/mono/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mono/mono/labels{/name}","releases_url":"https://api.github.com/repos/mono/mono/releases{/id}","created_at":"2010-07-22T18:06:36Z","updated_at":"2015-10-29T03:03:58Z","pushed_at":"2015-10-29T07:52:20Z","git_url":"git://github.com/mono/mono.git","ssh_url":"git@github.com:mono/mono.git","clone_url":"https://github.com/mono/mono.git","svn_url":"https://github.com/mono/mono","homepage":"http://www.mono-project.com/","size":1654642,"stargazers_count":3958,"watchers_count":3958,"language":"C#","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1956,"mirror_url":null,"open_issues_count":107,"forks":1956,"open_issues":107,"watchers":3958,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mono/mono/pulls/2054"},"html":{"href":"https://github.com/mono/mono/pull/2054"},"issue":{"href":"https://api.github.com/repos/mono/mono/issues/2054"},"comments":{"href":"https://api.github.com/repos/mono/mono/issues/2054/comments"},"review_comments":{"href":"https://api.github.com/repos/mono/mono/pulls/2054/comments"},"review_comment":{"href":"https://api.github.com/repos/mono/mono/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mono/mono/pulls/2054/commits"},"statuses":{"href":"https://api.github.com/repos/mono/mono/statuses/73d28d21791bf8b5024677c65573cf62a866bc23"}}}}