motoko 3.6.7 → 3.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/contrib/snippets.json
CHANGED
|
@@ -499,5 +499,18 @@
|
|
|
499
499
|
"body": [
|
|
500
500
|
"actor (${1:text}) : actor { ${2:method} : ${3:()} -> async ${4:()} }"
|
|
501
501
|
]
|
|
502
|
+
},
|
|
503
|
+
"Profiling Region": {
|
|
504
|
+
"prefix": [
|
|
505
|
+
"profiling-region"
|
|
506
|
+
],
|
|
507
|
+
"body": [
|
|
508
|
+
"stable let profiling = do {",
|
|
509
|
+
"\tlet r = Region.new();",
|
|
510
|
+
"\tignore Region.grow(r, 32);",
|
|
511
|
+
"\tr",
|
|
512
|
+
"};"
|
|
513
|
+
],
|
|
514
|
+
"description": "include as the first line in an actor for stable memory region profiling"
|
|
502
515
|
}
|
|
503
516
|
}
|
package/package.json
CHANGED