feat(performance): Add local profiling to vector#2
Conversation
…s rather than just transform types
…revent overwriting
… (very infrequent)
…ector into connor/local-vector-profiling
…consolidating testing infra to vector-helm
| @@ -0,0 +1,112 @@ | |||
| # CLAUDE.md | |||
Check failure
Code scanning / check-spelling
Check File Path Error
| @@ -0,0 +1,112 @@ | |||
| # CLAUDE.md | |||
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
| @@ -0,0 +1,112 @@ | |||
| # CLAUDE.md | |||
|
|
|||
| This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. | |||
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
|
|
||
| Requires [`cargo-nextest`](https://nexte.st/) for `make test`. Use `TEST_LOG=vector=debug` for verbose test output. | ||
|
|
||
| ## Formatting and Linting |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
| ### Internal Telemetry (`src/internal_telemetry/`) | ||
|
|
||
| - **Allocation tracking** (`allocations/`): Per-component memory tracking via `GroupedTraceableAllocator` wrapping jemalloc. 256 allocation groups. Enabled with `allocation-tracing` feature. | ||
| - **Component probes** (`component_probes.rs`): `VECTOR_COMPONENT_LABELS` shared-memory array for bpftrace-based CPU profiling attribution. Enabled with `component-probes` feature. Uses a single `vector_register_component` uprobe at startup; runtime attribution is via atomic byte writes (no uprobes in hot path). |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
| ### Internal Telemetry (`src/internal_telemetry/`) | ||
|
|
||
| - **Allocation tracking** (`allocations/`): Per-component memory tracking via `GroupedTraceableAllocator` wrapping jemalloc. 256 allocation groups. Enabled with `allocation-tracing` feature. | ||
| - **Component probes** (`component_probes.rs`): `VECTOR_COMPONENT_LABELS` shared-memory array for bpftrace-based CPU profiling attribution. Enabled with `component-probes` feature. Uses a single `vector_register_component` uprobe at startup; runtime attribution is via atomic byte writes (no uprobes in hot path). |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
| ### Internal Telemetry (`src/internal_telemetry/`) | ||
|
|
||
| - **Allocation tracking** (`allocations/`): Per-component memory tracking via `GroupedTraceableAllocator` wrapping jemalloc. 256 allocation groups. Enabled with `allocation-tracing` feature. | ||
| - **Component probes** (`component_probes.rs`): `VECTOR_COMPONENT_LABELS` shared-memory array for bpftrace-based CPU profiling attribution. Enabled with `component-probes` feature. Uses a single `vector_register_component` uprobe at startup; runtime attribution is via atomic byte writes (no uprobes in hot path). |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
Summary
Vector configuration
How did you test this PR?
Change Type
Is this a breaking change?
Does this PR include user facing changes?
no-changeloglabel to this PR.References
Notes
@vectordotdev/vectorto reach out to us regarding this PR.pre-pushhook, please see this template.make fmtmake check-clippy(if there are failures it's possible some of them can be fixed withmake clippy-fix)make testgit merge origin masterandgit push.Cargo.lock), pleaserun
make build-licensesto regenerate the license inventory and commit the changes (if any). More details here.