{"action":"closed","issue":{"url":"https://api.github.com/repos/NikitaKozlov/Pury/issues/26","repository_url":"https://api.github.com/repos/NikitaKozlov/Pury","labels_url":"https://api.github.com/repos/NikitaKozlov/Pury/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/NikitaKozlov/Pury/issues/26/comments","events_url":"https://api.github.com/repos/NikitaKozlov/Pury/issues/26/events","html_url":"https://github.com/NikitaKozlov/Pury/issues/26","id":186520337,"number":26,"title":"Crash when I was not careful with stageOrder numbering","user":{"login":"JanKn","id":7334727,"avatar_url":"https://avatars.githubusercontent.com/u/7334727?v=3","gravatar_id":"","url":"https://api.github.com/users/JanKn","html_url":"https://github.com/JanKn","followers_url":"https://api.github.com/users/JanKn/followers","following_url":"https://api.github.com/users/JanKn/following{/other_user}","gists_url":"https://api.github.com/users/JanKn/gists{/gist_id}","starred_url":"https://api.github.com/users/JanKn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanKn/subscriptions","organizations_url":"https://api.github.com/users/JanKn/orgs","repos_url":"https://api.github.com/users/JanKn/repos","events_url":"https://api.github.com/users/JanKn/events{/privacy}","received_events_url":"https://api.github.com/users/JanKn/received_events","type":"User","site_admin":false},"labels":[{"id":425540002,"url":"https://api.github.com/repos/NikitaKozlov/Pury/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-01T12:15:21Z","updated_at":"2016-12-17T12:54:31Z","closed_at":"2016-12-17T12:54:31Z","body":"Hi!\r\nI have tested the profiling with our app as we spoke about it on droidconUK, it seems useful especially for people, who don't want to dig in systrace too much. However I've found an issue which causes a crash when I had few method profiling annotations in one class with nested method calls. I have attached my setup and stacktrace.\r\n\r\n`@MethodProfiling(profilerName = \"Article open\", runsCounter = 3, stageName = \"setParagraph\", stageOrder = 4)\r\npublic void method1()...`\r\n \r\n`@MethodProfiling(profilerName = \"Article open\", runsCounter = 3, stageName = \"createSpannableTexts\", stageOrder = 5)\r\npublic void method2()...  // this one is called from method1`\r\n\r\n`11-01 02:08:34.422 6696-6696/com.dailymail.online.debug E/AndroidRuntime: FATAL EXCEPTION: main\r\nProcess: com.dailymail.online.debug, PID: 6696\r\njava.lang.IndexOutOfBoundsException\r\n at java.util.Collections$EmptyList.get(Collections.java:102)\r\n at com.nikitakozlov.pury.profile.ProfileResultProcessor.transpose(ProfileResultProcessor.java:67)\r\n at com.nikitakozlov.pury.profile.ProfileResultProcessor.getAverageProfileResults(ProfileResultProcessor.java:89)\r\n at com.nikitakozlov.pury.profile.ProfileResultProcessor.takeAverage(ProfileResultProcessor.java:58)\r\n at com.nikitakozlov.pury.profile.ProfileResultProcessor.process(ProfileResultProcessor.java:27)\r\n at com.nikitakozlov.pury.profile.Profiler.logIfFinished(Profiler.java:94)\r\n at com.nikitakozlov.pury.profile.Profiler.stopStage(Profiler.java:78)\r\n at com.nikitakozlov.pury.aspects.StopProfilingAspect.weaveJoinPoint(StopProfilingAspect.java:60)\r\n at com.dailymail.online.modules.article.views.ArticleItemHtmlView.onDraw(ArticleItemHtmlView.java:227)\r\n  `"}}
{"actor":{"display_login":"NikitaKozlov"}}