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
↓ 3 callers
Function
get_base_injected_env
( mode: RunnerMode, profile_folder: &Path, config: &ExecutorConfig, )
src/executor/helpers/env.rs:7
↓ 3 callers
Function
get_bench_command
(config: &ExecutorConfig)
src/executor/helpers/get_bench_command.rs:4
↓ 3 callers
Function
get_executor_from_mode
( mode: &RunnerMode, walltime_profiler: Option<WalltimeProfiler>, )
src/executor/mod.rs:48
↓ 3 callers
Method
get_hash
(&self)
src/upload/upload_metadata.rs:6
↓ 3 callers
Function
get_memory_executor
()
src/executor/tests.rs:388
↓ 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/wall_time/profiler/perf/save_artifacts.rs:65
↓ 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:157
↓ 3 callers
Method
get_run_provider_run_part
(&self)
src/run_environment/gitlab_ci/provider.rs:173
↓ 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
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:139
↓ 3 callers
Function
has_memtrack_capabilities
Whether the installed memtrack binary already carries the required capabilities.
src/executor/memory/setup.rs:45
↓ 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
(system_info: &SystemInfo, packages: &[&str])
src/executor/helpers/apt.rs:98
↓ 3 callers
Method
is_active
(&self)
src/local_logger/rolling_buffer/mod.rs:72
↓ 3 callers
Function
is_codspeed_debug_enabled
()
src/executor/helpers/env.rs:104
↓ 3 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
↓ 3 callers
Method
is_local
(&self)
src/executor/orchestrator.rs:34
↓ 3 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
↓ 3 callers
Function
memory_config
(command: &str)
src/executor/tests.rs:416
↓ 3 callers
Function
memtrack_required_caps_mask
()
src/executor/memory/setup.rs:22
↓ 3 callers
Method
open
(ctl_path: &Path, ack_path: &Path)
src/executor/shared/fifo.rs:115
↓ 3 callers
Function
open_fifo_sender
(path: &Path)
src/executor/shared/fifo.rs:102
↓ 3 callers
Function
parse_duration_to_ns
Parse a duration string into nanoseconds Supports humantime format: "1s", "500ms", "1.5s", "2m", "1h", etc. Also supports pure numbers interpreted as
crates/exec-harness/src/walltime/config.rs:12
↓ 3 callers
Function
parse_event
Parse an event from raw bytes into MemtrackEvent SAFETY: The data must be a valid `bindings::event`
crates/memtrack/src/ebpf/events.rs:17
↓ 3 callers
Function
parse_from_output
Parse a version string from command output. Expects the output format to be: "command_name version_string" Example: "codspeed-memtrack 4.4.2"
src/binary_installer/versions.rs:8
↓ 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
Method
perf_fifo_mut
(&mut self)
src/executor/wall_time/profiler/perf/mod.rs:67
↓ 3 callers
Method
print_executing
(&self)
crates/exec-harness/src/uri.rs:34
↓ 3 callers
Method
profile_mut
(&mut self, profile_name: &str)
src/config.rs:286
↓ 3 callers
Method
recv_cmd
(&mut self)
src/executor/shared/fifo.rs:134
↓ 3 callers
Method
render_frame
Return the full rendered frame as a vector of strings.
src/local_logger/rolling_buffer/mod.rs:182
↓ 3 callers
Method
results_dir
(&self)
src/executor/wall_time/helpers.rs:100
↓ 3 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:21
↓ 3 callers
Method
send_command
(&self, cmd: IpcCommand)
crates/memtrack/src/ipc.rs:47
↓ 3 callers
Method
set_executed_benchmark
(&self, uri: &str)
crates/instrument-hooks-bindings/src/mod.rs:58
↓ 3 callers
Function
setup
Creates the `node` script that will replace the `node` binary while running Returns the path to the script folder, which should be added to the PATH e
src/executor/helpers/introspected_nodejs/mod.rs:8
↓ 3 callers
Function
setup_debuglink_tmpdir
( binary: &Path, debug_file: &Path, )
src/executor/wall_time/profiler/perf/elf_helper.rs:302
↓ 3 callers
Function
should_provider_logger_handle_record
(record: &log::Record)
src/run_environment/logger.rs:3
↓ 3 callers
Method
shutdown
Stop the polling thread and wait for it to finish
crates/memtrack/src/ebpf/poller.rs:76
↓ 3 callers
Function
status
(api_client: &CodSpeedAPIClient, config: &CodSpeedConfig)
src/cli/auth.rs:157
↓ 3 callers
Method
stop_benchmark
(&self)
crates/instrument-hooks-bindings/src/mod.rs:52
↓ 3 callers
Function
submit_mmap_event
Helper to submit a memory mapping event (mmap, munmap, brk) */
crates/memtrack/src/ebpf/c/memtrack.bpf.c:203
↓ 3 callers
Method
support_level
(&self, system_info: &SystemInfo)
src/executor/memory/executor.rs:123
↓ 3 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:51
↓ 3 callers
Method
symbols
(&self)
src/executor/wall_time/profiler/perf/module_symbols.rs:44
↓ 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
Function
track_binary_with_opts
(binary: &Path, extra_allocators: &[AllocatorLib])
crates/memtrack/tests/shared.rs:165
↓ 3 callers
Function
track_command
Track a spawned command, collecting all memory events. When `discover_system_allocators` is true, the tracker will scan for all allocators on the sys
crates/memtrack/tests/shared.rs:131
↓ 3 callers
Function
upload_profile_archive
( upload_data: &UploadData, profile_archive: ProfileArchive, )
src/upload/uploader.rs:246
↓ 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
↓ 2 callers
Function
acquire_bpf_instrumentation_lock
()
src/executor/tests.rs:140
↓ 2 callers
Method
append_to_file
Write symbols to a file applying the given load_bias.
src/executor/wall_time/profiler/perf/module_symbols.rs:191
↓ 2 callers
Method
attach_allocator_probes
Attach probes for a specific allocator kind. This attaches both standard probes (if the allocator exports them) and allocator-specific prefixed probes
crates/memtrack/src/ebpf/memtrack.rs:286
↓ 2 callers
Method
attach_allocators
(&mut self, libs: &[AllocatorLib])
crates/memtrack/src/ebpf/tracker.rs:38
↓ 2 callers
Function
build_benchmark_table
(results: &[FetchLocalRunBenchmarkResult])
src/upload/benchmark_display.rs:263
↓ 2 callers
Function
build_orchestrator_config
( args: RunArgs, targets: Vec<executor::BenchmarkTarget>, poll_results_options: PollResultsOptions
src/cli/run/mod.rs:92
↓ 2 callers
Function
build_provider_for_test
( config: &OrchestratorConfig, api_client: &impl LocalProviderApiClient, root_path: &s
src/run_environment/local/provider.rs:537
↓ 2 callers
Function
check_elf_has_interp
Check if an ELF file has a PT_INTERP or PT_DYNAMIC segment, indicating dynamic linking.
crates/exec-harness/src/analysis/ld_preload_check.rs:70
↓ 2 callers
Function
compile_rust_binary
Compile a Rust binary from a test crate directory.
crates/memtrack/tests/shared.rs:104
↓ 2 callers
Function
create_git_repo_with_remote
(dir: &std::path::Path, remote_url: &str)
src/run_environment/local/provider.rs:430
↓ 2 callers
Function
create_profile_folder
()
src/executor/helpers/profile_folder.rs:9
↓ 2 callers
Function
create_run_script
(content: &str)
src/executor/wall_time/executor.rs:320
↓ 2 callers
Function
create_run_script
Creates the shell script on disk and returns the path to it.
src/executor/valgrind/measure.rs:68
↓ 2 callers
Function
create_sample_v4
()
crates/runner-shared/src/unwind_data.rs:340
↓ 2 callers
Method
disable
(&self)
crates/memtrack/src/ipc.rs:69
↓ 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:206
↓ 2 callers
Function
dump_tracer_log
TODO: This implementation is not optimal: full lines might get split in multiple chunks. This is not a problem for the current use case, as the tracer
src/instruments/mongo_tracer.rs:38
↓ 2 callers
Method
encode_to_writer
(&self, writer: W)
crates/runner-shared/src/artifacts/memtrack.rs:10
↓ 2 callers
Function
ensure_binary_installed
Ensure a binary is installed, or install it from a `PinnedBinary` installer script. This function checks if the binary is already installed with the
src/binary_installer/mod.rs:19
↓ 2 callers
Function
ensure_linux_profiling_sysctls
()
src/executor/wall_time/profiler/linux_sysctl.rs:10
↓ 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:56
↓ 2 callers
Function
ensure_sysctl
(name: &str, target_value: i64)
src/executor/wall_time/profiler/linux_sysctl.rs:21
↓ 2 callers
Function
escape_multiline_message
Escapes newlines in a message for GitHub Actions logging. GitHub Actions requires newlines to be replaced with `%0A` to be interpreted correctly. See
src/run_environment/github_actions/logger.rs:110
↓ 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:69
↓ 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:122
↓ 2 callers
Method
executor_config_for_command
Produce a per-execution [`ExecutorConfig`] for the given command and mode. `enable_introspection` controls whether language-level wrappers (Node.js,
src/executor/config.rs:181
↓ 2 callers
Function
fake_session
()
src/run_environment/local/provider.rs:462
↓ 2 callers
Function
find_debug_file
Search for a separate debug info file. Tries two mechanisms in order: 1. **Build-ID path**: `<debug_dir>/.build-id/<XX>/<YYYYYY...>.debug` 2. **`.gnu
src/executor/wall_time/profiler/perf/elf_helper.rs:210
↓ 2 callers
Function
find_statically_linked_allocator
(path: &Path)
crates/memtrack/src/allocators/static_linked.rs:93
↓ 2 callers
Method
finish
Finish the rolling display, replacing the spinner title with a checkmark and leaving the last content lines visible on screen.
src/local_logger/rolling_buffer/mod.rs:261
↓ 2 callers
Method
flush
(&self)
src/local_logger/mod.rs:165
↓ 2 callers
Function
format_stdev_colored
Format StdDev with color coding based on value
src/upload/benchmark_display.rs:31
↓ 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
Function
get_codspeed_valgrind_target
(system_info: &SystemInfo)
src/executor/valgrind/setup.rs:13
↓ 2 callers
Function
get_commit_hash_default_impl
(repository_root_path: &str)
src/run_environment/provider.rs:156
↓ 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
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:46
↓ 2 callers
Function
get_local_logger
()
src/local_logger/mod.rs:306
↓ 2 callers
Function
get_objects_path_to_ignore
()
src/executor/valgrind/helpers/ignored_objects_path.rs:61
↓ 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_environment
(&self)
src/run_environment/local/provider.rs:345
↓ 2 callers
Function
get_state_file_path
(base_dir: &Path, pid: pid_t)
src/shell_session_store.rs:66
↓ 2 callers
Function
get_valgrind_args
Builds the Valgrind argument list for the given simulation tool.
src/executor/valgrind/measure.rs:21
↓ 2 callers
Function
get_valgrind_executor
()
src/executor/tests.rs:153
↓ 2 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:163
← previous
next →
101–200 of 1,061, ranked by callers