{"action":"created","issue":{"url":"https://api.github.com/repos/catapult-project/catapult/issues/1525","labels_url":"https://api.github.com/repos/catapult-project/catapult/issues/1525/labels{/name}","comments_url":"https://api.github.com/repos/catapult-project/catapult/issues/1525/comments","events_url":"https://api.github.com/repos/catapult-project/catapult/issues/1525/events","html_url":"https://github.com/catapult-project/catapult/issues/1525","id":108241044,"number":1525,"title":"Be able to split out V8 samples costs by optimized/deoptimized","user":{"login":"natduca","id":412396,"avatar_url":"https://avatars.githubusercontent.com/u/412396?v=3","gravatar_id":"","url":"https://api.github.com/users/natduca","html_url":"https://github.com/natduca","followers_url":"https://api.github.com/users/natduca/followers","following_url":"https://api.github.com/users/natduca/following{/other_user}","gists_url":"https://api.github.com/users/natduca/gists{/gist_id}","starred_url":"https://api.github.com/users/natduca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natduca/subscriptions","organizations_url":"https://api.github.com/users/natduca/orgs","repos_url":"https://api.github.com/users/natduca/repos","events_url":"https://api.github.com/users/natduca/events{/privacy}","received_events_url":"https://api.github.com/users/natduca/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/catapult-project/catapult/labels/Perf%20Insights","name":"Perf Insights","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-25T00:40:19Z","updated_at":"2015-09-28T17:55:22Z","closed_at":null,"body":"When v8 deopts a function, I gather that a trace event is emitted that says that its stack frame is deopted.\r\n```\r\n{\"pid\":87583,\"tid\":1299,\"ts\":299077929171,\"ph\":\"I\",\"cat\":\"disabled-by-default-v8.cpu_profile\",\"name\":\"JitCodeAdded\",\"args\":{\"data\":{\"code_len\":126,\"code_start\":\"0x162208533ca0\",\"name\":\"Builtin:NotifySoftDeoptimized\"}},\"tts\":6599609,\"s\":\"t\"},\r\n```\r\n\r\nSo, when we have a stack sample, we can look at the leafStackFrame, and see if it is deopted, right?\r\n\r\nThat makes me wonder, we go build the slice cost report for a v8 slice, can we understand not just the cpu Time spent in that code, but also how much of it was deopted?"},"comment":{"url":"https://api.github.com/repos/catapult-project/catapult/issues/comments/143824670","html_url":"https://github.com/catapult-project/catapult/issues/1525#issuecomment-143824670","issue_url":"https://api.github.com/repos/catapult-project/catapult/issues/1525","id":143824670,"user":{"login":"dj2","id":9611,"avatar_url":"https://avatars.githubusercontent.com/u/9611?v=3","gravatar_id":"","url":"https://api.github.com/users/dj2","html_url":"https://github.com/dj2","followers_url":"https://api.github.com/users/dj2/followers","following_url":"https://api.github.com/users/dj2/following{/other_user}","gists_url":"https://api.github.com/users/dj2/gists{/gist_id}","starred_url":"https://api.github.com/users/dj2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dj2/subscriptions","organizations_url":"https://api.github.com/users/dj2/orgs","repos_url":"https://api.github.com/users/dj2/repos","events_url":"https://api.github.com/users/dj2/events{/privacy}","received_events_url":"https://api.github.com/users/dj2/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T17:55:22Z","updated_at":"2015-09-28T17:55:22Z","body":"See https://codereview.chromium.org/1371173002/ for prototype. I just added the information to the JSSourceInfo struct as I'm guessing it's pretty JS specific."}}