Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bloat-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: |
python .github/scripts/memory/gh_report.py \
--verbose \
--report-increases 0.2 \
--report-increases 0.001 \
--report-pr \
--github-comment \
--github-limit-artifact-pages 50 \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ jobs:

- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
if: ${{ !env.ACT && matrix.features == 'os' }}
with:
platform-name: cross-platform
12 changes: 11 additions & 1 deletion examples/light.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,17 @@ use rs_matter_stack::wireless::WifiMatterStack;

use static_cell::StaticCell;

const BUMP_SIZE: usize = 24000;
/// The amount of memory for allocating all `rs-matter-stack` futures created during
/// the execution of the `run*` methods.
/// This does NOT include the rest of the Matter stack.
///
/// The futures of `rs-matter-stack` created during the execution of the `run*` methods
/// are allocated in a special way using a small bump allocator which results
/// in a much lower memory usage by those.
///
/// If - for your platform - this size is not enough, increase it until
/// the program runs without panics during the stack initialization.
const BUMP_SIZE: usize = 23500;

fn main() -> Result<(), Error> {
env_logger::init_from_env(
Expand Down
19 changes: 13 additions & 6 deletions examples/light_eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

use core::pin::pin;

use env_logger::Target;
use log::info;

use rs_matter::dm::clusters::on_off::test::TestOnOffDeviceLogic;
Expand All @@ -34,14 +33,22 @@ use rs_matter_stack::persist::DirKvBlobStore;

use static_cell::StaticCell;

const BUMP_SIZE: usize = 20000;
/// The amount of memory for allocating all `rs-matter-stack` futures created during
/// the execution of the `run*` methods.
/// This does NOT include the rest of the Matter stack.
///
/// The futures of `rs-matter-stack` created during the execution of the `run*` methods
/// are allocated in a special way using a small bump allocator which results
/// in a much lower memory usage by those.
///
/// If - for your platform - this size is not enough, increase it until
/// the program runs without panics during the stack initialization.
const BUMP_SIZE: usize = 40000; //20000;

fn main() -> Result<(), Error> {
env_logger::Builder::from_env(
env_logger::init_from_env(
env_logger::Env::default().filter_or(env_logger::DEFAULT_FILTER_ENV, "info"),
)
.target(Target::Stdout)
.init();
);

info!("Starting...");

Expand Down