Thread index of the chunk must be lower than maxThreads.
Whichever thread the chunk belongs to, its first event must have time at least
equal to the last event in the last chunk from that thread. (This can be achieved
by prefixing the chunk with a checkpoint event that stores absolute time - which
of course must be at least as late as any event in the previous chunk).
Add a chunk of profiling data.
Thread index of the chunk must be lower than maxThreads.
Whichever thread the chunk belongs to, its first event must have time at least equal to the last event in the last chunk from that thread. (This can be achieved by prefixing the chunk with a checkpoint event that stores absolute time - which of course must be at least as late as any event in the previous chunk).