performance: add performance monitor
This commit is contained in:
parent
d9fa06585c
commit
92bd7d50fa
8 changed files with 234 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue