diff --git a/docs/tracing.md b/docs/tracing.md index 0314b7e..0e9df7c 100644 --- a/docs/tracing.md +++ b/docs/tracing.md @@ -219,7 +219,7 @@ If tracing is not enabled right now, the `TraceAggregator` will cache the is written out. The `Thread` is able to communicate with the `TraceAggregator` by storing a -`weak_ptr` to the `TraceAggregator`. This pointer is setup during +`weak_ptr` to the `TraceAggregator`. This pointer is set up during `App::RegisterThread` so there's no explicit dependency between `Thread` and `App` during construction. This decision may be revisited in the future. @@ -255,7 +255,7 @@ noting: (i.e. thus `(trusted_packet_sequence_id, iid)` is sufficient to identify an interned string). This, along with (1), implies we have to intern strings on a per-thread interner. -3. When a tracing session stop, the string interner states for all known thread +3. When a tracing session stops, the string interner states for all known thread tracers are reset. This means a subsequent session will not have the same string iids. diff --git a/include/cactus_rt/tracing/thread_tracer.h b/include/cactus_rt/tracing/thread_tracer.h index 9d43e3d..24a72f4 100644 --- a/include/cactus_rt/tracing/thread_tracer.h +++ b/include/cactus_rt/tracing/thread_tracer.h @@ -1,7 +1,6 @@ #ifndef CACTUS_TRACING_THREAD_TRACER_H_ #define CACTUS_TRACING_THREAD_TRACER_H_ -#include #ifndef CACTUS_RT_TRACING_ENABLED #include "thread_tracer.disabled.h" #else @@ -9,6 +8,7 @@ #include #include +#include #include #include "../experimental/lockless/atomic_message.h"