Skip to content

Commit b410b26

Browse files
feat(vortex): integrate Ocular tracing functionality with callbacks and telemetry
- Added `callbacks.rs` to handle tracing events such as instruction execution, jumps, and function returns. - Introduced `model.rs` to define data structures for trace events and metadata. - Created `state.rs` to manage global state, including event queues, tracing status, and pattern filtering. - Developed `telemetry.rs` to process and report tracing statistics, including hot traces and instruction hits. - Updated `mod.rs` to expose new functions for starting and stopping tracing, as well as retrieving statistics. - Implemented pattern matching for including/excluding specific code during tracing. - Ensured thread safety and efficient memory management using atomic types and queues. Co-authored-by: Iris Seravelle <iris.seravelle@gmail.com>
1 parent 7cd6e2a commit b410b26

11 files changed

Lines changed: 1807 additions & 138 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ tracing = "0.1"
2121
tracing-subscriber = { version = "0.3", features = ["env-filter", "time"] }
2222
once_cell = "1"
2323
crossbeam-channel = "0.5"
24+
crossbeam-queue = "0.3.11"
2425

2526
# Python (Default)
2627
pyo3 = { version = "0.20", features = ["auto-initialize"], optional = true}

0 commit comments

Comments
 (0)