Add more variations of async events

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I0ba63f6a7d062fe21646f8750d81f4189e8cfb19
pull/2673/head
Tor Lillqvist 2021-06-23 12:22:31 +03:00
parent 4a95af2ac7
commit 18fe91c651
1 changed files with 22 additions and 7 deletions

View File

@ -16,16 +16,31 @@
{"comment":" A single pair of async b and e events. These doesn't show up in Chrome either, sigh."},
{"name":"async2", "ph":"b", "id":1, "ts":1623142954401000, "pid":1001, "tid":1},
{"name":"async2", "ph":"e", "id":1, "ts":1623142954401200, "pid":1001, "tid":1},
{"name":"async2", "ph":"b", "id":2, "ts":1623142954401000, "pid":1001, "tid":1},
{"name":"async2", "ph":"e", "id":2, "ts":1623142954401200, "pid":1001, "tid":1},
{"comment":" Two pairs of async S(tart) and F(inish) events, nested (with the same id). "},
{"comment":" Two pairs of async S(tart) and F(inish) events, nested. "},
{"comment":" These are said to be deprecated but do show up in Chrome. Yay for documentation and implementation being in sync. "},
{"name":"async3", "ph":"S", "id":1, "ts":1623142954401200, "pid":1001, "tid":1},
{"name":"async32", "ph":"S", "id":1, "ts":1623142954401250, "pid":1001, "tid":1},
{"name":"async32", "ph":"F", "id":1, "ts":1623142954401350, "pid":1001, "tid":1},
{"name":"async3", "ph":"F", "id":1, "ts":1623142954401700, "pid":1001, "tid":1},
{"name":"async3", "ph":"S", "id":3, "ts":1623142954401200, "pid":1001, "tid":1},
{"name":"async32", "ph":"S", "id":3, "ts":1623142954401250, "pid":1001, "tid":1},
{"name":"async32", "ph":"F", "id":3, "ts":1623142954401350, "pid":1001, "tid":1},
{"name":"async3", "ph":"F", "id":3, "ts":1623142954401700, "pid":1001, "tid":1},
{"comment":" Two pairs of async S(tart) and F(inish) events, nested (without any id). "},
{"comment":" Not displayed by Chrome. Is the 'id' required? "},
{"name":"async4", "ph":"S", "ts":1623142954401800, "pid":1001, "tid":1},
{"name":"async42", "ph":"S", "ts":1623142954401850, "pid":1001, "tid":1},
{"name":"async42", "ph":"F", "ts":1623142954402150, "pid":1001, "tid":1},
{"name":"async4", "ph":"F", "ts":1623142954402200, "pid":1001, "tid":1},
{"comment":" Two pairs of async S(tart) and F(inish) events, overlapping, with an id. "},
{"name":"async5", "ph":"S", "id":5, "ts":1623142954401900, "pid":1001, "tid":1},
{"name":"async6", "ph":"S", "id":6, "ts":1623142954401950, "pid":1001, "tid":1},
{"name":"async5", "ph":"F", "id":5, "ts":1623142954402050, "pid":1001, "tid":1},
{"name":"async6", "ph":"F", "id":6, "ts":1623142954402100, "pid":1001, "tid":1},
{"comment":" Some complete events. If complete events for the same thread are not nested properly "},
{"comment":" (as the first two aren't, they overlap) Chrome mashes them together on the same line. "},