Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanTUD committed Dec 17, 2024
1 parent fd9e005 commit 51a022d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ function memory_debugger () {

var debug_string = `${language[lang]["tensors"]}: ` + colorize(num_tensors, tensor_color) + ", RAM: " + colorize(ram_mb, cpu_color) + "MB";

if (navigator.deviceMemory) {
debug_string += `, System Memory: ${navigator.deviceMemory} GB`;
}

if(gpu_mb.toString().match(/^\d+(?:\.\d+)?$/)) {
debug_string = debug_string + ", GPU: " + colorize(gpu_mb, gpu_color) + "MB";
}
Expand Down

0 comments on commit 51a022d

Please sign in to comment.