Skip to content

Commit

Permalink
[cuegui] Add Max Threads and Memory Optimizer to Attributes Plugin (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
ramonfigueiredo authored Jan 27, 2025
1 parent 19b0883 commit 00cd783
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cuegui/cuegui/plugins/AttributesPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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"]),
}

Expand Down

0 comments on commit 00cd783

Please sign in to comment.