{"action":"created","issue":{"url":"https://api.github.com/repos/polotek/libxmljs/issues/302","labels_url":"https://api.github.com/repos/polotek/libxmljs/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/polotek/libxmljs/issues/302/comments","events_url":"https://api.github.com/repos/polotek/libxmljs/issues/302/events","html_url":"https://github.com/polotek/libxmljs/pull/302","id":66995061,"number":302,"title":"Make memory usage tracking thread-safe","user":{"login":"nathan7","id":50854,"avatar_url":"https://avatars.githubusercontent.com/u/50854?v=3","gravatar_id":"","url":"https://api.github.com/users/nathan7","html_url":"https://github.com/nathan7","followers_url":"https://api.github.com/users/nathan7/followers","following_url":"https://api.github.com/users/nathan7/following{/other_user}","gists_url":"https://api.github.com/users/nathan7/gists{/gist_id}","starred_url":"https://api.github.com/users/nathan7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathan7/subscriptions","organizations_url":"https://api.github.com/users/nathan7/orgs","repos_url":"https://api.github.com/users/nathan7/repos","events_url":"https://api.github.com/users/nathan7/events{/privacy}","received_events_url":"https://api.github.com/users/nathan7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-04-07T21:30:01Z","updated_at":"2015-04-08T12:01:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/polotek/libxmljs/pulls/302","html_url":"https://github.com/polotek/libxmljs/pull/302","diff_url":"https://github.com/polotek/libxmljs/pull/302.diff","patch_url":"https://github.com/polotek/libxmljs/pull/302.patch"},"body":"Fixes #296. This keeps track of allocation sizes by adding a header to\r\nevery allocation holding the size. The difference between the memory\r\nusage we've last reported to V8 and the current memory usage is tracked\r\nin `xml_memory_diff`, and protected by `xml_memory_mutex`. It is\r\nfrequently synchronised by `xml_memory_cb`, which is called on the main\r\nthread through `xml_memory_handle`."},"comment":{"url":"https://api.github.com/repos/polotek/libxmljs/issues/comments/90892199","html_url":"https://github.com/polotek/libxmljs/pull/302#issuecomment-90892199","issue_url":"https://api.github.com/repos/polotek/libxmljs/issues/302","id":90892199,"user":{"login":"nathan7","id":50854,"avatar_url":"https://avatars.githubusercontent.com/u/50854?v=3","gravatar_id":"","url":"https://api.github.com/users/nathan7","html_url":"https://github.com/nathan7","followers_url":"https://api.github.com/users/nathan7/followers","following_url":"https://api.github.com/users/nathan7/following{/other_user}","gists_url":"https://api.github.com/users/nathan7/gists{/gist_id}","starred_url":"https://api.github.com/users/nathan7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathan7/subscriptions","organizations_url":"https://api.github.com/users/nathan7/orgs","repos_url":"https://api.github.com/users/nathan7/repos","events_url":"https://api.github.com/users/nathan7/events{/privacy}","received_events_url":"https://api.github.com/users/nathan7/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T12:01:28Z","updated_at":"2015-04-08T12:01:28Z","body":"Meanwhile, my Mac Mini is busily installing the same set of node versions. I'll report back on that once testing kicks off."}}