@microlink/function 0.2.6 → 0.2.7
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/README.md +5 -2
- package/package.json +2 -2
- package/src/index.d.ts +6 -1
package/README.md
CHANGED
|
@@ -238,7 +238,7 @@ console.log(result.profiling)
|
|
|
238
238
|
// {
|
|
239
239
|
// phases: { install: 0, build: 120, spawn: 45, run: 890, total: 1055 },
|
|
240
240
|
// cpu: 234,
|
|
241
|
-
// memory:
|
|
241
|
+
// memory: { total: 69996544, used: 2359296, heap: 4410880, external: 1742574 },
|
|
242
242
|
// size: 156
|
|
243
243
|
// }
|
|
244
244
|
```
|
|
@@ -251,7 +251,10 @@ console.log(result.profiling)
|
|
|
251
251
|
| `phases.run` | Time spent executing the function. |
|
|
252
252
|
| `phases.total` | Wall-clock time from start to finish. |
|
|
253
253
|
| `cpu` | Peak CPU time in milliseconds. |
|
|
254
|
-
| `memory` |
|
|
254
|
+
| `memory.total` | Resident memory of the sandbox, Node.js baseline included, in bytes. |
|
|
255
|
+
| `memory.used` | Resident memory attributable to your function, in bytes. |
|
|
256
|
+
| `memory.heap` | V8 heap in use, in bytes. The only field the memory limit bounds. |
|
|
257
|
+
| `memory.external` | Off-heap `Buffer`/`ArrayBuffer` memory, in bytes. |
|
|
255
258
|
| `size` | Bundled code size in bytes. |
|
|
256
259
|
|
|
257
260
|
### Plan limits
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@microlink/function",
|
|
3
3
|
"description": "Write JavaScript functions and run them remotely with Microlink — Puppeteer access, npm packages, and zero infrastructure.",
|
|
4
4
|
"homepage": "https://function.microlink.io",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.7",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
"types": "./src/index.d.ts",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
},
|
|
84
84
|
"directory": "test"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "35ba2e58e85c61899d5abd23fca47a4b01ccbebf"
|
|
87
87
|
}
|