MCPcopy Create free account

hub / github.com/CodSpeedHQ/codspeed / functions

Functions1,682 in github.com/CodSpeedHQ/codspeed

↓ 2 callersFunctionmemtrack_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 callersFunctionmib_16
Quantize to 16 MiB buckets so snapshots tolerate page-level noise between runs.
crates/memtrack/tests/rss_tests.rs:17
↓ 2 callersFunctionmint_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 callersMethodname
(self)
tests/executors.rs:95
↓ 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:99
↓ 2 callersFunctionopen_fifo_receiver
(path: &Path)
src/executor/shared/fifo.rs:111
↓ 2 callersMethodownership_maps
Only meaningful while the BPF object is alive; teardown frees the maps.
crates/memtrack/src/ebpf/tracker.rs:224
↓ 2 callersFunctionparse_dev
Parse a `MAJOR:MINOR` lowercase-hex dev column.
crates/memtrack/src/ebpf/proc_fs.rs:187
↓ 2 callersFunctionpath_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 callersFunctionper_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 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 callersFunctionphysical_only_options
Physical-memory tracking without allocator probes.
crates/memtrack/tests/shared.rs:217
↓ 2 callersMethodpid
(&self)
crates/memtrack/src/session.rs:41
↓ 2 callersFunctionpinned_go_runner_installers
()
src/executor/helpers/introspected_golang/mod.rs:26
↓ 2 callersFunctionpopulated_artifacts
()
crates/runner-shared/src/metadata.rs:188
↓ 2 callersFunctionprefix_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 callersFunctionpreserve_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 callersMethodprint_executing
(&self)
crates/exec-harness/src/uri.rs:34
↓ 2 callersFunctionpurge_process_mappings
Drop every mapping recorded for `pid` across all modules.
src/executor/wall_time/profiler/perf/parse_perf_file.rs:198
↓ 2 callersFunctionread_counter
Read slot 0 of a single-entry `__u64` array map.
crates/memtrack/src/ebpf/memtrack/maps.rs:156
↓ 2 callersFunctionread_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 callersFunctionread_mappings
(results_folder: &Path)
src/executor/memory/module_artifacts.rs:83
↓ 2 callersFunctionread_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 callersFunctionreclaim_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 callersFunctionrecorded_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 callersFunctionregister
Persist `value` for the current shell session (keyed by the parent PID of this process).
src/shell_session_store.rs:72
↓ 2 callersFunctionremove_dir
(dir: &Path)
src/instruments/otel/receiver.rs:130
↓ 2 callersFunctionremove_fifo
(path: &Path)
src/executor/shared/fifo.rs:17
↓ 2 callersMethodrender_bottom_delimiter
(&self)
src/local_logger/rolling_buffer/mod.rs:154
↓ 2 callersMethodrender_content_line
(&self, line: &str)
src/local_logger/rolling_buffer/mod.rs:163
↓ 2 callersMethodrender_title_line
(&self)
src/local_logger/rolling_buffer/mod.rs:115
↓ 2 callersMethodrender_top_delimiter
(&self)
src/local_logger/rolling_buffer/mod.rs:124
↓ 2 callersMethodresolve_cycle_estimation
Resolves cycle estimation, honoring the deprecated `--experimental-cycle-estimation` alias.
src/cli/shared.rs:181
↓ 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:266
↓ 2 callersMethodresolve_exclude_allocations
Resolves allocation exclusion, honoring the deprecated `--experimental-exclude-allocations` alias.
src/cli/shared.rs:187
↓ 2 callersFunctionresolve_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 callersMethodresolve_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 callersMethodresolve_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 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:163
↓ 2 callersMethodresolve_selected_profile
( &mut self, profile_name: Option<&str>, overrides: ConfigOverrides<'_>, allow
src/config.rs:293
↓ 2 callersFunctionresolve_unwinding
( command: &str, explicit: Option<WalltimeUnwinding>, )
src/executor/wall_time/profiler/unwinding.rs:5
↓ 2 callersMethodresolve_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 callersFunctionrun
()
src/cli/mod.rs:187
↓ 2 callersMethodrun
( &mut self, execution_context: &ExecutionContext, _mongo_tracer: &Option<MongoTracer>
src/executor/memory/executor.rs:171
↓ 2 callersFunctionrun_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 callersFunctionrun_storm
( binary: &std::path::Path, args: [&str; 2], options: TrackerOptions, )
crates/memtrack/tests/pressure_tests.rs:23
↓ 2 callersFunctionsave_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 callersFunctionsave_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 callersMethodsave_with_pid_to
( &self, folder: P, pid: pid_t, )
crates/runner-shared/src/artifacts/mod.rs:58
↓ 2 callersFunctionscope_name_and_version
(scope: Option<InstrumentationScope>)
src/instruments/otel/rows.rs:133
↓ 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:424
↓ 2 callersMethodsession_and_repository_overview
( &self, vars: SessionAndRepositoryOverviewVars, )
src/run_environment/local/provider.rs:398
↓ 2 callersFunctionset
( config_name: Option<&str>, profile_name: &str, api_url: Option<String>, upload_url: Option<S
src/cli/profile.rs:103
↓ 2 callersMethodset_authentication
The single mutation point for the credentials.
src/api_client.rs:93
↓ 2 callersMethodset_executed_benchmark_for_pid
(&self, pid: u32, uri: &str)
crates/instrument-hooks-bindings/src/lib.rs:66
↓ 2 callersFunctionset_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 callersMethodset_tracking
(&mut self, enabled: bool)
crates/memtrack/src/ebpf/memtrack/maps.rs:28
↓ 2 callersMethodsetup
( &self, _system_info: &SystemInfo, _setup_cache_dir: Option<&Path>, _run_envi
src/executor/mod.rs:132
↓ 2 callersFunctionshow_banner
()
src/cli/shared.rs:10
↓ 2 callersFunctionshow_comparison_suggestion
(run_id: &str)
src/upload/poll_results.rs:230
↓ 2 callersFunctionspan_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 callersFunctionspawn_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 callersFunctionstack_capture
()
crates/memtrack/tests/interpreter_tests.rs:63
↓ 2 callersMethodstack_capture_stats
Per-cause counts of stack captures that were skipped or truncated.
crates/memtrack/src/ebpf/tracker.rs:215
↓ 2 callersMethodstart
( &mut self, profile_folder: &Path, env: &mut HashMap<String, String>, )
src/executor/analysis/instruments/telemetry.rs:18
↓ 2 callersMethodstart_benchmark
(&self)
crates/instrument-hooks-bindings/src/mod.rs:46
↓ 2 callersMethodstart_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 callersFunctionstatus
(api_client: &CodSpeedAPIClient, config: &CodSpeedConfig)
src/cli/auth.rs:159
↓ 2 callersMethodstop
(&mut self)
src/executor/analysis/instruments/telemetry.rs:29
↓ 2 callersMethodstop_benchmark
(&self)
crates/instrument-hooks-bindings/src/mod.rs:52
↓ 2 callersFunctionstopped_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 callersFunctionsubmit_aligned_alloc_event
crates/memtrack/src/ebpf/c/utils/event_helpers.h:100
↓ 2 callersFunctionsubmit_rmap
crates/memtrack/src/ebpf/c/rmap.bpf.h:10
↓ 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 callersFunctionsuppress_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 callersMethodsymbols
(&self)
src/executor/shared/module_artifacts/module_symbols.rs:45
↓ 2 callersFunctiontake_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 callersFunctiontake_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 callersMethodto_perf_string
The event name backing this slot.
crates/runner-shared/src/perf_event.rs:26
↓ 2 callersFunctiontrace_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 callersFunctionunix_nanos
(timestamp: u64)
src/instruments/otel/rows.rs:163
↓ 2 callersFunctionunwind_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 callersFunctionunwind_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 callersFunctionupload
( orchestrator: &Orchestrator, api_client: &CodSpeedAPIClient, execution_context: &ExecutionContex
src/upload/uploader.rs:361
↓ 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 callersFunctionv1_logs
()
crates/runner-shared/src/telemetry/tests.rs:64
↓ 2 callersMethodversion
The OS version, absent on the distributions that report none.
src/system/os.rs:52
↓ 2 callersFunctionwarn_callgraph_failures
(names: &[&str])
src/upload/poll_results.rs:220
↓ 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 callersMethodwrite
( &self, signal: Signal, encoding: Encoding, body: &[u8], received_byt
src/instruments/otel/receiver.rs:389
↓ 2 callersFunctionwrite_deferred_logs
(term: &console::Term, logs: &[DeferredLog])
src/local_logger/mod.rs:322
↓ 2 callersFunctionwrite_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 callersFunctionwrite_frame
(events: &[MemtrackEvent])
crates/runner-shared/benches/memtrack_writer.rs:87
↓ 2 callersFunctionwrite_persisted
Write the canonical [`PersistedConfig`] to disk.
src/config.rs:218
↓ 2 callersMethodwrite_text_file
(&self, filename: &str, content: &str)
src/executor/wall_time/helpers.rs:115
↓ 1 callersMethodack_reader
(&mut self)
src/executor/shared/fifo.rs:58
↓ 1 callersFunctionactivate_log_deferral
()
src/local_logger/mod.rs:47
↓ 1 callersMethodactive_flags
Returns the names of all experimental flags that were explicitly set by the user.
src/cli/experimental.rs:74
↓ 1 callersMethodadd_benchmark_timestamps
(&self, start: u64, end: u64)
crates/instrument-hooks-bindings/src/lib.rs:85
← previousnext →301–400 of 1,682, ranked by callers