performance: add performance monitor

This commit is contained in:
justcool393 2023-03-14 11:31:04 -07:00 committed by GitHub
parent d9fa06585c
commit 92bd7d50fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 234 additions and 1 deletions

View file

@ -9,6 +9,9 @@ from .get import *
from .const import *
from files.helpers.assetcache import assetcache_path
@app.template_filter("computer_size")
def computer_size(size_bytes:int) -> str:
return f'{size_bytes // 1024 // 1024} MiB'
@app.template_filter("shuffle")
@pass_context