1 viewer
rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-app-compute-core/src/capability.rs
Items
const MAX_REPUTATION_EVENTS const MAX_SUPPORTED_LANGUAGES const MAX_LANGUAGE_LEN const MAX_ANNOUNCED_STEPS_PER_SEGMENT const MAX_ANNOUNCED_CONCURRENT_JOBS const MAX_ANNOUNCED_GPU_WORKGROUPS static REPUTATION_EVENTS struct PeerCapability impl PeerCapability struct CapabilityRegistry impl CapabilityRegistry static LOGGED static CACHED_PROBE
Functions
By call-graph weight (PageRank; 1.0 is the average function). 51 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| PeerCapability::local_defaultsrc/capability.rs:111 | method | 41 | 1 | 13 | 3 | 3.1 | |
| parse_capabilitysrc/capability.rs:417 | fn | 43 | 5 | 5 | 5 | 2.3 | |
| PeerCapability::is_available_forsrc/capability.rs:223 | method | 6 | 4 | 2 | 0 | 1.9 | |
| PeerCapability::refresh_derived_metricssrc/capability.rs:216 | method | 5 | 1 | 3 | 4 | 1.8 | |
| now_unixsrc/capability.rs:318 | fn | 3 | 1 | 2 | 1 | 1.8 | |
| PeerCapability::has_gpusrc/capability.rs:189 | method | 3 | 1 | 5 | 0 | 1.7 | |
| estimate_capacity_units_per_mssrc/capability.rs:327 | fn | 7 | 2 | 1 | 0 | 1.6 | |
| CapabilityRegistry::find_capablesrc/capability.rs:273 | method | 11 | 1 | 5 | 1 | 1.5 | |
| PeerCapability::detect_gpusrc/capability.rs:154 | method | 33 | 4 | 1 | 4 | 1.4 | |
| CapabilityRegistry::newsrc/capability.rs:241 | method | 7 | 1 | 6 | 0 | 1.3 | |
| PeerCapability::estimated_capacity_units_per_mssrc/capability.rs:208 | method | 6 | 2 | 4 | 1 | 1.3 | |
| push_reputation_eventsrc/capability.rs:42 | fn | 6 | 2 | 2 | 0 | 1.2 | |
| bounded_u32src/capability.rs:480 | fn | 6 | 2 | 2 | 0 | 1.1 | |
| positive_finitesrc/capability.rs:487 | fn | 3 | 2 | 2 | 0 | 1.1 | |
| reputation_eventssrc/capability.rs:25 | fn | 3 | 1 | 3 | 0 | 1.1 | |
| parse_supported_languagessrc/capability.rs:461 | fn | 18 | 6 | 1 | 0 | 0.9 | |
| round_metricsrc/capability.rs:322 | fn | 4 | 1 | 1 | 0 | 0.9 | |
| estimate_gpu_capacity_scoresrc/capability.rs:335 | fn | 10 | 2 | 1 | 0 | 0.9 | |
| machine_profile_hashsrc/capability.rs:346 | fn | 20 | 1 | 1 | 1 | 0.9 | |
| CapabilityRegistry::update_reputationsrc/capability.rs:310 | method | 6 | 3 | 2 | 0 | 0.9 | |
| gpu_auto_detect_enabledsrc/capability.rs:368 | fn | 3 | 1 | 1 | 1 | 0.8 | |
| configured_gpu_adaptersrc/capability.rs:373 | fn | 3 | 1 | 1 | 2 | 0.8 | |
| log_gpu_detection_oncesrc/capability.rs:378 | fn | 11 | 2 | 1 | 0 | 0.8 | |
| probe_wgpu_adaptersrc/capability.rs:504 | fn | 5 | 1 | 1 | 0 | 0.8 | |
| capability_announcementsrc/capability.rs:391 | fn | 24 | 1 | 2 | 0 | 0.7 | |
| CapabilityRegistry::prune_stalesrc/capability.rs:257 | method | 14 | 2 | 1 | 1 | 0.6 | |
| CapabilityRegistry::mark_busysrc/capability.rs:296 | method | 5 | 2 | 1 | 0 | 0.6 | |
| CapabilityRegistry::mark_freesrc/capability.rs:303 | method | 5 | 2 | 1 | 0 | 0.6 | |
| record_reputation_eventsrc/capability.rs:32 | fn | 9 | 3 | 1 | 2 | 0.6 | |
| drain_reputation_eventssrc/capability.rs:51 | fn | 6 | 2 | 1 | 2 | 0.6 | |
| PeerCapability::has_gpu_provingsrc/capability.rs:194 | method | 3 | 1 | 1 | 0 | 0.6 | |
| PeerCapability::proving_scoresrc/capability.rs:200 | method | 6 | 2 | 1 | 0 | 0.6 | |
| CapabilityRegistry::updatesrc/capability.rs:250 | method | 5 | 1 | 0 | 1 | 0.5 | |
| CapabilityRegistry::getsrc/capability.rs:286 | method | 3 | 1 | 0 | 0 | 0.5 | |
| CapabilityRegistry::allsrc/capability.rs:291 | method | 3 | 1 | 0 | 0 | 0.5 | |
| test_local_defaultsrc/capability.rs:515 | fn | 18 | 1 | 0 | 1 | 0.5 | |
| test_is_available_forsrc/capability.rs:535 | fn | 23 | 1 | 0 | 2 | 0.5 | |
| test_find_capable_sorts_by_reputationsrc/capability.rs:560 | fn | 25 | 1 | 0 | 3 | 0.5 | |
| test_mark_busy_freesrc/capability.rs:587 | fn | 25 | 1 | 0 | 4 | 0.5 | |
| test_prune_stalesrc/capability.rs:614 | fn | 12 | 1 | 0 | 3 | 0.5 | |
| test_capability_announcement_roundtripsrc/capability.rs:628 | fn | 15 | 1 | 0 | 3 | 0.5 | |
| test_parse_capability_clamps_untrusted_numbers_and_languagessrc/capability.rs:645 | fn | 29 | 1 | 0 | 1 | 0.5 | |
| test_parse_capability_dedups_and_trims_languagessrc/capability.rs:676 | fn | 10 | 1 | 0 | 1 | 0.5 | |
| test_update_reputationsrc/capability.rs:688 | fn | 21 | 1 | 0 | 3 | 0.5 | |
| test_reputation_event_queue_is_boundedsrc/capability.rs:711 | fn | 13 | 2 | 0 | 1 | 0.5 | |
| test_record_and_drain_global_reputation_eventssrc/capability.rs:726 | fn | 22 | 1 | 0 | 5 | 0.5 | |
| test_gpu_and_proving_metrics_are_derivedsrc/capability.rs:750 | fn | 23 | 1 | 0 | 6 | 0.5 | |
| test_registry_all_lists_known_capabilitiessrc/capability.rs:775 | fn | 10 | 1 | 0 | 2 | 0.5 | |
| test_parse_capability_defaults_gpu_and_refreshes_empty_metricssrc/capability.rs:787 | fn | 31 | 1 | 0 | 1 | 0.5 | |
| test_parse_capability_requires_language_array_and_filters_empty_listssrc/capability.rs:820 | fn | 14 | 1 | 0 | 1 | 0.5 | |
| test_numeric_helpers_use_defaults_and_reject_non_positive_valuessrc/capability.rs:836 | fn | 10 | 1 | 0 | 2 | 0.5 |
Source not readable from this process.