Skip to content
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 src/collector/otlp/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ fn process_sample(
let kind = match (sample_type_type, sample_type_unit) {
("samples", "count") => SampleKind::OnCPU,
("events", "nanoseconds") => SampleKind::OffCPU,
("events", "count") => SampleKind::UProbe,
_ => SampleKind::Unknown,
};

Expand Down
2 changes: 2 additions & 0 deletions src/storage/tables/traceevents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub enum SampleKind {
Mixed,
OnCPU,
OffCPU,
UProbe,
// _MaxKind should always be the last entry
// in this enum.
_MaxKind,
Expand All @@ -45,6 +46,7 @@ impl TryFrom<u8> for SampleKind {
1 => Ok(SampleKind::Mixed),
2 => Ok(SampleKind::OnCPU),
3 => Ok(SampleKind::OffCPU),
4 => Ok(SampleKind::UProbe),
_ => Err(()),
}
}
Expand Down
1 change: 1 addition & 0 deletions src/ui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ impl DevfilerUi {
ui.selectable_value(&mut self.kind, SampleKind::Mixed, "Mixed");
ui.selectable_value(&mut self.kind, SampleKind::OnCPU, "On CPU");
ui.selectable_value(&mut self.kind, SampleKind::OffCPU, "Off CPU");
ui.selectable_value(&mut self.kind, SampleKind::UProbe, "UProbe");
});

ui.label("Sample kind:");
Expand Down