{"action":"opened","issue":{"url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/848","repository_url":"https://api.github.com/repos/barryvdh/laravel-debugbar","labels_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/848/labels{/name}","comments_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/848/comments","events_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/848/events","html_url":"https://github.com/barryvdh/laravel-debugbar/issues/848","id":341088755,"node_id":"MDU6SXNzdWUzNDEwODg3NTU=","number":848,"title":"`nextMeasure($name, $label)`?","user":{"login":"janpio","id":183673,"node_id":"MDQ6VXNlcjE4MzY3Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/183673?v=4","gravatar_id":"","url":"https://api.github.com/users/janpio","html_url":"https://github.com/janpio","followers_url":"https://api.github.com/users/janpio/followers","following_url":"https://api.github.com/users/janpio/following{/other_user}","gists_url":"https://api.github.com/users/janpio/gists{/gist_id}","starred_url":"https://api.github.com/users/janpio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janpio/subscriptions","organizations_url":"https://api.github.com/users/janpio/orgs","repos_url":"https://api.github.com/users/janpio/repos","events_url":"https://api.github.com/users/janpio/events{/privacy}","received_events_url":"https://api.github.com/users/janpio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-13T16:50:13Z","updated_at":"2018-07-13T16:50:13Z","closed_at":null,"author_association":"NONE","body":"When debugging code that has many steps and I want to know which step takes how long, I tend to have code like this between each function call:\r\n\r\n```\r\n\\Debugbar::stopMeasure('measure1');\r\n\\Debugbar::startMeasure('measure2', 'This measures the second thing');\r\n```\r\n\r\nWhat do you think about a method `nextMeasure()` that combines these two method calls into one? \r\n\r\n```\r\n\\Debugbar::nextMeasure('measure2', 'This measures the second thing');\r\n```\r\n\r\nInternally this calls the same methods as before.\r\n\r\nOf course this new code would have to somehow know what the last started measure is - and I am not sure if this could be the limiting factor here. What do you think?\r\n\r\n"}}
{"actor":{"display_login":"janpio"}}