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
↓ 2 callers
Method
add
Delta accumulation (rmap: summed folio add/remove deltas from zero).
crates/memtrack/tests/rss_tests.rs:72
↓ 2 callers
Method
add_benchmark_timestamps
(&self, start: u64, end: u64)
crates/instrument-hooks-bindings/src/mod.rs:78
↓ 2 callers
Method
add_load_bias
(&mut self, load_bias: u64)
src/executor/shared/module_artifacts/loaded_module.rs:35
↓ 2 callers
Function
allocation_pid
Find the fixture's allocation and return the pid that made it. The stack must be captured, since offline attribution walks it through the JIT frame.
crates/memtrack/tests/interpreter_tests.rs:22
↓ 2 callers
Function
api_client
(token: Option<&str>)
src/run_environment/circleci/provider.rs:502
↓ 2 callers
Method
append_to_file
Write symbols to a file applying the given load_bias.
src/executor/shared/module_artifacts/module_symbols.rs:193
↓ 2 callers
Function
apply
Applies [`env`] to the current process, so every child inherits it. Existing values are overwritten: `mode` may come from a CLI flag that differs from
crates/exec-harness/src/runtime_env/mod.rs:32
↓ 2 callers
Function
assert_multipart_upload_sends_each_part_then_completes
(in_memory: bool)
src/upload/uploader.rs:703
↓ 2 callers
Function
assert_perf_map_symbol
The runtime wrote a perf map for the allocating process naming the fixture's `allocation` function, which the runner harvests from /tmp.
crates/memtrack/tests/interpreter_tests.rs:43
↓ 2 callers
Function
assert_stack_snapshot
( test_case: &AllocationTestCase, stack_capture: bool, snapshot_name: &str, )
crates/memtrack/tests/stack_tests.rs:91
↓ 2 callers
Method
attach_allocator_probes_with_offsets
( &mut self, kind: AllocatorKind, lib_path: &Path, offsets: &ResolvedSymbols,
crates/memtrack/src/ebpf/memtrack/allocator.rs:57
↓ 2 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/allocator.rs:185
↓ 2 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/allocator.rs:192
↓ 2 callers
Method
authentication_docs_url
The authentication section of this run environment's documentation. Buildkite covers its token as a setup step rather than in a section, so its guide
src/run_environment/interfaces.rs:87
↓ 2 callers
Function
bench
(bencher: Bencher, n: usize, payload: Payload)
crates/runner-shared/benches/memtrack_reader.rs:64
↓ 2 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
↓ 2 callers
Function
build_benchmark_table
(results: &[FetchLocalRunBenchmarkResult])
src/upload/benchmark_display.rs:264
↓ 2 callers
Function
build_comparison_table
(results: &[CompareRunsBenchmarkResult])
src/upload/benchmark_display.rs:352
↓ 2 callers
Function
build_fixture
Compile a fixture and build the command that runs it against a report path in the returned temp dir, which must outlive the run.
crates/memtrack/tests/rss_tests.rs:192
↓ 2 callers
Function
build_gql_api_client
(token: Option<&str>, api_url: String)
src/api_client.rs:99
↓ 2 callers
Function
build_provider_for_test
( config: &OrchestratorConfig, api_client: &impl LocalProviderApiClient, root_path: &s
src/run_environment/local/provider.rs:529
↓ 2 callers
Function
check
(mode: &str, major: u32, v8_log: Option<&str>)
crates/exec-harness/src/runtime_env/node/tests.rs:76
↓ 2 callers
Function
choose_multipart_part_size
Size parts to split the archive in [`TARGET_PARTS_PER_CONCURRENT_UPLOAD`] parts per concurrent upload, clamped to the part size bounds. The part count
src/upload/profile_archive.rs:130
↓ 2 callers
Function
claim_mm_owner
Claim mm for pid without stealing from a live owner: CLONE_VM siblings share the * mm, and overwriting would let the child's exec-time cleanup delete
crates/memtrack/src/ebpf/c/utils/mm_ownership.h:46
↓ 2 callers
Method
close
(self)
crates/runner-shared/src/telemetry/mod.rs:183
↓ 2 callers
Method
command_builder_for
Same as [`Self::get_command_builder`], re-executing `program` instead.
src/cli/mod.rs:150
↓ 2 callers
Function
command_in
(directory: &Path, program: S, args: &[&str])
src/executor/valgrind/build_from_source.rs:68
↓ 2 callers
Function
compile_exe
(source: &str, name: &str, dir: &Path, libs: &[&str])
crates/memtrack/tests/dlopen_tests.rs:25
↓ 2 callers
Function
compile_rust_binary
Compile a Rust binary from a test crate directory. Each feature set gets its own target dir, otherwise parallel test cases race to overwrite one binar
crates/memtrack/tests/shared.rs:147
↓ 2 callers
Function
compile_shared
(source: &str, name: &str, dir: &Path)
crates/memtrack/tests/dlopen_tests.rs:10
↓ 2 callers
Function
compute_crc64nvmes_from_reader
Read the content once to compute the CRC64NVME of each consecutive `part_size` chunk of it, and of all of it by combining the part CRCs. CPU heavy +
src/upload/profile_archive.rs:69
↓ 2 callers
Function
confirm_default_yes
(explanation: &str, question: &str)
src/executor/helpers/confirm.rs:5
↓ 2 callers
Method
create
(path: &Path)
crates/runner-shared/src/telemetry/mod.rs:162
↓ 2 callers
Function
create_fifo
(path: P)
src/executor/shared/fifo.rs:21
↓ 2 callers
Function
create_git_repo_with_remote
(dir: &std::path::Path, remote_url: &str)
src/run_environment/local/provider.rs:422
↓ 2 callers
Function
create_profile_folder
()
src/executor/helpers/profile_folder.rs:9
↓ 2 callers
Function
create_run_script
Creates the shell script on disk and returns the path to it.
src/executor/valgrind/measure.rs:86
↓ 2 callers
Function
create_sample_v4
()
crates/runner-shared/src/unwind_data.rs:340
↓ 2 callers
Function
deactivate_log_deferral
Stop deferring records and print those queued since the last frame. The flag is cleared under the `DEFERRED_LOGS` lock so no record can be queued afte
src/local_logger/mod.rs:54
↓ 2 callers
Method
detach_probes
Detach all BPF links without blocking on kernel link teardown: forked holders own disjoint fd chunks and perform the terminal close in parallel, while
crates/memtrack/src/ebpf/memtrack/mod.rs:335
↓ 2 callers
Method
disable
(&self)
crates/memtrack/src/ipc.rs:69
↓ 2 callers
Method
disable_tracking
Disable allocator-event tracking in the BPF program
crates/memtrack/src/ebpf/tracker.rs:199
↓ 2 callers
Method
draw_frame
Write a frame to the terminal, clearing and replacing any previously rendered lines.
src/local_logger/rolling_buffer/mod.rs:214
↓ 2 callers
Method
dropped_events_count
Number of events the kernel dropped because the ring buffer was full. A non-zero value means the resulting trace is incomplete. Includes allocation-st
crates/memtrack/src/ebpf/tracker.rs:207
↓ 2 callers
Method
enable
(&self)
crates/memtrack/src/ipc.rs:61
↓ 2 callers
Function
encode_crc64nvme
Base64 of the big-endian CRC64NVME, the encoding S3 expects
src/upload/profile_archive.rs:60
↓ 2 callers
Function
encode_frame
Encode one batch as a single self-contained zstd frame. The batch is serialized with `rmp_serde` into a reused buffer, then compressed in one shot wi
crates/runner-shared/src/artifacts/memtrack/pipeline.rs:147
↓ 2 callers
Method
encoding
(&self)
src/upload/profile_archive.rs:177
↓ 2 callers
Function
ensure_exec_commands_runnable
Rejects exec targets whose executable (first token) is missing or blank before the orchestrator does any setup. A blank executable otherwise surfaces
src/cli/exec/mod.rs:163
↓ 2 callers
Function
ensure_memtrack_capabilities
Grant memtrack the capabilities it needs to run without sudo. Best-effort and idempotent: a no-op when running as root or when the caps are already p
src/executor/memory/setup.rs:127
↓ 2 callers
Function
ensure_sysctl
Sets a sysctl, returning the value it held before, or `None` when it was already at `target_value` and nothing was written.
src/executor/helpers/linux_sysctl.rs:60
↓ 2 callers
Method
execute
Execute all benchmark targets for all configured modes, then upload results. Flattens all `(command, mode)` pairs into a single iteration: - All `Exe
src/executor/orchestrator.rs:71
↓ 2 callers
Function
execute_config
Core execution logic shared by `codspeed exec` and `codspeed run` with config targets. Sets up the orchestrator and drives execution. Exec-harness in
src/cli/exec/mod.rs:139
↓ 2 callers
Method
executor_config_for_command
Produce a per-execution [`ExecutorConfig`] for the given command and mode.
src/executor/config.rs:234
↓ 2 callers
Method
export_run_id
(&self, run_id: &str)
src/run_environment/github_actions/provider.rs:387
↓ 2 callers
Function
find_debug_file_by_debuglink
( object: &object::File, binary_path: &Path, debug_dir: Option<&Path>, )
src/executor/helpers/debug_file.rs:64
↓ 2 callers
Method
finish
Finish the rolling display, replacing the spinner title with a result mark and leaving the last content lines visible on screen.
src/local_logger/rolling_buffer/mod.rs:269
↓ 2 callers
Method
finish_with
Finalize the frame, marking the title with a checkmark or a cross according to `success`.
src/local_logger/rolling_buffer/mod.rs:362
↓ 2 callers
Function
fixture
(name: &str)
crates/memtrack/tests/interpreter_tests.rs:55
↓ 2 callers
Function
fixture
(path: &str)
crates/runner-shared/src/telemetry/tests.rs:85
↓ 2 callers
Function
folio_read_flags
crates/memtrack/src/ebpf/c/utils/folio.h:14
↓ 2 callers
Function
for_each_variant
Run `workload` under each BPF variant, pass every run's events to `assert_events`, and require the variants to have observed the same allocations: the
crates/memtrack/tests/shared.rs:313
↓ 2 callers
Function
fork_pairs
Every fork as `(parent_pid, child_pid)`, in timestamp order.
crates/memtrack/tests/rss_tests.rs:238
↓ 2 callers
Function
format_stdev_colored
Format StdDev with color coding based on value
src/upload/benchmark_display.rs:32
↓ 2 callers
Function
generate_name_and_uri
(name: &Option<String>, command: &[String])
crates/exec-harness/src/uri.rs:13
↓ 2 callers
Method
get_active_instrument_names
(&self)
src/instruments/mod.rs:34
↓ 2 callers
Method
get_and_increment
Returns the current index and increments it for the next call. If the state file doesn't exist, starts at 0. The incremented value is persisted for s
src/upload/run_index_state.rs:48
↓ 2 callers
Method
get_command_builder
Build a [`CommandBuilder`] that re-execs the current binary into this internal subcommand. Each variant owns its own arg layout.
src/cli/mod.rs:145
↓ 2 callers
Function
get_commit_hash_default_impl
(repository_root_path: &str)
src/run_environment/provider.rs:186
↓ 2 callers
Function
get_configuration_file_path
Get the path to the configuration file, following the XDG Base Directory Specification at https://specifications.freedesktop.org/basedir-spec/basedir-
src/config.rs:128
↓ 2 callers
Method
get_current_dir
(&self)
src/executor/helpers/command.rs:80
↓ 2 callers
Function
get_executors_from_modes
Resolve the executors to operate on from the requested modes. An empty list of modes means "every executor".
src/cli/setup.rs:56
↓ 2 callers
Function
get_local_logger
()
src/local_logger/mod.rs:348
↓ 2 callers
Function
get_objects_path_to_ignore
()
src/executor/valgrind/helpers/ignored_objects_path.rs:61
↓ 2 callers
Method
get_oidc_audience
Get the OIDC audience that must be used when requesting OIDC tokens. It will be validated when the token is used to authenticate with CodSpeed.
src/run_environment/provider.rs:87
↓ 2 callers
Function
get_parent_pid
(pid: pid_t)
src/shell_session_store.rs:52
↓ 2 callers
Function
get_root_dir
(kind: SessionKind)
src/shell_session_store.rs:42
↓ 2 callers
Method
get_run_provider_run_part
`CIRCLE_WORKFLOW_ID` is shared by every job and every parallel container of a workflow, which makes it the key that groups run parts together. The per
src/run_environment/circleci/provider.rs:200
↓ 2 callers
Function
get_state_file_path
(base_dir: &Path, pid: pid_t)
src/shell_session_store.rs:66
↓ 2 callers
Method
grant_privileges
Grant any elevated privileges this executor needs (e.g. file capabilities). Runs after [`setup`](Self::setup) and may prompt for sudo. Defaults to a n
src/executor/mod.rs:144
↓ 2 callers
Function
has_libc_debug_symbols
Whether the system libc has the separate debug file `libc6-dbg` provides. Probed by file rather than through dpkg, because the setup cache restores p
src/executor/helpers/libc_debug_info.rs:62
↓ 2 callers
Function
has_memtrack_capabilities
Whether the installed memtrack binary already carries the required capabilities.
src/executor/memory/setup.rs:117
↓ 2 callers
Function
header
(copy_len: u32)
crates/memtrack/src/ebpf/events.rs:368
↓ 2 callers
Function
install_spinner
Install a spinner into the global slot so log records suspend it.
src/local_logger/mod.rs:380
↓ 2 callers
Function
is_installed
Check whether a brew formula is already installed. Uses `brew list <pkg>`, which is local-only (no network/API hit) and returns non-zero when missing.
src/executor/helpers/homebrew.rs:41
↓ 2 callers
Method
is_mongodb_enabled
(&self)
src/instruments/mod.rs:30
↓ 2 callers
Function
is_sudo_available
()
src/executor/helpers/run_with_sudo.rs:16
↓ 2 callers
Function
kernel_release
The running kernel's full release, e.g. `6.12.8+`.
crates/memtrack/src/kernel.rs:5
↓ 2 callers
Method
level
(&self)
src/local_logger/mod.rs:335
↓ 2 callers
Method
list
The stored requests, in the order they were received.
src/instruments/otel/receiver.rs:103
↓ 2 callers
Function
load_shell_session_mode
Load the active runner mode(s) for the current shell session, or an empty vector if none has been set.
src/runner_mode.rs:40
↓ 2 callers
Function
load_shell_session_profile
Look up the active profile for the current shell session, if any.
src/config.rs:20
↓ 2 callers
Function
log_pre_init
Prints user-facing messages emitted before the logger is initialized. We do this because we initialize the logger after creating the provider. It is e
src/run_environment/local/provider.rs:30
↓ 2 callers
Function
manual_installation_error
Error for a system without a package, where valgrind could not be provided either.
src/executor/valgrind/setup.rs:39
↓ 2 callers
Function
map_and_fault_file
Maps len bytes of a private file mapping and faults every page in, so the * pages land in the caller's RSS (MM_FILEPAGES) in-context and seed ownersh
crates/memtrack/testdata/rss/file_region.h:19
↓ 2 callers
Function
mapping_for
(path: &str, dev: u64, ino: u64)
src/executor/memory/module_artifacts.rs:339
↓ 2 callers
Function
mask
(caps: &[Capability])
src/executor/helpers/capabilities.rs:47
↓ 2 callers
Function
memory_forwards_path_like
Prepends `prefix` to `var` and checks the benchmark still sees it.
tests/executors.rs:318
↓ 2 callers
Function
memory_mode_command
Runs `program` with the env exec-harness sets for memory-mode benchmarks.
crates/memtrack/tests/interpreter_tests.rs:13
↓ 2 callers
Function
memtrack_required_caps_mask
()
src/executor/memory/setup.rs:21
← previous
next →
201–300 of 1,682, ranked by callers