Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PROF-8967] Reduce memory footprint and allocations for profiling timeline data #293

Merged
merged 18 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions profiling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ serde = {version = "1.0", features = ["derive"]}
serde_json = {version = "1.0"}
tokio = {version = "1.23", features = ["rt", "macros"]}
tokio-util = "0.7.1"
byteorder = { version = "1.5", features = ["std"] }
uuid = { version = "1.4.1", features = ["v4", "serde"] }
6 changes: 6 additions & 0 deletions profiling/src/internal/label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,9 @@ impl LabelSetId {
self.0 as usize
}
}

impl From<LabelSetId> for u32 {
fn from(value: LabelSetId) -> Self {
value.0
}
}
1 change: 1 addition & 0 deletions profiling/src/internal/observation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//! single pointer of overhead.

mod observations;
mod timestamped_observations;
mod trimmed_observation;

// We keep trimmed_observation private, to ensure that only maps can make and
Expand Down
Loading
Loading