From 00cd7839de6122f24e256ee3ac9f5ef0199824a7 Mon Sep 17 00:00:00 2001 From: Ramon Figueiredo Date: Mon, 27 Jan 2025 12:02:28 -0800 Subject: [PATCH] [cuegui] Add Max Threads and Memory Optimizer to Attributes Plugin (#1639) - Added Max Threads and Memory Optimizer attributes to the Attributes plugin - Enhances usability by providing key layer info when the Properties popup is unavailable --- cuegui/cuegui/plugins/AttributesPlugin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cuegui/cuegui/plugins/AttributesPlugin.py b/cuegui/cuegui/plugins/AttributesPlugin.py index 3c8bcd252..9fee45fd0 100644 --- a/cuegui/cuegui/plugins/AttributesPlugin.py +++ b/cuegui/cuegui/plugins/AttributesPlugin.py @@ -252,6 +252,8 @@ def dataSource(self, layer, preload): "tags": layer.data.tags, "threadable": str(layer.data.is_threadable), "minCores": "%0.2f" % layer.data.min_cores, + "maxCores": "%0.2f" % layer.data.max_cores, + "memory optimizer enabled": str(layer.data.memory_optimizer_enabled), "minMemory": "%0.2fMB" % (layer.data.min_memory / 1024.0), "outputs": {}, "frames": { @@ -281,8 +283,8 @@ def dataSource(self, layer, preload): "maxRss": int(layer.data.layer_stats.max_rss) }, "__childOrder":["id","layer","services","type","command","range","tags", - "threadable","minCores","minMemory","outputs", - "depends", "frames","resources"], + "threadable","minCores","maxCores","memory optimizer enabled", + "minMemory","outputs", "depends", "frames","resources"], "depends": getDependsForm(preload["depends"]), }