aboutsummaryrefslogtreecommitdiff
path: root/views/script/credits_technical.js
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-06-05 19:27:48 +0200
committerMinteck <nekostarfan@gmail.com>2021-06-05 19:27:48 +0200
commit8cf5cefe6e91a5a1ed6eeaae4d94760d84c304a6 (patch)
tree7096b67b189c0220826123c7d5b121752545d140 /views/script/credits_technical.js
downloadkartik-client-8cf5cefe6e91a5a1ed6eeaae4d94760d84c304a6.tar.gz
kartik-client-8cf5cefe6e91a5a1ed6eeaae4d94760d84c304a6.tar.bz2
kartik-client-8cf5cefe6e91a5a1ed6eeaae4d94760d84c304a6.zip
Presque sortie du jeu
Diffstat (limited to 'views/script/credits_technical.js')
-rw-r--r--views/script/credits_technical.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/views/script/credits_technical.js b/views/script/credits_technical.js
new file mode 100644
index 0000000..8193167
--- /dev/null
+++ b/views/script/credits_technical.js
@@ -0,0 +1,9 @@
+document.write("Kartik"+require('@electron/remote').getCurrentWindow().channel + " (" + require('../package.json').name + ") " +require('../package.json').version);
+document.write(" on " + require('os').type() + " (" + require('os').version() + ", " + require('os').arch() +") version " + require('os').release() + "<br>")
+cores = require('os').cpus()
+if (cores.length > 1) {
+ document.write(cores.length + " processors<br>");
+} else {
+ document.write(cores.length + " processor<br>");
+}
+document.write(((process.memoryUsage().heapUsed/1024)/1024).toFixed(2) + " MB heap memory used, " + ((process.memoryUsage().heapTotal/1024)/1024).toFixed(2) + " MB heap memory total, " + ((process.memoryUsage().rss/1024)/1024).toFixed(2) + " MB virtual memory"); \ No newline at end of file