All functions for this interface can be called from many threads at once.
However, from the same thread, there is an ordering.
- begin/end pairs must be balanced, per-thread
- begin/end pairs can be nested, per-thread
- category must come outside of a begin/end pair
Set current category for pending begin and instant events, for the current thread.
categoryZ must be a zero-terminated slice (zero not counted in length).
This is thread-safe and can be called from multiple threads.
All functions for this interface can be called from many threads at once. However, from the same thread, there is an ordering. - begin/end pairs must be balanced, per-thread - begin/end pairs can be nested, per-thread - category must come outside of a begin/end pair Set current category for pending begin and instant events, for the current thread. categoryZ must be a zero-terminated slice (zero not counted in length). This is thread-safe and can be called from multiple threads.