Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodSpeedHQ/codspeed
/ functions
Functions
1,682 in github.com/CodSpeedHQ/codspeed
⨍
Functions
1,682
◇
Types & classes
335
↓ 4 callers
Function
memtrack_path
The binary that carries the eBPF capabilities: a copy of this executable, so the runner itself never runs in glibc's secure-execution mode, which stri
src/executor/memory/setup.rs:47
↓ 4 callers
Function
multipart_archive
Archive split in `part_size` parts. The checksums are placeholders: the uploader sends the headers the API presigned, not checksums of its own.
src/upload/uploader.rs:640
↓ 4 callers
Function
ok_response
(extra_headers: &str, body: &str)
src/upload/uploader.rs:631
↓ 4 callers
Function
page_size
()
crates/memtrack/tests/rss_tests.rs:21
↓ 4 callers
Function
parse_git_remote
(remote: &str)
src/cli/run/helpers/parse_git_remote.rs:49
↓ 4 callers
Function
parse_raw
(yaml: &str)
src/config.rs:342
↓ 4 callers
Function
post
( receiver: &OtelReceiver, path: &str, headers: Headers<'_>, body: impl Into<V
src/instruments/otel/receiver.rs:427
↓ 4 callers
Function
run_command_with_log_pipe_and_callback
Run a command and log its output to stdout and stderr # Arguments - `cmd`: The command to run. - `cb`: A callback function that takes the process and
src/executor/helpers/run_command_with_log_pipe.rs:30
↓ 4 callers
Method
set
(name: &'static str, target_value: i64)
src/executor/helpers/linux_sysctl.rs:15
↓ 4 callers
Function
should_provider_logger_handle_record
(record: &log::Record)
src/run_environment/logger.rs:3
↓ 4 callers
Function
spawn_recording_mock
Serves the next `max_conns` connections, answering each request with the response `respond` builds for it, and returns every request it received.
src/upload/uploader.rs:577
↓ 4 callers
Function
suspend_progress_bar
Hide the progress bar temporarily, execute `f`, then redraw the progress bar. If the output is not a TTY, `f` will be executed without hiding the pro
src/local_logger/mod.rs:83
↓ 4 callers
Function
v1_spans
The rows of the version 1 fixtures.
crates/runner-shared/src/telemetry/tests.rs:13
↓ 4 callers
Function
valid_walltime_results_json
(benchmark_count: usize)
src/executor/wall_time/helpers.rs:123
↓ 4 callers
Function
write_telemetry_artifacts
Decodes `requests` into the [`SPANS_ARTIFACT`] and [`LOGS_ARTIFACT`] of `profile_folder`, then removes them. An artifact is only written when it has r
src/instruments/otel/artifacts.rs:31
↓ 3 callers
Function
_find_repository_root
the core logic is extracted into a separate function so that it can be tested
src/cli/run/helpers/find_repository_root.rs:18
↓ 3 callers
Method
as_command_line
Returns the command line as a string for debugging/testing purposes
src/executor/helpers/command.rs:136
↓ 3 callers
Function
attributes
(attributes: Vec<KeyValue>)
src/instruments/otel/rows.rs:153
↓ 3 callers
Function
black_box
crates/memtrack/testdata/alloc_cpp/src/main.cpp:21
↓ 3 callers
Method
body
Request body holding `length` bytes of the content starting at `offset`. On-disk content is streamed rather than loaded in memory.
src/upload/profile_archive.rs:186
↓ 3 callers
Function
can_elevate_without_prompt
Whether we can elevate privileges without prompting the user: either we're already root, or `sudo` is installed and runs without asking for a password
src/executor/helpers/run_with_sudo.rs:42
↓ 3 callers
Method
check_oidc_configuration
Decide how the uploads of this job authenticate. A static `CODSPEED_TOKEN` is used as is when there is one. Otherwise the runner mints an OIDC token
src/run_environment/circleci/provider.rs:225
↓ 3 callers
Method
close
(self)
src/instruments/otel/artifacts.rs:135
↓ 3 callers
Function
create_venv
Creates `real/bin/python3` and a `venv/bin/python3` pointing at it.
src/executor/valgrind/helpers/venv_compat.rs:88
↓ 3 callers
Method
ctl_sender
(&mut self)
src/executor/shared/fifo.rs:54
↓ 3 callers
Function
detect
Detect the run environment from the process environment, without any configuration.
src/run_environment/mod.rs:27
↓ 3 callers
Function
download_pinned_file
Download a `PinnedBinary` and verify its bytes against its pinned SHA-256.
src/cli/run/helpers/download_file.rs:124
↓ 3 callers
Method
drain
Block until a full `consume()` of the ring buffer completes. When every producer is stopped, all pending entries are in the channel afterwards.
crates/memtrack/src/ebpf/poller.rs:154
↓ 3 callers
Function
empty_benchmarks_json
()
src/executor/wall_time/helpers.rs:167
↓ 3 callers
Function
ensure_libc_debug_symbols
Install the libc debug symbols so frames of the system libc resolve to their real names. Best effort: they sharpen the output but are not needed to r
src/executor/helpers/libc_debug_info.rs:88
↓ 3 callers
Function
env
Env vars to set on benchmark processes for `mode`.
crates/exec-harness/src/runtime_env/mod.rs:11
↓ 3 callers
Method
expected_run_parts_count
Compute the total number of executor runs that will be performed. All `Exec` targets are combined into a single invocation, while each `Entrypoint` t
src/executor/config.rs:219
↓ 3 callers
Method
extension
(self)
src/instruments/otel/receiver.rs:358
↓ 3 callers
Method
finalize
(&self, success: bool)
src/local_logger/rolling_buffer/mod.rs:366
↓ 3 callers
Function
find_debug_file
Search for a separate debug info file, in GDB's order (see [Separate Debug Files]): build-id path first, then `.gnu_debuglink` with CRC32 validation.
src/executor/helpers/debug_file.rs:14
↓ 3 callers
Function
find_debug_file_in
( object: &object::File, binary_path: &Path, debug_dir: &Path, )
src/executor/helpers/debug_file.rs:28
↓ 3 callers
Method
finish
Stop the attach worker, if any, and surface any fatal error it recorded, including missed exec mappings (incomplete allocator coverage).
crates/memtrack/src/ebpf/tracker.rs:230
↓ 3 callers
Function
first_fork_pair
The first fork observed: `(parent_pid, child_pid)`.
crates/memtrack/tests/rss_tests.rs:250
↓ 3 callers
Function
format_memory
(bytes: f64, fraction_digits: Option<usize>)
src/cli/run/helpers/format_memory.rs:25
↓ 3 callers
Function
format_with_thousands_sep
(n: u64)
src/upload/benchmark_display.rs:19
↓ 3 callers
Function
get_codspeed_valgrind_target
(system_info: &SystemInfo)
src/executor/valgrind/setup.rs:50
↓ 3 callers
Function
get_executor_from_mode
( mode: &RunnerMode, walltime_profiler: Option<WalltimeProfiler>, )
src/executor/mod.rs:51
↓ 3 callers
Method
get_hash
(&self)
src/upload/upload_metadata.rs:6
↓ 3 callers
Function
get_or_insert_key
Register a path in the map if absent, assigning a new unique key. Returns the assigned key.
src/executor/shared/module_artifacts/save_artifacts.rs:66
↓ 3 callers
Function
get_pr_number
()
src/run_environment/buildkite/provider.rs:29
↓ 3 callers
Method
get_run_environment_metadata
(&self)
src/run_environment/github_actions/provider.rs:176
↓ 3 callers
Method
get_run_environment_metadata
(&self)
src/run_environment/gitlab_ci/provider.rs:158
↓ 3 callers
Method
get_run_provider_run_part
(&self)
src/run_environment/gitlab_ci/provider.rs:172
↓ 3 callers
Function
get_working_perf_executable
Attempts to find the path to the `perf` executable that is installed and working. Returns None if `perf` is not installed or not functioning correctly
src/executor/wall_time/profiler/perf/perf_executable.rs:13
↓ 3 callers
Method
handle_fifo_messages
Handles all incoming FIFO messages until it's closed, or until the child process exits. The `handle_cmd` callback is invoked first for each command.
src/executor/shared/fifo.rs:170
↓ 3 callers
Function
harvest_perf_maps_for_pids
( profile_folder: &Path, pids: &HashSet<libc::pid_t>, )
src/executor/helpers/harvest_perf_maps_for_pids.rs:6
↓ 3 callers
Function
inherit_parent_mappings
Copy every module the parent pid has mounted onto the child pid. Forked processes inherit their parent's memory mappings, but there will not be any M
src/executor/wall_time/profiler/perf/parse_perf_file.rs:177
↓ 3 callers
Function
install_cached
Installs packages with caching support. This function provides a common pattern for installing tools on Ubuntu/Debian systems with automatic caching
src/executor/helpers/apt.rs:52
↓ 3 callers
Function
is_codspeed_debug_enabled
()
src/executor/helpers/env.rs:68
↓ 3 callers
Method
is_local
(&self)
src/executor/orchestrator.rs:29
↓ 3 callers
Method
is_module_event
Whether the event places modules in processes: an executable mapping, or a fork or exec that inherits or drops them.
crates/runner-shared/src/artifacts/memtrack/mod.rs:181
↓ 3 callers
Function
log_rows
(request: ExportLogsServiceRequest)
src/instruments/otel/rows.rs:74
↓ 3 callers
Function
make_module_with_parent
(ppid: pid_t, load_bias: u64)
src/executor/wall_time/profiler/perf/parse_perf_file.rs:300
↓ 3 callers
Function
malloc_events
(range: std::ops::Range<u64>)
crates/runner-shared/src/artifacts/memtrack/pipeline.rs:181
↓ 3 callers
Method
name
Returns a human-readable name for the allocator.
crates/memtrack/src/allocators/mod.rs:52
↓ 3 callers
Method
next
(&mut self)
crates/runner-shared/src/artifacts/memtrack/mod.rs:213
↓ 3 callers
Method
open
(ctl_path: &Path, ack_path: &Path)
src/executor/shared/fifo.rs:120
↓ 3 callers
Function
open_fifo_sender
(path: &Path)
src/executor/shared/fifo.rs:107
↓ 3 callers
Function
parse_repository_from_remote
Parse a git remote URL and extract the provider, owner, and repository name
src/cli/run/helpers/parse_git_remote.rs:30
↓ 3 callers
Function
partial_batch
()
crates/memtrack/src/ebpf/poller.rs:234
↓ 3 callers
Method
perf_fifo_mut
(&mut self)
src/executor/wall_time/profiler/perf/mod.rs:60
↓ 3 callers
Function
presigned
Request to the presigned URL, with its signed headers
src/upload/s3.rs:19
↓ 3 callers
Method
profile_mut
(&mut self, profile_name: &str)
src/config.rs:286
↓ 3 callers
Function
read
(artifact: &[u8])
crates/runner-shared/src/telemetry/tests.rs:97
↓ 3 callers
Function
rebind_pid_mm
Rebind pid's address space; mm == 0 unbinds at exit. The owner_by_mm entry is only * dropped while it still names pid: a live CLONE_VM sibling shares
crates/memtrack/src/ebpf/c/utils/mm_ownership.h:25
↓ 3 callers
Method
render_frame
Return the full rendered frame as a vector of strings.
src/local_logger/rolling_buffer/mod.rs:186
↓ 3 callers
Function
resolve_symbol_offsets
Resolve libbpf attach targets for every defined symbol in `lib_path`.
crates/memtrack/src/ebpf/memtrack/mod.rs:60
↓ 3 callers
Method
results_dir
(&self)
src/executor/wall_time/helpers.rs:100
↓ 3 callers
Function
resume
Resume a process previously stopped by [`spawn_stopped`]. A vanished process (`ESRCH`) is treated as success: the stop is moot.
crates/memtrack/src/ebpf/spawn.rs:68
↓ 3 callers
Function
rmap_bytes
Summed rmap bytes for one pid's `member` counter, in one direction. `tid` narrows to a single performing task, which is how a foreign actor's events a
crates/memtrack/tests/rss_tests.rs:257
↓ 3 callers
Function
rss_status_kb_pid
crates/memtrack/testdata/rss/rss_report.h:8
↓ 3 callers
Function
run_build_command
Run a build command, piping its output to the logs, and fail on a non-zero exit status.
src/executor/valgrind/build_from_source.rs:76
↓ 3 callers
Function
run_cli
(argv: I)
crates/memtrack/src/cli.rs:37
↓ 3 callers
Function
run_command_with_log_pipe
(cmd: Command)
src/executor/helpers/run_command_with_log_pipe.rs:103
↓ 3 callers
Function
run_script
Runs the script with a fake `uv` and `ldd` first in `PATH`. `uv python find` reports `uv_python`, and `ldd` always reports `LIBPYTHON` as missing.
src/executor/valgrind/helpers/venv_compat.rs:64
↓ 3 callers
Function
run_tracked
Run `command` to completion under `tracker` and drain its events, handing back the still-live tracker so BPF state can be read before teardown. `check
crates/memtrack/tests/shared.rs:361
↓ 3 callers
Method
save_file_to
( &self, folder: P, filename: &str, )
crates/runner-shared/src/artifacts/mod.rs:41
↓ 3 callers
Function
save_module_artifacts
Save the native modules memtrack mapped, per-process perf maps, and JIT unwind data needed for offline stack attribution. The keyed native and JIT fil
src/executor/memory/module_artifacts.rs:42
↓ 3 callers
Function
self_exe
The executable that internal subcommands are re-invoked through.
src/cli/mod.rs:133
↓ 3 callers
Method
send_command
(&self, cmd: IpcCommand)
crates/memtrack/src/ipc.rs:47
↓ 3 callers
Function
setup_debuglink_tmpdir
( binary: &Path, debug_file: &Path, )
src/executor/helpers/debug_file.rs:102
↓ 3 callers
Method
signal_release
Tell the child to exit. Idempotent, and does not wait for the exit — see [`Self::release`] and [`FdHolderSet::release_all`] for that.
crates/memtrack/src/ebpf/memtrack/fd_holder.rs:113
↓ 3 callers
Function
span_rows
The rows of the spans of `request`, without those whose trace or span id is invalid.
src/instruments/otel/rows.rs:21
↓ 3 callers
Method
support_level
(&self, system_info: &SystemInfo)
src/executor/memory/executor.rs:143
↓ 3 callers
Method
symbols
Returns the symbol names used to detect this allocator in binaries.
crates/memtrack/src/allocators/static_linked.rs:9
↓ 3 callers
Method
take_events
Take ownership of the event receiver. Can only be taken once.
crates/memtrack/src/session.rs:46
↓ 3 callers
Function
track_command_with_tracker
(command: Command, tracker: Tracker)
crates/memtrack/tests/shared.rs:348
↓ 3 callers
Function
track_fixture
Run a fixture under `track` and return the raw `/proc` RSS report it wrote to its argv[1] alongside the collected events. The report read is best-eff
crates/memtrack/tests/rss_tests.rs:213
↓ 3 callers
Method
update_peaks
(&mut self)
crates/memtrack/tests/rss_tests.rs:89
↓ 3 callers
Method
url
(&self)
src/binary_pins.rs:33
↓ 3 callers
Method
validate
Validate the configuration Checks for invalid combinations of options, particularly in walltime config
src/project_config/mod.rs:34
↓ 3 callers
Method
wait_for_ack
(&mut self)
src/executor/wall_time/profiler/perf/fifo.rs:41
↓ 3 callers
Method
wrap_bench
Wrap the benchmark leaf so it runs pinned according to this mode. The profiler wraps its recorder around the result, so this must only touch the leaf
src/executor/wall_time/isolation.rs:92
↓ 3 callers
Method
write
(&mut self, rows: impl IntoIterator<Item = R>)
crates/runner-shared/src/telemetry/mod.rs:176
↓ 3 callers
Function
write_root_file
Write to a root-owned /proc or /sys node. `run_with_sudo` cannot pipe stdin, so the redirect happens inside a shell instead of `sudo tee`.
src/executor/memory/tunables.rs:255
← previous
next →
101–200 of 1,682, ranked by callers