MCPcopy Create free account

hub / github.com/CodSpeedHQ/codspeed / functions

Functions1,061 in github.com/CodSpeedHQ/codspeed

↓ 2 callersFunctionharvest_perf_maps_for_pids
( profile_folder: &Path, pids: &HashSet<libc::pid_t>, )
src/executor/helpers/harvest_perf_maps_for_pids.rs:6
↓ 2 callersFunctioninstall_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:50
↓ 2 callersFunctioninstall_spinner
Install a spinner into the global slot so log records suspend it.
src/local_logger/mod.rs:338
↓ 2 callersFunctionis_command_installed
Check if the given command is installed and its version matches the expected version. Expects the command to support the `--version` flag and return
src/binary_installer/mod.rs:66
↓ 2 callersFunctionis_elf
Check if a file is an ELF binary by reading its magic bytes.
crates/memtrack/src/allocators/mod.rs:113
↓ 2 callersMethodis_mongodb_enabled
(&self)
src/instruments/mod.rs:27
↓ 2 callersFunctionis_sudo_available
()
src/executor/helpers/run_with_sudo.rs:16
↓ 2 callersMethodlevel
(&self)
src/local_logger/mod.rs:293
↓ 2 callersFunctionload_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:25
↓ 2 callersFunctionload_shell_session_profile
Look up the active profile for the current shell session, if any.
src/config.rs:20
↓ 2 callersFunctionlog_tee
( mut reader: impl Read, mut writer: impl Write, log_prefix: Option<&str>, )
src/executor/helpers/run_command_with_log_pipe.rs:42
↓ 2 callersFunctionmask
(caps: &[Capability])
src/executor/helpers/capabilities.rs:47
↓ 2 callersFunctionmemtrack_path
()
src/executor/memory/setup.rs:40
↓ 2 callersMethodname
Returns a human-readable name for the allocator.
crates/memtrack/src/allocators/mod.rs:53
↓ 2 callersFunctionopen_fifo_rdwr
Open a FIFO in O_RDWR | O_NONBLOCK mode. Tokio's `OpenOptions::read_write(true)` is Linux-only, but the underlying O_RDWR trick works on every Unix:
src/executor/shared/fifo.rs:94
↓ 2 callersFunctionopen_fifo_receiver
(path: &Path)
src/executor/shared/fifo.rs:106
↓ 2 callersFunctionperform
(commands: Vec<BenchmarkCommand>)
crates/exec-harness/src/walltime/mod.rs:17
↓ 2 callersFunctionpermitted_caps_from_xattr
Decode the permitted capability set from a `security.capability` xattr value as a [`caps::Capability::bitmask`]-compatible mask. Layout (little-endia
src/executor/helpers/capabilities.rs:10
↓ 2 callersMethodpersist
Persist the canonical on-disk configuration. Runtime resolved fields (auth, api_url, upload_url) are not written — only what is in [`PersistedConfig`]
src/config.rs:270
↓ 2 callersFunctionpinned_go_runner_installers
()
src/executor/helpers/introspected_golang/mod.rs:26
↓ 2 callersFunctionpurge_process_mappings
Drop every mapping recorded for `pid` across all modules.
src/executor/wall_time/profiler/perf/parse_perf_file.rs:205
↓ 2 callersFunctionquantile
Calculate quantile with linear interpolation. This is intended to match pytest-codspeed's computation, which uses python's statistics.quantiles `p` i
crates/runner-shared/src/walltime_results/stats.rs:129
↓ 2 callersFunctionregister
Persist `value` for the current shell session (keyed by the parent PID of this process).
src/shell_session_store.rs:72
↓ 2 callersMethodrender_bottom_delimiter
(&self)
src/local_logger/rolling_buffer/mod.rs:150
↓ 2 callersMethodrender_content_line
(&self, line: &str)
src/local_logger/rolling_buffer/mod.rs:159
↓ 2 callersMethodrender_title_line
(&self)
src/local_logger/rolling_buffer/mod.rs:111
↓ 2 callersMethodrender_top_delimiter
(&self)
src/local_logger/rolling_buffer/mod.rs:120
↓ 2 callersMethodresolve_enable_profiler
Resolves the effective `enable_profiler` value, honoring the deprecated `--enable-perf` / `CODSPEED_PERF_ENABLED` flag with a warning.
src/cli/shared.rs:183
↓ 2 callersMethodresolve_modes
Resolves the runner modes from CLI argument, shell session, or returns an error. Priority: 1. CLI argument (--mode or -m) 2. Shell session mode (set
src/cli/shared.rs:130
↓ 2 callersMethodresolve_selected_profile
( &mut self, profile_name: Option<&str>, overrides: ConfigOverrides<'_>, allow
src/config.rs:293
↓ 2 callersFunctionrun_command_with_log_pipe
(cmd: Command)
src/executor/helpers/run_command_with_log_pipe.rs:108
↓ 2 callersMethodsave_file_to
( &self, folder: P, filename: &str, )
crates/runner-shared/src/artifacts/mod.rs:41
↓ 2 callersMethodsession
Introspect the token currently configured on this client. Returns the linked user (when applicable). Used to verify a token's validity without confla
src/api_client.rs:381
↓ 2 callersMethodsession_and_repository_overview
( &self, vars: SessionAndRepositoryOverviewVars, )
src/run_environment/local/provider.rs:406
↓ 2 callersFunctionset_node_options
Appends CodSpeed-required Node.js options to `NODE_OPTIONS` on a [`Command`], preserving any existing value from the environment.
crates/exec-harness/src/node.rs:7
↓ 2 callersMethodshould_include
Check if a PID should be included in parsing
src/executor/wall_time/profiler/perf/parse_perf_file.rs:150
↓ 2 callersFunctionshow_banner
()
src/cli/shared.rs:11
↓ 2 callersFunctionshow_comparison_suggestion
(run_id: &str)
src/upload/poll_results.rs:230
↓ 2 callersFunctionspawn_mock_returning_503
Answers `503` to each of the next `max_conns` connections, then exits. Returns the URL, a counter of connections received, and the server's join handl
src/upload/uploader.rs:437
↓ 2 callersMethodstart_benchmark
(&self)
crates/instrument-hooks-bindings/src/mod.rs:46
↓ 2 callersFunctionstart_spinner
Start a standalone spinner with a message (no group header or checkmark). The spinner animates on TTY outputs. On non-TTY, prints the message once. C
src/local_logger/mod.rs:351
↓ 2 callersFunctionstop_spinner
Stop and clear the current standalone spinner.
src/local_logger/mod.rs:356
↓ 2 callersFunctionsubmit_aligned_alloc_event
Helper to submit an aligned allocation event (aligned_alloc, memalign) */
crates/memtrack/src/ebpf/c/memtrack.bpf.c:173
↓ 2 callersFunctionsudo_runs_without_password
Whether `sudo` can run without prompting for a password (passwordless rule or a cached, still-valid credential). Used to decide whether a command can
src/executor/helpers/run_with_sudo.rs:29
↓ 2 callersFunctiontake_param
Helper to take parameter value from map (lookup and delete) */
crates/memtrack/src/ebpf/c/memtrack.bpf.c:122
↓ 2 callersMethodto_perf_string
The event name backing this slot.
crates/runner-shared/src/perf_event.rs:26
↓ 2 callersMethodtrack
Start tracking allocations for a specific PID Returns a receiver channel that will receive allocation events. The receiver will continue to produce e
crates/memtrack/src/ebpf/tracker.rs:55
↓ 2 callersFunctionunwind_data_from_elf
Based on: https://github.com/mstange/linux-perf-stuff/blob/22ca6531b90c10dd2a4519351c843b8d7958a451/src/main.rs#L747-L893
src/executor/wall_time/profiler/perf/unwind_data.rs:13
↓ 2 callersFunctionupload
( orchestrator: &Orchestrator, api_client: &CodSpeedAPIClient, execution_context: &ExecutionContex
src/upload/uploader.rs:302
↓ 2 callersFunctionupload_backoff
Shared backoff policy for upload retries, used both by the retry middleware on [`REQUEST_CLIENT`] and by the manual stream-retry loop in the uploader.
src/request_client.rs:15
↓ 2 callersFunctionupload_data_for
(url: String)
src/upload/uploader.rs:473
↓ 2 callersFunctionvalgrind_config
(command: &str)
src/executor/tests.rs:168
↓ 2 callersFunctionwarn_callgraph_failures
(names: &[&str])
src/upload/poll_results.rs:220
↓ 2 callersMethodwarn_if_active
If any experimental flags are active, prints a warning to stderr.
src/cli/experimental.rs:44
↓ 2 callersFunctionwrap_with_env
Wraps a command to run with environment variables forwarded. # Returns Returns a tuple of (CommandBuilder, NamedTempFile) where: - CommandBuilder is
src/executor/helpers/run_with_env.rs:35
↓ 2 callersFunctionwrite_persisted
Write the canonical [`PersistedConfig`] to disk.
src/config.rs:218
↓ 2 callersFunctionwrite_to_rolling_buffer_or_output
Write text to the rolling buffer if active, otherwise write raw bytes to the writer.
src/executor/helpers/run_command_with_log_pipe.rs:30
↓ 1 callersMethodack_reader
(&mut self)
src/executor/shared/fifo.rs:55
↓ 1 callersFunctionactivate_rolling_buffer
Activate a rolling buffer for the current executor run. Suspends the group spinner and installs a shared rolling buffer that `run_command_with_log_pi
src/local_logger/rolling_buffer/mod.rs:287
↓ 1 callersMethodactive_flags
Returns the names of all experimental flags that were explicitly set by the user.
src/cli/experimental.rs:32
↓ 1 callersMethodadd_benchmark_timestamps
(&self, start: u64, end: u64)
crates/instrument-hooks-bindings/src/lib.rs:80
↓ 1 callersMethodadd_child_if_parent_tracked
Add a child PID to the filter if we're tracking its parent Returns true if the child was added
src/executor/wall_time/profiler/perf/parse_perf_file.rs:159
↓ 1 callersMethodadd_tracked_pid
(&mut self, pid: i32)
crates/memtrack/src/ebpf/memtrack.rs:201
↓ 1 callersMethodaddr_bounds
Returns `(min_addr, max_addr_end)` covering all symbols, or `None` if empty.
src/executor/wall_time/profiler/perf/module_symbols.rs:49
↓ 1 callersFunctionall_pinned_binaries
()
src/binary_pins.rs:207
↓ 1 callersMethodas_command_line
Returns the command line as a string for debugging/testing purposes
src/executor/helpers/command.rs:132
↓ 1 callersMethodas_dir_name
(self)
src/shell_session_store.rs:32
↓ 1 callersMethodattach_jemalloc_probes
Attach jemalloc-specific probes (prefixed and extended API).
crates/memtrack/src/ebpf/memtrack.rs:388
↓ 1 callersMethodattach_mimalloc_probes
Attach mimalloc-specific probes (mi_* API).
crates/memtrack/src/ebpf/memtrack.rs:417
↓ 1 callersMethodattach_tcmalloc_probes
Attach TCMalloc probes ( tc_* API). See: - https://github.com/google/tcmalloc/blob/master/docs/reference.md - https://github.com/gperftools/gperftool
crates/memtrack/src/ebpf/memtrack.rs:440
↓ 1 callersMethodattach_tracepoints
(&mut self)
crates/memtrack/src/ebpf/memtrack.rs:451
↓ 1 callersFunctionbail_if_command_spawned_subprocesses_under_valgrind
Checks if the benchmark process spawned subprocesses under valgrind by looking for <pid>.out files in the profile folder. The presence of <pid>.out f
crates/exec-harness/src/analysis/mod.rs:91
↓ 1 callersFunctionbash_in_path_is_compatible
()
src/executor/wall_time/profiler/samply/mod.rs:217
↓ 1 callersFunctionbuild_api_client
Build the api client for this invocation, resolving the auth token from the most specific source available. This is the single source of truth for tok
src/cli/mod.rs:244
↓ 1 callersFunctionbuild_benchmark_targets
Convert project config targets into [`BenchmarkTarget`] instances. Exec targets are each converted to a `BenchmarkTarget::Exec`. Entrypoint targets a
src/cli/exec/multi_targets.rs:46
↓ 1 callersFunctionbuild_comparison_table
(results: &[CompareRunsBenchmarkResult])
src/upload/benchmark_display.rs:348
↓ 1 callersFunctionbuild_ebpf
()
crates/memtrack/build.rs:5
↓ 1 callersFunctionbuild_exec_targets_pipe_command
Build a shell command string that pipes BenchmarkTarget::Exec variants to exec-harness via stdin
src/cli/exec/multi_targets.rs:73
↓ 1 callersFunctionbuild_memory_table
(results: &[&FetchLocalRunBenchmarkResult])
src/upload/benchmark_display.rs:225
↓ 1 callersFunctionbuild_orchestrator_config
( args: ExecArgs, target: executor::BenchmarkTarget, poll_results_options: PollResultsOptions, )
src/cli/exec/mod.rs:54
↓ 1 callersFunctionbuild_pipe_command_from_json
(json: &str)
src/cli/exec/multi_targets.rs:98
↓ 1 callersMethodbuild_run_part_suffix
Build the suffix that differentiates uploads within the same run part. The suffix is a structured key-value map appended to `run_part_id` via [`RunPa
src/run_environment/provider.rs:57
↓ 1 callersFunctionbuild_shared_library
Build the shared library using the cc crate
crates/exec-harness/build.rs:71
↓ 1 callersFunctionbuild_simulation_table
(results: &[&FetchLocalRunBenchmarkResult])
src/upload/benchmark_display.rs:134
↓ 1 callersFunctionbuild_walltime_table
(results: &[&FetchLocalRunBenchmarkResult])
src/upload/benchmark_display.rs:183
↓ 1 callersFunctioncalculate_folder_size
Calculate the total size of a directory in bytes
src/upload/uploader.rs:35
↓ 1 callersFunctioncan_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
↓ 1 callersFunctioncheck_elf_is_dynamic
Check if an ELF binary is dynamically linked.
crates/exec-harness/src/analysis/ld_preload_check.rs:53
↓ 1 callersMethodcheck_oidc_configuration
Buildkite requires a static `CODSPEED_TOKEN`. We don't yet support OIDC tokens here (could be added via the Buildkite Agent CLI: <https://buildkite.co
src/run_environment/buildkite/provider.rs:157
↓ 1 callersMethodcheck_sources_exist
Verify that all required source files and directories exist. Panics with a descriptive message if any path is missing.
crates/exec-harness/build.rs:150
↓ 1 callersFunctionclean_logger
()
src/local_logger/mod.rs:364
↓ 1 callersFunctioncollect_ignored_modules
Collect ignored modules by finding known-ignored and python modules in the mounted modules. Returns per-pid entries with runtime address ranges derive
src/executor/wall_time/profiler/perf/save_artifacts.rs:251
↓ 1 callersMethodcompare_runs
(&self, vars: CompareRunsVars)
src/api_client.rs:485
↓ 1 callersFunctioncompile_c_source
Compiles C source code and returns the binary path
crates/memtrack/tests/c_tests.rs:11
↓ 1 callersFunctioncompile_cpp_project
(project_dir: &Path, target: &str)
crates/memtrack/tests/cpp_tests.rs:9
↓ 1 callersFunctioncompute_base_avma
(base_svma: u64, load_bias: u64)
src/executor/wall_time/profiler/perf/elf_helper.rs:190
↓ 1 callersFunctioncompute_max_rounds
Compute the maximum number of rounds based on config and average round time
crates/exec-harness/src/walltime/benchmark_loop.rs:235
↓ 1 callersFunctioncompute_min_rounds
Compute the minimum number of rounds based on config and average round time
crates/exec-harness/src/walltime/benchmark_loop.rs:220
↓ 1 callersFunctioncompute_rounds_from_warmup
Run warmup rounds and compute the number of benchmark rounds to perform
crates/exec-harness/src/walltime/benchmark_loop.rs:159
↓ 1 callersMethodconfig_dir
Returns the directory containing the config file.
src/project_config/discover.rs:66
← previousnext →201–300 of 1,061, ranked by callers