{"action":"created","issue":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1367","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1367/labels{/name}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1367/comments","events_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1367/events","html_url":"https://github.com/telefonicaid/fiware-orion/issues/1367","id":111589644,"number":1367,"title":"Time measures in the broker itself","user":{"login":"kzangeli","id":5338380,"avatar_url":"https://avatars.githubusercontent.com/u/5338380?v=3","gravatar_id":"","url":"https://api.github.com/users/kzangeli","html_url":"https://github.com/kzangeli","followers_url":"https://api.github.com/users/kzangeli/followers","following_url":"https://api.github.com/users/kzangeli/following{/other_user}","gists_url":"https://api.github.com/users/kzangeli/gists{/gist_id}","starred_url":"https://api.github.com/users/kzangeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzangeli/subscriptions","organizations_url":"https://api.github.com/users/kzangeli/orgs","repos_url":"https://api.github.com/users/kzangeli/repos","events_url":"https://api.github.com/users/kzangeli/events{/privacy}","received_events_url":"https://api.github.com/users/kzangeli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/backlog","name":"backlog","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"kzangeli","id":5338380,"avatar_url":"https://avatars.githubusercontent.com/u/5338380?v=3","gravatar_id":"","url":"https://api.github.com/users/kzangeli","html_url":"https://github.com/kzangeli","followers_url":"https://api.github.com/users/kzangeli/followers","following_url":"https://api.github.com/users/kzangeli/following{/other_user}","gists_url":"https://api.github.com/users/kzangeli/gists{/gist_id}","starred_url":"https://api.github.com/users/kzangeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzangeli/subscriptions","organizations_url":"https://api.github.com/users/kzangeli/orgs","repos_url":"https://api.github.com/users/kzangeli/repos","events_url":"https://api.github.com/users/kzangeli/events{/privacy}","received_events_url":"https://api.github.com/users/kzangeli/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones/19","html_url":"https://github.com/telefonicaid/fiware-orion/milestones/0.26.0","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones/19/labels","id":1295074,"number":19,"title":"0.26.0","description":"","creator":{"login":"fgalan","id":1534240,"avatar_url":"https://avatars.githubusercontent.com/u/1534240?v=3","gravatar_id":"","url":"https://api.github.com/users/fgalan","html_url":"https://github.com/fgalan","followers_url":"https://api.github.com/users/fgalan/followers","following_url":"https://api.github.com/users/fgalan/following{/other_user}","gists_url":"https://api.github.com/users/fgalan/gists{/gist_id}","starred_url":"https://api.github.com/users/fgalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgalan/subscriptions","organizations_url":"https://api.github.com/users/fgalan/orgs","repos_url":"https://api.github.com/users/fgalan/repos","events_url":"https://api.github.com/users/fgalan/events{/privacy}","received_events_url":"https://api.github.com/users/fgalan/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":10,"state":"open","created_at":"2015-09-08T10:31:21Z","updated_at":"2015-11-16T12:32:52Z","due_on":"2015-11-29T23:00:00Z","closed_at":null},"comments":3,"created_at":"2015-10-15T10:37:24Z","updated_at":"2015-11-16T12:32:52Z","closed_at":"2015-11-16T12:32:52Z","body":"The way we measure the time spent waiting for semaphores, we could \"easily\" implement for **blocks** of the code in the broker.\r\nTypical blocks would be \r\n- jsonParse\r\n- xmlParse\r\n- jsonParseV2\r\n- xmlRender\r\n- jsonRender\r\n- mongoBackend\r\n- mongoSubCache (which is really a part of mongoBackend ...)\r\n\r\nAnd probably many more.\r\n\r\nAs time measuring is time consuming, we would only perform these measurements if a CLI is set, just like we do with the semaphore waiting time (-mutexTimeStat).\r\nTo see the statistics, we'd just use the GET /statistics, just like with mutex-times.\r\nNo real reason to invent a new REST request for this (I wouldn't mind though: GET /profiling).\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/comments/157014560","html_url":"https://github.com/telefonicaid/fiware-orion/issues/1367#issuecomment-157014560","issue_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1367","id":157014560,"user":{"login":"fgalan","id":1534240,"avatar_url":"https://avatars.githubusercontent.com/u/1534240?v=3","gravatar_id":"","url":"https://api.github.com/users/fgalan","html_url":"https://github.com/fgalan","followers_url":"https://api.github.com/users/fgalan/followers","following_url":"https://api.github.com/users/fgalan/following{/other_user}","gists_url":"https://api.github.com/users/fgalan/gists{/gist_id}","starred_url":"https://api.github.com/users/fgalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgalan/subscriptions","organizations_url":"https://api.github.com/users/fgalan/orgs","repos_url":"https://api.github.com/users/fgalan/repos","events_url":"https://api.github.com/users/fgalan/events{/privacy}","received_events_url":"https://api.github.com/users/fgalan/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T12:32:52Z","updated_at":"2015-11-16T12:32:52Z","body":"Implemented in PR https://github.com/telefonicaid/fiware-orion/pull/1502"}}