{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/11186","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/11186/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/11186/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/11186/events","html_url":"https://github.com/JuliaLang/julia/pull/11186","id":74019034,"number":11186,"title":"Add number of allocations to time/timed macros, fix realloc calculations","user":{"login":"ScottPJones","id":11798751,"avatar_url":"https://avatars.githubusercontent.com/u/11798751?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottPJones","html_url":"https://github.com/ScottPJones","followers_url":"https://api.github.com/users/ScottPJones/followers","following_url":"https://api.github.com/users/ScottPJones/following{/other_user}","gists_url":"https://api.github.com/users/ScottPJones/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottPJones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottPJones/subscriptions","organizations_url":"https://api.github.com/users/ScottPJones/orgs","repos_url":"https://api.github.com/users/ScottPJones/repos","events_url":"https://api.github.com/users/ScottPJones/events{/privacy}","received_events_url":"https://api.github.com/users/ScottPJones/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":76,"created_at":"2015-05-07T15:08:25Z","updated_at":"2015-05-16T09:31:17Z","closed_at":"2015-05-16T03:34:19Z","pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/11186","html_url":"https://github.com/JuliaLang/julia/pull/11186","diff_url":"https://github.com/JuliaLang/julia/pull/11186.diff","patch_url":"https://github.com/JuliaLang/julia/pull/11186.patch"},"body":"This adds counting of the number of allocations to `@time` and `@timed` (`@timed` also now returns the number of `free`s, and `realloc`s).\r\nIt also fixes a bug that happens if you use realloc to shrink the size of  something, it would subtract from allocd_bytes, instead of adding to freed_bytes.\r\n"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/102593775","html_url":"https://github.com/JuliaLang/julia/pull/11186#issuecomment-102593775","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/11186","id":102593775,"user":{"login":"ScottPJones","id":11798751,"avatar_url":"https://avatars.githubusercontent.com/u/11798751?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottPJones","html_url":"https://github.com/ScottPJones","followers_url":"https://api.github.com/users/ScottPJones/followers","following_url":"https://api.github.com/users/ScottPJones/following{/other_user}","gists_url":"https://api.github.com/users/ScottPJones/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottPJones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottPJones/subscriptions","organizations_url":"https://api.github.com/users/ScottPJones/orgs","repos_url":"https://api.github.com/users/ScottPJones/repos","events_url":"https://api.github.com/users/ScottPJones/events{/privacy}","received_events_url":"https://api.github.com/users/ScottPJones/received_events","type":"User","site_admin":false},"created_at":"2015-05-16T09:31:17Z","updated_at":"2015-05-16T09:31:17Z","body":"Thanks!  I’m not sure how you’d test a macro like this... @timed maybe, where it returns the information instead of printing it... if anyone has a suggestion, I’ll certainly add testing..."}}