pinokiod 3.2.46 → 3.2.48
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/kernel/index.js +11 -1
- package/package.json +1 -1
package/kernel/index.js
CHANGED
|
@@ -337,8 +337,12 @@ class Kernel {
|
|
|
337
337
|
|
|
338
338
|
// let contents = await fs.promises.readdir(this.homedir)
|
|
339
339
|
//await this.bin.init()
|
|
340
|
-
|
|
340
|
+
console.time("bin.init")
|
|
341
|
+
await this.bin.init()
|
|
342
|
+
console.timeEnd("bin.init")
|
|
343
|
+
console.time("api.init")
|
|
341
344
|
await this.api.init()
|
|
345
|
+
console.timeEnd("api.init")
|
|
342
346
|
|
|
343
347
|
//await this.shell.init()
|
|
344
348
|
|
|
@@ -354,6 +358,7 @@ class Kernel {
|
|
|
354
358
|
...info
|
|
355
359
|
}, null, 2))
|
|
356
360
|
this.sysinfo = info
|
|
361
|
+
console.time("template.init")
|
|
357
362
|
await this.template.init({
|
|
358
363
|
kernel: this,
|
|
359
364
|
system,
|
|
@@ -364,8 +369,13 @@ class Kernel {
|
|
|
364
369
|
},
|
|
365
370
|
...info
|
|
366
371
|
})
|
|
372
|
+
console.timeEnd("template.init")
|
|
373
|
+
console.time("update_sysinfo")
|
|
367
374
|
await this.update_sysinfo()
|
|
375
|
+
console.timeEnd("update_sysinfo")
|
|
376
|
+
console.time("shell.init")
|
|
368
377
|
await this.shell.init()
|
|
378
|
+
console.timeEnd("shell.init")
|
|
369
379
|
if (this.envs) {
|
|
370
380
|
this.template.update({
|
|
371
381
|
env: this.envs,
|