Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c98d51b
chore: moved runtime_tracing library to a subdirectory
nickysn Jun 9, 2025
df6446f
chore: add Cargo.toml that defines the workspace
nickysn Jun 9, 2025
7954ed5
chore: cargo new runtime_tracing_cli
nickysn Jun 9, 2025
8d99885
chore: added dependency to runtime_tracing in runtime_tracing_cli
nickysn Jun 9, 2025
13a746e
chore: added dependency to capnp
nickysn Jun 9, 2025
9f46dd1
chore: add build dependency to capnpc
nickysn Jun 9, 2025
f1c2deb
feat: add trace.capnp
nickysn Jun 9, 2025
77562f6
feat: added build.rs that compiles the .capnp file to a .rs file
nickysn Jun 9, 2025
c49f542
feat: include the generated trace_capnp.rs file
nickysn Jun 9, 2025
ca5a5e4
feat: added address to ValueRecord::reference
nickysn Jun 9, 2025
b46ab05
feat: added RecordEvent.metadata to capnproto
nickysn Jun 9, 2025
59a8b26
feat: added functions for reading and writing capnproto trace files
nickysn Jun 9, 2025
a0cba12
feat: return vector of TraceLowLevelEvent in read_trace()
nickysn Jun 10, 2025
4f14a2a
feat: read_trace takes an input parameter, instead of reading from stdin
nickysn Jun 10, 2025
0165ecc
feat: write_trace now takes an output parameter
nickysn Jun 10, 2025
8883f8a
feat: introduced TraceEventsFileFormat
nickysn Jun 10, 2025
484323f
feat: implemented TraceEventsFileFormat::Binary in Tracer::store_trac…
nickysn Jun 10, 2025
0bcb1fe
feat: export TraceEventsFileFormat outside from the crate
nickysn Jun 10, 2025
6811e6b
feat: add header to the beginning of the binary file
nickysn Jun 11, 2025
ef05353
feat: validate the header in read_trace()
nickysn Jun 11, 2025
93cafff
feat: added dependency to clap in runtime_tracing_cli
nickysn Jun 11, 2025
ee0a235
feat: implemented the convert command in runtime_tracing_cli - capabl…
nickysn Jun 11, 2025
0b2b454
chore: removed unused 'use'
nickysn Jun 11, 2025
4f108cb
fix: use write_all() instead of write() to write the header, since wr…
nickysn Jun 11, 2025
869c47d
refactor: prettify the else .. if chain in determine_file_format_from…
nickysn Jun 11, 2025
fcef1d7
refactor: rm redundant 'static
nickysn Jun 11, 2025
905b2b2
refactor: use a slice instead of Vec<> for the write_trace parameter
nickysn Jun 11, 2025
669c450
ci: install capnproto
Ro6afF Jun 11, 2025
a710f7b
ci: run on all PRs
Ro6afF Jun 11, 2025
f28e827
Merge branch 'master' into binary_trace_format
nickysn Jun 12, 2025
11e985d
feat: add BigInt to the capnproto binary format
nickysn Jun 12, 2025
0e9c1a0
refactor: fn conv_typekind() replaced with a From<> trait implementation
nickysn Jun 19, 2025
855c1d9
refactor: fn conv_typekind2() also replaced with a From<> trait imple…
nickysn Jun 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -15,6 +14,8 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install capnproto
run: sudo apt-get install -y capnproto
- name: Lint
run: cargo clippy

Expand All @@ -24,6 +25,8 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install capnproto
run: sudo apt-get install -y capnproto
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down
28 changes: 5 additions & 23 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
[package]
name = "runtime_tracing"
version = "0.11.0"
edition = "2021"
authors = ["Metacraft Labs Ltd"]
description = "A library for the schema and tracing helpers for the CodeTracer db trace format"
readme = "README.md"
repository = "https://github.com/metacraft-labs/runtime_tracing"
license = "MIT"
keywords = ["debugging", "development-tools"]
[workspace]
resolver = "2"
members = ["runtime_tracing", "runtime_tracing_cli"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
base64 = "0.22.1"
num-traits = "0.2"
num-derive = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_repr = "0.1"

[lib]
name = "runtime_tracing"
path = "src/lib.rs"
[workspace.dependencies]
runtime_tracing = { path = "runtime_tracing/" }
29 changes: 29 additions & 0 deletions runtime_tracing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[package]
name = "runtime_tracing"
version = "0.11.0"
edition = "2021"
authors = ["Metacraft Labs Ltd"]
description = "A library for the schema and tracing helpers for the CodeTracer db trace format"
readme = "README.md"
repository = "https://github.com/metacraft-labs/runtime_tracing"
license = "MIT"
keywords = ["debugging", "development-tools"]
build = "build.rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
base64 = "0.22.1"
num-traits = "0.2"
num-derive = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_repr = "0.1"
capnp = "0.21.1"

[build-dependencies]
capnpc = "0.21.0"

[lib]
name = "runtime_tracing"
path = "src/lib.rs"
6 changes: 6 additions & 0 deletions runtime_tracing/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fn main() {
::capnpc::CompilerCommand::new()
.file("src/trace.capnp")
.run()
.expect("compiling schema")
}
File renamed without changes.
Loading