mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
chore: 忽略sourcemap,gen metadata
This commit is contained in:
@@ -12,8 +12,8 @@ export class AutoBLoadPlugins {
|
||||
@Init()
|
||||
async init() {
|
||||
logger.info('加载插件开始');
|
||||
// await this.pluginService.registerFromLocal("./metadata")
|
||||
await import("../../plugins/index.js")
|
||||
await this.pluginService.registerFromLocal("./metadata")
|
||||
// await import("../../plugins/index.js")
|
||||
await this.pluginService.registerFromDb()
|
||||
logger.info('加载插件完成');
|
||||
|
||||
|
||||
@@ -47,10 +47,12 @@ export class AutoZPrint {
|
||||
function format(bytes: any) {
|
||||
return (bytes / 1024 / 1024).toFixed(2) + ' MB';
|
||||
}
|
||||
setInterval(() => {
|
||||
function printHeapLog() {
|
||||
const mu = process.memoryUsage();
|
||||
logger.info(`rss:${format(mu.rss)},heapUsed: ${format(mu.heapUsed)},heapTotal: ${format(mu.heapTotal)},external: ${format(mu.external)},arrayBuffers: ${format(mu.arrayBuffers)}`);
|
||||
}, 20000);
|
||||
}
|
||||
setInterval(printHeapLog, 20000);
|
||||
printHeapLog();
|
||||
}
|
||||
|
||||
startHttpsServer() {
|
||||
|
||||
Reference in New Issue
Block a user