2021-06-23 03:48:07 -05:00
|
|
|
[
|
|
|
|
{"name":"comment", "comment":"Let's give some pids and tids names"},
|
|
|
|
|
|
|
|
{"name":"process_name", "ph":"M", "args":{"name":"Hey"},"pid":1000, "tid":1},
|
|
|
|
{"name":"thread_name", "ph":"M", "args":{"name":"Foo"},"pid":1000, "tid":1},
|
|
|
|
{"name":"thread_name", "ph":"M", "args":{"name":"Bar"},"pid":1000, "tid":2},
|
|
|
|
{"name":"process_name", "ph":"M", "args":{"name":"Zap"},"pid":1001, "tid":1},
|
|
|
|
{"name":"thread_name", "ph":"M", "args":{"name":"Mbl"},"pid":1001, "tid":1},
|
|
|
|
|
|
|
|
{"comment":" Two pairs of async b(egin) and e(nd) events, nested (with the same id). Don't show up at all in Chrome!?"},
|
|
|
|
|
|
|
|
{"name":"async1", "ph":"b", "id":1, "ts":1623142954400200, "pid":1001, "tid":1},
|
|
|
|
{"name":"async12", "ph":"b", "id":1, "ts":1623142954400250, "pid":1001, "tid":1},
|
|
|
|
{"name":"async12", "ph":"e", "id":1, "ts":1623142954400350, "pid":1001, "tid":1},
|
|
|
|
{"name":"async1", "ph":"e", "id":1, "ts":1623142954400700, "pid":1001, "tid":1},
|
|
|
|
|
|
|
|
{"comment":" A single pair of async b and e events. These doesn't show up in Chrome either, sigh."},
|
|
|
|
|
2021-06-23 04:22:31 -05:00
|
|
|
{"name":"async2", "ph":"b", "id":2, "ts":1623142954401000, "pid":1001, "tid":1},
|
|
|
|
{"name":"async2", "ph":"e", "id":2, "ts":1623142954401200, "pid":1001, "tid":1},
|
2021-06-23 03:48:07 -05:00
|
|
|
|
2021-06-23 04:22:31 -05:00
|
|
|
{"comment":" Two pairs of async S(tart) and F(inish) events, nested. "},
|
2021-06-23 03:48:07 -05:00
|
|
|
{"comment":" These are said to be deprecated but do show up in Chrome. Yay for documentation and implementation being in sync. "},
|
|
|
|
|
2021-06-23 04:22:31 -05:00
|
|
|
{"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},
|
2021-06-23 03:48:07 -05:00
|
|
|
|
2021-06-23 04:26:27 -05:00
|
|
|
{"comment":" Events with same names at a later time, not overlapping. "},
|
|
|
|
|
|
|
|
{"name":"async5", "ph":"S", "id":5, "ts":1623142954402900, "pid":1001, "tid":1},
|
|
|
|
{"name":"async6", "ph":"S", "id":6, "ts":1623142954402950, "pid":1001, "tid":1},
|
|
|
|
{"name":"async5", "ph":"F", "id":5, "ts":1623142954403050, "pid":1001, "tid":1},
|
|
|
|
{"name":"async6", "ph":"F", "id":6, "ts":1623142954403100, "pid":1001, "tid":1},
|
|
|
|
|
2021-06-23 03:48:07 -05:00
|
|
|
{"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. "},
|
|
|
|
|
|
|
|
{"name":"complete1","ph":"X", "ts":1623142954400220,"pid":1001,"tid":1,"dur":500},
|
|
|
|
{"name":"complete2","ph":"X", "ts":1623142954400300,"pid":1001,"tid":1,"dur":500},
|
|
|
|
{"name":"complete3","ph":"X", "ts":1623142954400305,"pid":1001,"tid":2,"dur":500},
|
|
|
|
{"name":"complete4","ph":"X", "ts":1623142954400900,"pid":1001,"tid":2,"dur":200}
|
|
|
|
]
|