motoko 3.6.6 → 3.6.8
Sign up to get free protection for your applications and to get access to all the features.
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