From 28dc6b93ca81e06e367bff9a5dc51de85abfc4f5 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 7 Jun 2020 23:56:51 +0200 Subject: [PATCH] lock CPU info for perf context --- src/www | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/www b/src/www index 338d61314..22dbb44b8 100755 --- a/src/www +++ b/src/www @@ -68,6 +68,9 @@ async function startTrilium() { log.info(JSON.stringify(appInfo, null, 2)); + const cpuInfos = require('os').cpus(); + log.info(`CPU model: ${cpuInfos[0].model}, logical cores: ${cpuInfos.length} freq: ${cpuInfos[0].speed} Mhz`); // for perf. issues it's good to know the rough configuration + /** * Listen on provided port, on all network interfaces. */