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
Function
memtrack_stop_current
Stop the current process and record it in `map`. SIGSTOP is queued before * the record is written: it only takes effect on return to user mode, so an
crates/memtrack/src/ebpf/c/utils/process_stop.h:25
↓ 2 callers
Function
mib_16
Quantize to 16 MiB buckets so snapshots tolerate page-level noise between runs.
crates/memtrack/tests/rss_tests.rs:17
↓ 2 callers
Function
mint_token
Mints an OIDC token for `audience`. The token CircleCI puts in `CIRCLE_OIDC_TOKEN` and `CIRCLE_OIDC_TOKEN_V2` cannot be used instead: its audience is
src/run_environment/circleci/oidc.rs:20
↓ 2 callers
Method
name
(self)
tests/executors.rs:95
↓ 2 callers
Function
open_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:99
↓ 2 callers
Function
open_fifo_receiver
(path: &Path)
src/executor/shared/fifo.rs:111
↓ 2 callers
Method
ownership_maps
Only meaningful while the BPF object is alive; teardown frees the maps.
crates/memtrack/src/ebpf/tracker.rs:224
↓ 2 callers
Function
parse_dev
Parse a `MAJOR:MINOR` lowercase-hex dev column.
crates/memtrack/src/ebpf/proc_fs.rs:187
↓ 2 callers
Function
path_with_node_wrapper
Installs the `node` wrapper and returns `path` with its folder prepended.
crates/exec-harness/src/runtime_env/node/mod.rs:60
↓ 2 callers
Function
per_pid_raw
Reduce the raw event stream to per-pid resident peaks in BYTES. Returns first-activity pid order plus rss_stat and rmap accumulators.
crates/memtrack/tests/rss_tests.rs:101
↓ 2 callers
Function
permitted_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 callers
Method
persist
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 callers
Function
physical_only_options
Physical-memory tracking without allocator probes.
crates/memtrack/tests/shared.rs:217
↓ 2 callers
Method
pid
(&self)
crates/memtrack/src/session.rs:41
↓ 2 callers
Function
pinned_go_runner_installers
()
src/executor/helpers/introspected_golang/mod.rs:26
↓ 2 callers
Function
populated_artifacts
()
crates/runner-shared/src/metadata.rs:188
↓ 2 callers
Function
prefix_command_with_env
Prefixes a shell command with a `source` of the forwarded environment. Unlike [`wrap_with_env`], the returned value is the raw `source <file> && <com
src/executor/helpers/run_with_env.rs:51
↓ 2 callers
Function
preserve_env_arg
Build a `--preserve-env=<names>` argument forwarding both this process's environment and the variables set on `cmd_builder`. The names are listed expl
src/executor/helpers/run_with_sudo.rs:87
↓ 2 callers
Method
print_executing
(&self)
crates/exec-harness/src/uri.rs:34
↓ 2 callers
Function
purge_process_mappings
Drop every mapping recorded for `pid` across all modules.
src/executor/wall_time/profiler/perf/parse_perf_file.rs:198
↓ 2 callers
Function
read_counter
Read slot 0 of a single-entry `__u64` array map.
crates/memtrack/src/ebpf/memtrack/maps.rs:156
↓ 2 callers
Function
read_macro_runner_config
The JSON object at `path`, or `None` outside a macro runner. An unreadable or malformed file is ignored so it never fails the upload.
src/run_environment/provider.rs:168
↓ 2 callers
Function
read_mappings
(results_folder: &Path)
src/executor/memory/module_artifacts.rs:83
↓ 2 callers
Function
read_mappings_from_artifact
Reconstruct mappings across forks because inherited perf events do not synthesize mappings that already existed when a child was forked.
src/executor/memory/module_artifacts.rs:108
↓ 2 callers
Function
reclaim_from_child
Pages out [mem, mem+len) of the calling process from a forked child, and waits * for it. The reclaim must run in another task's context to exercise f
crates/memtrack/testdata/rss/file_region.h:44
↓ 2 callers
Function
recorded_identity_of_own_exe
Identity of the test binary as the kernel reports it for the mapping that loaded it, which is what `PERF_RECORD_MMAP2` records.
src/executor/memory/module_artifacts.rs:353
↓ 2 callers
Function
register
Persist `value` for the current shell session (keyed by the parent PID of this process).
src/shell_session_store.rs:72
↓ 2 callers
Function
remove_dir
(dir: &Path)
src/instruments/otel/receiver.rs:130
↓ 2 callers
Function
remove_fifo
(path: &Path)
src/executor/shared/fifo.rs:17
↓ 2 callers
Method
render_bottom_delimiter
(&self)
src/local_logger/rolling_buffer/mod.rs:154
↓ 2 callers
Method
render_content_line
(&self, line: &str)
src/local_logger/rolling_buffer/mod.rs:163
↓ 2 callers
Method
render_title_line
(&self)
src/local_logger/rolling_buffer/mod.rs:115
↓ 2 callers
Method
render_top_delimiter
(&self)
src/local_logger/rolling_buffer/mod.rs:124
↓ 2 callers
Method
resolve_cycle_estimation
Resolves cycle estimation, honoring the deprecated `--experimental-cycle-estimation` alias.
src/cli/shared.rs:181
↓ 2 callers
Method
resolve_enable_profiler
Resolves the effective `enable_profiler` value, honoring the deprecated `--enable-perf` / `CODSPEED_PERF_ENABLED` flag with a warning.
src/cli/shared.rs:266
↓ 2 callers
Method
resolve_exclude_allocations
Resolves allocation exclusion, honoring the deprecated `--experimental-exclude-allocations` alias.
src/cli/shared.rs:187
↓ 2 callers
Function
resolve_mapping
Resolve the `(dev, ino)` reported by the watcher to an attachable mapping. `dev` is the kernel `s_dev` encoding `(major << 20) | minor`; the maps dev
crates/memtrack/src/ebpf/proc_fs.rs:130
↓ 2 callers
Method
resolve_memory_capture_stack
Resolves allocation call stack capture, with the same precedence rules as [`Self::resolve_memory_track_physical`].
src/cli/shared.rs:201
↓ 2 callers
Method
resolve_memory_track_physical
Resolves physical memory tracking. Any explicit opt-out wins: the `--disable-memory-track-physical` flag overrides the deprecated enable alias, and th
src/cli/shared.rs:194
↓ 2 callers
Method
resolve_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:163
↓ 2 callers
Method
resolve_selected_profile
( &mut self, profile_name: Option<&str>, overrides: ConfigOverrides<'_>, allow
src/config.rs:293
↓ 2 callers
Function
resolve_unwinding
( command: &str, explicit: Option<WalltimeUnwinding>, )
src/executor/wall_time/profiler/unwinding.rs:5
↓ 2 callers
Method
resolve_unwinding
Resolves the effective unwinding, honoring the deprecated `--perf-unwinding-mode` / `CODSPEED_PERF_UNWINDING_MODE` flag with a warning. The new flag t
src/cli/shared.rs:251
↓ 2 callers
Function
run
()
src/cli/mod.rs:187
↓ 2 callers
Method
run
( &mut self, execution_context: &ExecutionContext, _mongo_tracer: &Option<MongoTracer>
src/executor/memory/executor.rs:171
↓ 2 callers
Function
run_hook
Run a machine hook, logging (never failing the run) on error. Isolation is best-effort: a missing or failing hook leaves the benchmark less isolated,
src/executor/wall_time/isolation.rs:128
↓ 2 callers
Function
run_storm
( binary: &std::path::Path, args: [&str; 2], options: TrackerOptions, )
crates/memtrack/tests/pressure_tests.rs:23
↓ 2 callers
Function
save_artifacts
Save all artifacts (symbols, debug info, unwind data) from mounted modules and JIT data.
src/executor/shared/module_artifacts/save_artifacts.rs:23
↓ 2 callers
Function
save_symbols_and_harvest_unwind_data_for_pids
Converts all the `jit-<pid>.dump` into a perf-<pid>.map with symbols, and collects the unwind data # Symbols Since a jit dump is by definition specif
src/executor/wall_time/profiler/perf/jit_dump.rs:117
↓ 2 callers
Method
save_with_pid_to
( &self, folder: P, pid: pid_t, )
crates/runner-shared/src/artifacts/mod.rs:58
↓ 2 callers
Function
scope_name_and_version
(scope: Option<InstrumentationScope>)
src/instruments/otel/rows.rs:133
↓ 2 callers
Method
session
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:424
↓ 2 callers
Method
session_and_repository_overview
( &self, vars: SessionAndRepositoryOverviewVars, )
src/run_environment/local/provider.rs:398
↓ 2 callers
Function
set
( config_name: Option<&str>, profile_name: &str, api_url: Option<String>, upload_url: Option<S
src/cli/profile.rs:103
↓ 2 callers
Method
set_authentication
The single mutation point for the credentials.
src/api_client.rs:93
↓ 2 callers
Method
set_executed_benchmark_for_pid
(&self, pid: u32, uri: &str)
crates/instrument-hooks-bindings/src/lib.rs:66
↓ 2 callers
Function
set_nonblocking
Set a pipe read end non-blocking so a `read` on it reports "no data yet" (`EAGAIN`) rather than blocking, letting the test distinguish that from EOF (
crates/memtrack/src/ebpf/memtrack/fd_holder.rs:275
↓ 2 callers
Method
set_tracking
(&mut self, enabled: bool)
crates/memtrack/src/ebpf/memtrack/maps.rs:28
↓ 2 callers
Method
setup
( &self, _system_info: &SystemInfo, _setup_cache_dir: Option<&Path>, _run_envi
src/executor/mod.rs:132
↓ 2 callers
Function
show_banner
()
src/cli/shared.rs:10
↓ 2 callers
Function
show_comparison_suggestion
(run_id: &str)
src/upload/poll_results.rs:230
↓ 2 callers
Function
span_id_from_bytes
A span id, `None` unless it is 8 bytes and not all zero, which OTLP uses for no span.
src/instruments/otel/rows.rs:174
↓ 2 callers
Function
spawn_stopped
Spawn a command built by [`stopped_command`] / [`wrap_stopped`] and block until the shell stub group-stops itself.
crates/memtrack/src/ebpf/spawn.rs:52
↓ 2 callers
Function
stack_capture
()
crates/memtrack/tests/interpreter_tests.rs:63
↓ 2 callers
Method
stack_capture_stats
Per-cause counts of stack captures that were skipped or truncated.
crates/memtrack/src/ebpf/tracker.rs:215
↓ 2 callers
Method
start
( &mut self, profile_folder: &Path, env: &mut HashMap<String, String>, )
src/executor/analysis/instruments/telemetry.rs:18
↓ 2 callers
Method
start_benchmark
(&self)
crates/instrument-hooks-bindings/src/mod.rs:46
↓ 2 callers
Method
start_command_display
Start the live display of a command's output, titled `label`. This only affects the on-screen rendering: the raw output is always persisted to the ru
src/run_environment/interfaces.rs:57
↓ 2 callers
Function
status
(api_client: &CodSpeedAPIClient, config: &CodSpeedConfig)
src/cli/auth.rs:159
↓ 2 callers
Method
stop
(&mut self)
src/executor/analysis/instruments/telemetry.rs:29
↓ 2 callers
Method
stop_benchmark
(&self)
crates/instrument-hooks-bindings/src/mod.rs:52
↓ 2 callers
Function
stopped_command
Build a shell stub that stops itself with `SIGSTOP` right after the shell execs, then `exec`s the real target in the same pid. A `pre_exec` hook that
crates/memtrack/src/ebpf/spawn.rs:14
↓ 2 callers
Function
submit_aligned_alloc_event
crates/memtrack/src/ebpf/c/utils/event_helpers.h:100
↓ 2 callers
Function
submit_rmap
crates/memtrack/src/ebpf/c/rmap.bpf.h:10
↓ 2 callers
Function
sudo_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 callers
Function
suppress_go_perf_unwinding_warning
Set the env variable to not warn users about Go's perf unwinding mode when running Go benchmarks
src/executor/helpers/env.rs:37
↓ 2 callers
Method
symbols
(&self)
src/executor/shared/module_artifacts/module_symbols.rs:45
↓ 2 callers
Function
take_blocking_stdio
Take the child's piped stdout and stderr as blocking files, for reading on plain threads.
src/executor/helpers/run_command_with_log_pipe.rs:11
↓ 2 callers
Function
take_monotonic_time
Moves the monotonic time attribute `key` out of `attributes`. An attribute that isn't a non-negative integer stays.
src/instruments/otel/rows.rs:141
↓ 2 callers
Method
to_perf_string
The event name backing this slot.
crates/runner-shared/src/perf_event.rs:26
↓ 2 callers
Function
trace_id_from_bytes
A trace id, `None` unless it is 16 bytes and not all zero, which OTLP uses for no trace.
src/instruments/otel/rows.rs:168
↓ 2 callers
Function
unix_nanos
(timestamp: u64)
src/instruments/otel/rows.rs:163
↓ 2 callers
Function
unwind_data_from_elf
Based on: https://github.com/mstange/linux-perf-stuff/blob/22ca6531b90c10dd2a4519351c843b8d7958a451/src/main.rs#L747-L893
src/executor/shared/module_artifacts/unwind_data.rs:13
↓ 2 callers
Function
unwind_data_from_object
Like [`unwind_data_from_elf`], but on an already parsed `file`, so callers can bind the data to the exact bytes they verified. `path` is only recorded
src/executor/shared/module_artifacts/unwind_data.rs:39
↓ 2 callers
Function
upload
( orchestrator: &Orchestrator, api_client: &CodSpeedAPIClient, execution_context: &ExecutionContex
src/upload/uploader.rs:361
↓ 2 callers
Function
upload_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 callers
Function
v1_logs
()
crates/runner-shared/src/telemetry/tests.rs:64
↓ 2 callers
Method
version
The OS version, absent on the distributions that report none.
src/system/os.rs:52
↓ 2 callers
Function
warn_callgraph_failures
(names: &[&str])
src/upload/poll_results.rs:220
↓ 2 callers
Function
wrap_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 callers
Method
write
( &self, signal: Signal, encoding: Encoding, body: &[u8], received_byt
src/instruments/otel/receiver.rs:389
↓ 2 callers
Function
write_deferred_logs
(term: &console::Term, logs: &[DeferredLog])
src/local_logger/mod.rs:322
↓ 2 callers
Function
write_fixture_headers
Headers the fixtures `#include`. Each fixture compiles in its own temp dir, so they are copied in next to the source.
crates/memtrack/tests/rss_tests.rs:177
↓ 2 callers
Function
write_frame
(events: &[MemtrackEvent])
crates/runner-shared/benches/memtrack_writer.rs:87
↓ 2 callers
Function
write_persisted
Write the canonical [`PersistedConfig`] to disk.
src/config.rs:218
↓ 2 callers
Method
write_text_file
(&self, filename: &str, content: &str)
src/executor/wall_time/helpers.rs:115
↓ 1 callers
Method
ack_reader
(&mut self)
src/executor/shared/fifo.rs:58
↓ 1 callers
Function
activate_log_deferral
()
src/local_logger/mod.rs:47
↓ 1 callers
Method
active_flags
Returns the names of all experimental flags that were explicitly set by the user.
src/cli/experimental.rs:74
↓ 1 callers
Method
add_benchmark_timestamps
(&self, start: u64, end: u64)
crates/instrument-hooks-bindings/src/lib.rs:85
← previous
next →
301–400 of 1,682, ranked by callers