Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodSpeedHQ/codspeed
/ functions
Functions
1,061 in github.com/CodSpeedHQ/codspeed
⨍
Functions
1,061
◇
Types & classes
222
↓ 80 callers
Method
arg
(&mut self, arg: S)
src/executor/helpers/command.rs:35
↓ 78 callers
Method
path
(&self)
src/executor/wall_time/helpers.rs:96
↓ 48 callers
Method
args
(&mut self, args: I)
src/executor/helpers/command.rs:40
↓ 37 callers
Method
is_empty
(&self)
src/config.rs:31
↓ 36 callers
Method
as_str
(self)
src/binary_pins.rs:49
↓ 35 callers
Function
get_env_variable
(name: &str)
src/cli/run/helpers/get_env_var.rs:5
↓ 15 callers
Method
current_dir
(&mut self, dir: D)
src/executor/helpers/command.rs:73
↓ 15 callers
Function
run_rounds
( bench_uri: String, command: Vec<String>, config: &ExecutionOptions, )
crates/exec-harness/src/walltime/benchmark_loop.rs:9
↓ 14 callers
Function
black_box
crates/memtrack/testdata/alloc_cpp/src/main.cpp:21
↓ 14 callers
Method
next
(&mut self)
crates/runner-shared/src/artifacts/memtrack.rs:84
↓ 13 callers
Method
finish
Finish writing and flush the compression stream
crates/runner-shared/src/artifacts/memtrack.rs:115
↓ 13 callers
Function
validate_walltime_results
Validates that walltime results exist and contain at least one benchmark. When `allow_empty` is true, empty benchmark results are allowed.
src/executor/wall_time/helpers.rs:15
↓ 12 callers
Method
build
(self)
src/executor/helpers/command.rs:25
↓ 12 callers
Method
run
( &mut self, execution_context: &ExecutionContext, _mongo_tracer: &Option<MongoTracer>
src/executor/memory/executor.rs:142
↓ 11 callers
Method
env
(&mut self, key: K, value: V)
src/executor/helpers/command.rs:51
↓ 10 callers
Function
create_test_setup
(config: ExecutorConfig)
src/executor/tests.rs:123
↓ 10 callers
Method
parse
(reader: &[u8])
crates/runner-shared/src/unwind_data.rs:39
↓ 9 callers
Method
send_cmd
(&mut self, cmd: FifoCommand)
src/executor/shared/fifo.rs:146
↓ 9 callers
Method
write_json_file
(&self, filename: &str, content: &str)
src/executor/wall_time/helpers.rs:108
↓ 8 callers
Function
compute_load_bias
( runtime_start_addr: u64, runtime_end_addr: u64, runtime_file_offset: u64, object: &object::F
src/executor/wall_time/profiler/perf/elf_helper.rs:43
↓ 8 callers
Function
parse_git_remote
(remote: &str)
src/cli/run/helpers/parse_git_remote.rs:49
↓ 8 callers
Function
parse_valgrind_codspeed_version
Parse a valgrind version string and extract the upstream semver plus the optional CodSpeed iteration number. Accepted formats: - `valgrind-3.25.1.cod
src/executor/valgrind/setup.rs:69
↓ 8 callers
Function
sleep_cmd
Helper to create a simple sleep 100ms command
crates/exec-harness/src/walltime/tests.rs:8
↓ 8 callers
Method
wrap
(&mut self, wrapper: S, wrapper_args: I)
src/executor/helpers/command.rs:84
↓ 7 callers
Function
classify_valgrind_version
Classify a trimmed `valgrind --version` output against the pinned CodSpeed valgrind version.
src/executor/valgrind/setup.rs:141
↓ 7 callers
Function
codspeed_cmd
(cwd: &Path)
tests/working_directory.rs:18
↓ 7 callers
Method
file_name
(pid: Option<pid_t>)
crates/runner-shared/src/artifacts/mod.rs:22
↓ 7 callers
Function
format_duration
(val: f64, fraction_digits: Option<usize>)
src/cli/run/helpers/format_duration.rs:42
↓ 7 callers
Method
get_run_provider_run_part
For Github, the run environment run part is the most complicated since we support matrix jobs. Computing the `run_part_id`: - not in a matrix: - simp
src/run_environment/github_actions/provider.rs:213
↓ 7 callers
Method
id
The distro/OS id as it appears on the wire (matches `sysinfo::System::distribution_id()`).
src/system/os.rs:39
↓ 7 callers
Method
is_empty
(reader: R)
crates/runner-shared/src/artifacts/memtrack.rs:30
↓ 7 callers
Method
name
(&self)
src/executor/memory/executor.rs:99
↓ 7 callers
Function
write_cwd_check_script
Create a bash script that validates CWD matches the expected absolute path.
tests/working_directory.rs:26
↓ 6 callers
Function
indexed_semantic_key
Build a semantic key from a global index and a path. The key is `{index}__{basename}` where `basename` is the last component of the path. The index e
src/executor/wall_time/profiler/perf/naming.rs:7
↓ 6 callers
Method
save_to
( &self, path: &Path, perf_file_path: &Path, )
src/executor/wall_time/profiler/perf/mod.rs:255
↓ 5 callers
Method
apply_run_command_transformations
Applies the necessary transformations to the command to run the benchmark TODO: move this to a `Instrument` trait, refactor and implement it for valgr
src/instruments/mongo_tracer.rs:196
↓ 5 callers
Method
as_char
Return the icon as a `char`. Panics if the icon's string is not a single character (all current icons are single codepoints, so this is always safe).
src/local_logger/icons.rs:41
↓ 5 callers
Function
assert_load_bias
( start_addr: u64, end_addr: u64, file_offset: u64, module_path: &str,
src/executor/wall_time/profiler/perf/unwind_data.rs:95
↓ 5 callers
Method
envs
(&mut self, vars: I)
src/executor/helpers/command.rs:61
↓ 5 callers
Function
find_repository_root
(base_dir: &Path)
src/cli/run/helpers/find_repository_root.rs:8
↓ 5 callers
Function
format_memory
(bytes: f64, fraction_digits: Option<usize>)
src/cli/run/helpers/format_memory.rs:25
↓ 5 callers
Function
get_walltime_executor
()
src/executor/tests.rs:213
↓ 5 callers
Function
indent_lines
Indent every line of a string with the given prefix
src/local_logger/mod.rs:210
↓ 5 callers
Method
ingest
Ingest text into the rolling buffer, splitting on newlines and maintaining the max_lines window.
src/local_logger/rolling_buffer/mod.rs:78
↓ 5 callers
Function
is_root_user
()
src/executor/helpers/run_with_sudo.rs:9
↓ 5 callers
Function
make_test_buffer
Create a RollingBuffer with fixed dimensions for deterministic test output.
src/local_logger/rolling_buffer/tests.rs:4
↓ 5 callers
Function
merge_walltime_options
Merge default walltime options with target-specific overrides
src/cli/exec/multi_targets.rs:8
↓ 5 callers
Function
migrate
Fold a [`RawConfig`] into the canonical [`PersistedConfig`], returning the upgraded persisted state and a flag indicating whether the on-disk shape ne
src/config.rs:166
↓ 5 callers
Function
run_with_sudo
Run a command with sudo after validating sudo access
src/executor/helpers/run_with_sudo.rs:99
↓ 5 callers
Method
size
(&self)
src/upload/profile_archive.rs:62
↓ 5 callers
Function
valid_walltime_results_json
(benchmark_count: usize)
src/executor/wall_time/helpers.rs:123
↓ 5 callers
Function
walltime_config
(command: &str, enable_profiler: bool)
src/executor/tests.rs:235
↓ 5 callers
Method
wrap_with
(&mut self, wrapper_cmd: CommandBuilder)
src/executor/helpers/command.rs:109
↓ 5 callers
Function
write_config
Write a codspeed.yml config file.
tests/working_directory.rs:43
↓ 4 callers
Method
attach_libc_probes
Attach standard library allocation probes (libc-style: malloc, free, calloc, etc.) This works for libc and allocators that export standard symbol name
crates/memtrack/src/ebpf/memtrack.rs:363
↓ 4 callers
Method
attach_libcpp_probes
Attach C++ operator new/delete probes. These are mangled C++ symbols that wrap the underlying allocator. C++ operators have identical signatures to ma
crates/memtrack/src/ebpf/memtrack.rs:370
↓ 4 callers
Method
attach_standard_probes
( &mut self, lib_path: &Path, prefixes: &[&str], suffixes: &[&str], )
crates/memtrack/src/ebpf/memtrack.rs:323
↓ 4 callers
Function
build_detailed_summary
(result: &FetchLocalRunBenchmarkResult)
src/upload/benchmark_display.rs:298
↓ 4 callers
Function
build_table_with_style
(rows: &[T], instrument: &str, icon: Icon)
src/upload/benchmark_display.rs:99
↓ 4 callers
Function
command_has_executable
Check if a command string contains any of the given executable names. Splits the command into tokens on whitespace and shell operators, then checks f
src/executor/helpers/detect_executable.rs:20
↓ 4 callers
Function
compile_spawn_binary
(name: &str)
crates/memtrack/tests/spawn_tests.rs:9
↓ 4 callers
Function
create_fifo
(path: P)
src/executor/shared/fifo.rs:18
↓ 4 callers
Method
create_results_dir
(&self)
src/executor/wall_time/helpers.rs:104
↓ 4 callers
Function
download_pinned_file
Download a `PinnedBinary` and verify its bytes against its pinned SHA-256. On mismatch the partial file is removed and an error is returned.
src/cli/run/helpers/download_file.rs:31
↓ 4 callers
Method
enable
(&self)
crates/memtrack/src/ipc.rs:61
↓ 4 callers
Function
format_with_thousands_sep
(n: u64)
src/upload/benchmark_display.rs:18
↓ 4 callers
Function
get_group_event
Returns the group event if the record is a group event, otherwise returns `None`.
src/logger.rs:67
↓ 4 callers
Method
get_host_port_from_uris
(&self)
src/instruments/mongo_tracer.rs:77
↓ 4 callers
Function
get_json_event
(record: &log::Record)
src/logger.rs:109
↓ 4 callers
Method
get_run_environment_metadata
(&self)
src/run_environment/local/provider.rs:349
↓ 4 callers
Method
get_run_provider_run_part
(&self)
src/run_environment/local/provider.rs:367
↓ 4 callers
Method
icon
Icon for this executor.
src/executor/interfaces.rs:34
↓ 4 callers
Function
is_system_compatible
(system_info: &SystemInfo)
src/executor/helpers/apt.rs:9
↓ 4 callers
Function
is_tracked
Helper to check if a PID or any of its ancestors should be tracked */
crates/memtrack/src/ebpf/c/memtrack.bpf.c:52
↓ 4 callers
Method
label
Human-readable label for this executor.
src/executor/interfaces.rs:25
↓ 4 callers
Function
make_module_with_parent
(ppid: pid_t, load_bias: u64)
src/executor/wall_time/profiler/perf/parse_perf_file.rs:305
↓ 4 callers
Method
name
(&self)
src/executor/wall_time/executor.rs:151
↓ 4 callers
Function
parse_raw
(yaml: &str)
src/config.rs:342
↓ 4 callers
Method
setup
()
src/executor/wall_time/executor.rs:68
↓ 4 callers
Method
token
The token this client currently authenticates with, if any. Note: this is not necessarily the token the client was built with — in CI with OIDC, [`Se
src/api_client.rs:49
↓ 4 callers
Function
wrap_with_sudo
Wrap with sudo if not running as root
src/executor/helpers/run_with_sudo.rs:74
↓ 4 callers
Method
write_event
Write a single event to the stream
crates/runner-shared/src/artifacts/memtrack.rs:109
↓ 4 callers
Method
write_text_file
(&self, filename: &str, content: &str)
src/executor/wall_time/helpers.rs:115
↓ 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
add_benchmark_timestamps
(&self, start: u64, end: u64)
crates/instrument-hooks-bindings/src/mod.rs:78
↓ 3 callers
Function
assert_installer_variant_is_listed
(binary: PinnedBinary)
src/binary_pins.rs:196
↓ 3 callers
Function
binary_has_capabilities
Whether `binary` holds every capability in `required` (a mask built from [`caps::Capability::bitmask`]) in its permitted file-capability set.
src/executor/helpers/capabilities.rs:34
↓ 3 callers
Function
build_gql_api_client
(token: Option<&str>, api_url: String)
src/api_client.rs:62
↓ 3 callers
Function
build_path_env
Build the `PATH` value with optional language introspection wrappers prepended. When `enable_introspection` is true, the Node.js and Go wrapper scrip
src/executor/helpers/env.rs:85
↓ 3 callers
Function
check_ld_preload_compatible
Checks if the given executable will honor LD_PRELOAD. Returns `Ok(())` if LD_PRELOAD will work, or an error with a descriptive message if not. LD_PR
crates/exec-harness/src/analysis/ld_preload_check.rs:15
↓ 3 callers
Method
ctl_sender
(&mut self)
src/executor/shared/fifo.rs:51
↓ 3 callers
Function
empty_benchmarks_json
()
src/executor/wall_time/helpers.rs:167
↓ 3 callers
Method
encoding
(&self)
src/upload/profile_archive.rs:73
↓ 3 callers
Function
env_var_validation_script
(env: &str, expected: &str)
src/executor/tests.rs:51
↓ 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:163
↓ 3 callers
Function
find_all
Find dynamically linked allocator libraries on the system.
crates/memtrack/src/allocators/dynamic.rs:45
↓ 3 callers
Function
find_debug_file_in
( object: &object::File, binary_path: &Path, debug_dir: &Path, )
src/executor/wall_time/profiler/perf/elf_helper.rs:218
↓ 3 callers
Function
format_distribution_pct
Format a percentage distribution value with color intensity
src/upload/benchmark_display.rs:46
↓ 3 callers
Function
generate_name_and_uri
(name: &Option<String>, command: &[String])
crates/exec-harness/src/uri.rs:13
↓ 3 callers
Function
get_announcement_event
(record: &log::Record)
src/logger.rs:89
next →
1–100 of 1,061, ranked by callers