{"action":"opened","issue":{"url":"https://api.github.com/repos/catapult-project/catapult/issues/1284","labels_url":"https://api.github.com/repos/catapult-project/catapult/issues/1284/labels{/name}","comments_url":"https://api.github.com/repos/catapult-project/catapult/issues/1284/comments","events_url":"https://api.github.com/repos/catapult-project/catapult/issues/1284/events","html_url":"https://github.com/catapult-project/catapult/issues/1284","id":101922380,"number":1284,"title":"[tracing] Incorrect rendering of blocks with exact same start time.","user":{"login":"dave-2","id":211662,"avatar_url":"https://avatars.githubusercontent.com/u/211662?v=3","gravatar_id":"","url":"https://api.github.com/users/dave-2","html_url":"https://github.com/dave-2","followers_url":"https://api.github.com/users/dave-2/followers","following_url":"https://api.github.com/users/dave-2/following{/other_user}","gists_url":"https://api.github.com/users/dave-2/gists{/gist_id}","starred_url":"https://api.github.com/users/dave-2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave-2/subscriptions","organizations_url":"https://api.github.com/users/dave-2/orgs","repos_url":"https://api.github.com/users/dave-2/repos","events_url":"https://api.github.com/users/dave-2/events{/privacy}","received_events_url":"https://api.github.com/users/dave-2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-19T15:39:26Z","updated_at":"2015-08-19T15:39:26Z","closed_at":null,"body":"It seems like tracing sorts the events based on `ts`, but doesn't handle well the case where the `ts`s are equal.\r\n\r\n```json\r\n[\r\n  {\"name\": \"foo\", \"tid\": 1, \"pid\": 1, \"ph\": \"X\", \"ts\": 0, \"dur\": 100},\r\n  {\"name\": \"bar\", \"tid\": 1, \"pid\": 1, \"ph\": \"X\", \"ts\": 0, \"dur\": 110}\r\n]\r\n```\r\n<img width=\"422\" alt=\"screen shot 2015-08-19 at 8 35 20 am\" src=\"https://cloud.githubusercontent.com/assets/211662/9360808/53633f6c-464d-11e5-8710-84cfafb85c2a.png\">\r\n\r\nIf you swap the order of the events, the rendering is correct:\r\n\r\n```json\r\n[\r\n  {\"name\": \"bar\", \"tid\": 1, \"pid\": 1, \"ph\": \"X\", \"ts\": 0, \"dur\": 110},\r\n  {\"name\": \"foo\", \"tid\": 1, \"pid\": 1, \"ph\": \"X\", \"ts\": 0, \"dur\": 100}\r\n]\r\n```\r\n<img width=\"423\" alt=\"screen shot 2015-08-19 at 8 34 57 am\" src=\"https://cloud.githubusercontent.com/assets/211662/9360810/58f8d9dc-464d-11e5-9030-ef6b581e0f5a.png\">"}}