skip to content
[readonly]

What the CPU executors cost per slot: CPU time, resident bytes and lanes or processes, metered per thread

sh
$ sexc add @ajax/mesh-cpuuse
  • total 3
  • drwxr-xr-x-../
  • drwxr-xr-x-Oct 27 02:56v/# 1 version
  • drwxr-xr-x-Oct 27 02:56files/# the files of 0.1.0
latest
0.1.0, published Oct 27 02:56 by ajax
owners
ajax
license
MIT
dependencies
@ajax/mesh-abi-program-table ^0.1.0, @ajax/mesh-check ^0.1.0
dependents
@ajax/mesh-driver, @ajax/mesh-exec-wasm, @ajax/mesh-load-prog, @ajax/mesh-native, @ajax/mesh-samplers
keywords
mesh alphaos cpu metering executor
homepage
https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-cpuuse
repository
https://github.com/thomasdavis/alpha-c-mesh
==> README.md <==
1# @ajax/mesh-cpuuse
2
3What the CPU executors cost per slot (CPU ns, resident bytes, lanes or processes), the machine's native-worker counters, and the per-thread meter a wasm lane keeps (`mesh_meter_start` / `tick` / `end`).
4
5## Ported from
6
7[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-host/src/cpuuse.rs.
8
9## Tests
10
11`tests/cpuuse.c`: the Rust's `meter_counts_this_threads_cpu_and_memory`.
12
13## Licence
14
15MIT. See the repository's LICENSE.