peakmarkv0.1.1

← All examples

Over the budget

Peak memory over its budget: the finding names the rule and the scenario.

Over the budget

examples/fail.ansi
\x1b[1;91m✖\x1b[0m peakmark check: over budget: engine

  \x1b[2mModules: \x1b[0m\x1b[36m1\x1b[0m   \x1b[2mOver budget: \x1b[0m\x1b[1;91m1\x1b[0m   \x1b[2mGrown: \x1b[0m\x1b[36m0\x1b[0m

● \x1b[1;96mengine\x1b[0m \x1b[2m(1)\x1b[0m
  - \x1b[1;91mPeak memory 23.6 MiB, budget 20.0 MiB\x1b[0m \x1b[2m[mem/peak]\x1b[0m at \x1b[2mbench/pivot.mjs\x1b[0m

\x1b[1;96mNext steps:\x1b[0m
  • Shrink the module, or raise its budget in the configuration on purpose
✖ peakmark check: over budget: engine

  Modules: 1   Over budget: 1   Grown: 0

● engine (1)
  - Peak memory 23.6 MiB, budget 20.0 MiB [mem/peak] at bench/pivot.mjs

Next steps:
  • Shrink the module, or raise its budget in the configuration on purpose
  • check
  • memory
  • exit 1