Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
High-performance native telemetry engine
·
Module 6
Designing the Telemetry Capture System
1
Per-Thread Buffer Design for Contention-Free Writes
Design a per-thread buffer architecture to eliminate write-side contention.
2
Thread-Local Ring Buffer Manager
Implement a manager class to hold a collection of SPSC ring buffers, one for each instrumented thread.
3
Background Consumer Thread Implementation
Implement a background consumer thread that polls all thread buffers and consolidates events.
4
C++ Preprocessor Macros for Code Instrumentation
Explain the role of C++ preprocessor macros for code instrumentation.
5
Variadic Macros for Enhanced Logging
Implement a variadic macro that captures source location, timestamp, and a formatted message.
6
Conditional Compilation for Profiling
Use preprocessor directives to make the capture macro a no-op when a profiling flag is disabled.
7
String Interning with Hash Maps
Implement a string interning table using a hash map to reduce data size and enable fast comparisons.
8
Optimizing Event Serialization for Ring Buffers
Serialize event data into a compact binary format before pushing to the ring buffer.
Previous module
Implementing a Lock-Free SPSC Ring Buffer
Next module
Getting Started with ImGui