Skip to content

0.12.1

Compare
Choose a tag to compare
@github-actions github-actions released this 08 Aug 15:08
· 122 commits to master since this release
a001388
  • motoko (moc)

    • Added a new command-line flag --print-source-on-error to print source code context on error (#4650).

    • debugging: __motoko_runtime_information() as privileged query for runtime statistics (#4635).

      Exposing a privileged system-level query function __motoko_runtime_information()
      that reports the current runtime statistics of the canister, such as the heap size,
      the total number of allocated objects, the total amount of reclaimed memory and more.
      This is useful because several statistics of the reported information cannot be
      inspected on the IC replica dashboard as they are internal to the Motoko runtime system.
      This query is only authorized to the canister controllers and self-calls of the canister.

      __motoko_runtime_information : () -> {
          compilerVersion : Text;
          rtsVersion : Text;
          garbageCollector : Text;
          sanityChecks : Nat;
          memorySize : Nat;
          heapSize : Nat;
          totalAllocation : Nat;
          reclaimed : Nat;
          maxLiveSize : Nat;
          stableMemorySize : Nat;
          logicalStableMemorySize : Nat;
          maxStackSize : Nat;
          callbackTableCount : Nat;
          callbackTableSize : Nat;
      }
  • motoko-base

    • Added Iter.concat function (thanks to AndyGura) (dfinity/motoko-base⁠#650).