{"action":"created","issue":{"url":"https://api.github.com/repos/coneoproject/COFFEE/issues/58","labels_url":"https://api.github.com/repos/coneoproject/COFFEE/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/coneoproject/COFFEE/issues/58/comments","events_url":"https://api.github.com/repos/coneoproject/COFFEE/issues/58/events","html_url":"https://github.com/coneoproject/COFFEE/pull/58","id":99176525,"number":58,"title":"Log flops","user":{"login":"wence-","id":1126981,"avatar_url":"https://avatars.githubusercontent.com/u/1126981?v=3","gravatar_id":"","url":"https://api.github.com/users/wence-","html_url":"https://github.com/wence-","followers_url":"https://api.github.com/users/wence-/followers","following_url":"https://api.github.com/users/wence-/following{/other_user}","gists_url":"https://api.github.com/users/wence-/gists{/gist_id}","starred_url":"https://api.github.com/users/wence-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wence-/subscriptions","organizations_url":"https://api.github.com/users/wence-/orgs","repos_url":"https://api.github.com/users/wence-/repos","events_url":"https://api.github.com/users/wence-/events{/privacy}","received_events_url":"https://api.github.com/users/wence-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-05T10:43:31Z","updated_at":"2015-08-05T12:06:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/coneoproject/COFFEE/pulls/58","html_url":"https://github.com/coneoproject/COFFEE/pull/58","diff_url":"https://github.com/coneoproject/COFFEE/pull/58.diff","patch_url":"https://github.com/coneoproject/COFFEE/pull/58.patch"},"body":"Add visitor to estimate the number of effective flops a tree performs"},"comment":{"url":"https://api.github.com/repos/coneoproject/COFFEE/issues/comments/127974177","html_url":"https://github.com/coneoproject/COFFEE/pull/58#issuecomment-127974177","issue_url":"https://api.github.com/repos/coneoproject/COFFEE/issues/58","id":127974177,"user":{"login":"wence-","id":1126981,"avatar_url":"https://avatars.githubusercontent.com/u/1126981?v=3","gravatar_id":"","url":"https://api.github.com/users/wence-","html_url":"https://github.com/wence-","followers_url":"https://api.github.com/users/wence-/followers","following_url":"https://api.github.com/users/wence-/following{/other_user}","gists_url":"https://api.github.com/users/wence-/gists{/gist_id}","starred_url":"https://api.github.com/users/wence-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wence-/subscriptions","organizations_url":"https://api.github.com/users/wence-/orgs","repos_url":"https://api.github.com/users/wence-/repos","events_url":"https://api.github.com/users/wence-/events{/privacy}","received_events_url":"https://api.github.com/users/wence-/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T12:06:25Z","updated_at":"2015-08-05T12:06:25Z","body":"IOW, I think I do this, whenever I hit a loop, I count the flops in the loop body and then multiply by the number of loop iterations (the size / increment).\r\n\r\nSo if we have:\r\n\r\n```c\r\nfor ( i = 0; i < 16; i += 4 ) {\r\n    _mm_add_pd(a, b);\r\n}\r\n```\r\n\r\nThen I count each add_pd as 4 flops and multiply by 16 / 4 = 4, giving 16 flops.  Which I think is right."}}