History log of /fuchsia/zircon/system/ulib/trace-engine/context_api.cpp
Revision Date Author Comments
# c66773c8 24-Sep-2018 David Reveman <reveman@google.com>

[tracing] Implement support for virtual threads

The following API additions for the tracing system makes it
possible to create virtual threads that represent timelines
that execute non-CPU tasks. These virtual threads will be
visualized in the trace viewer as normal threads. Only major
difference is that duration events will only have a wall time.
CPU time is always zero.

Virtual threads are tied to the process from which they are
created and updated. Virtual threads are identified by an id
which the caller of the trace event macro controls. The
existing TRACE_NONCE() helper macro can be used to generate
a unique virtual thread id.

Each virtual thread is also associated with a name. The name
must be specified for each trace event macro call.

Test: trace-test
Change-Id: I0a5d343c0d025a56837c09fb65ea68efaaca27e8


# 29ffd950 11-Aug-2018 Doug Evans <dje@google.com>

[trace-engine] Split up context.cpp, getting big

Move trace_context_* API functions to context_api.cpp.

Tested: /boot/test/sys/trace-test

Change-Id: I77679fbf38a8de20be30fb8081401fbd7b5abb81