mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
blackify
This commit is contained in:
parent
fe4b2d53ed
commit
daf75a1361
@ -152,6 +152,7 @@ class InvocationStatsService(InvocationStatsServiceBase):
|
|||||||
|
|
||||||
class StatsContext:
|
class StatsContext:
|
||||||
"""Context manager for collecting statistics."""
|
"""Context manager for collecting statistics."""
|
||||||
|
|
||||||
invocation: BaseInvocation = None
|
invocation: BaseInvocation = None
|
||||||
collector: "InvocationStatsServiceBase" = None
|
collector: "InvocationStatsServiceBase" = None
|
||||||
graph_id: str = None
|
graph_id: str = None
|
||||||
@ -224,9 +225,9 @@ class InvocationStatsService(InvocationStatsServiceBase):
|
|||||||
logger.warning(f"Attempted to clear statistics for unknown graph {graph_execution_id}")
|
logger.warning(f"Attempted to clear statistics for unknown graph {graph_execution_id}")
|
||||||
|
|
||||||
def update_mem_stats(
|
def update_mem_stats(
|
||||||
self,
|
self,
|
||||||
ram_used: float,
|
ram_used: float,
|
||||||
ram_changed: float,
|
ram_changed: float,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Update the collector with RAM memory usage info.
|
Update the collector with RAM memory usage info.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user