From d59a30ee8f8e2755bde3bdaeb5a20327bca73d85 Mon Sep 17 00:00:00 2001 From: Ivo Petrov <48355182+ivaylo-matov@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:52:57 +0000 Subject: [PATCH 1/2] [DYN-7698] Zoom to group, doesn't work (#76) * Update TuneUpWindowViewModel.cs * GroupModel to profiledGroups --- TuneUp/TuneUpWindowViewModel.cs | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/TuneUp/TuneUpWindowViewModel.cs b/TuneUp/TuneUpWindowViewModel.cs index 074b474..55592b1 100644 --- a/TuneUp/TuneUpWindowViewModel.cs +++ b/TuneUp/TuneUpWindowViewModel.cs @@ -580,6 +580,7 @@ private void CreateGroupNodesForCollection(ObservableCollection(); + var nodesToAdd = new HashSet(); var sortedNodes = collection.OrderBy(n => n.ExecutionOrderNumber).ToList(); @@ -612,20 +613,16 @@ private void CreateGroupNodesForCollection(ObservableCollection n.GUID.Equals(pNode.GroupGUID)) }; + nodesToAdd.Add(pGroup); groupDictionary[pGroup.NodeGUID] = pGroup; groupModelDictionary[pNode.GroupGUID].Add(pGroup); // Create an register a new time node - var timeNode = CreateAndRegisterGroupTimeNode(pGroup); - - GetCollectionViewSource(collection).Dispatcher.Invoke(() => - { - collection.Add(timeNode); - collection.Add(pGroup); - }); + nodesToAdd.Add(CreateAndRegisterGroupTimeNode(pGroup)); // Update group-related properties for all nodes in the group foreach (var node in nodesInGroup) @@ -635,6 +632,14 @@ private void CreateGroupNodesForCollection(ObservableCollection + { + foreach (var node in nodesToAdd) + { + collection.Add(node); + } + }); } internal void OnNodeExecutionBegin(NodeModel nm) From 5bef58ddaa17512bae1c884a98e20267e379b216 Mon Sep 17 00:00:00 2001 From: "Aaron (Qilong)" <173288704@qq.com> Date: Tue, 5 Nov 2024 09:53:26 -0500 Subject: [PATCH 2/2] update manifest file (#75) --- TuneUp/manifests/pkg.json | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/TuneUp/manifests/pkg.json b/TuneUp/manifests/pkg.json index b579a9b..d3d00ea 100644 --- a/TuneUp/manifests/pkg.json +++ b/TuneUp/manifests/pkg.json @@ -1,22 +1,24 @@ { - "license": "", + "license": "MIT", "file_hash": null, "name": "TuneUp", "version": "1.0.13", "description": "On Dynamo 2.5–2.19 (.NET 4.8), use TuneUp versions up to 1.0.7.\r\nOn Dynamo 3.0+ (.NET 8), use TuneUp versions 1.0.8 and later.\r\n\r\nTuneUp is a view extension for analyzing the performance of Dynamo graphs. TuneUp allows you to see overall graph execution time, per-node execution time, execution time of groups, and other helpful information. With TuneUp, you can rerun all nodes, including ones that are normally skipped for optimization/caching during repeated runs of a graph. This enables you to compare the actual execution times between multiple runs. Read more here: https://dynamobim.org/tuneup-extension-explore-your-node-and-graph-execution-times/. \r\n\r\nKnown issues:\r\n1. TuneUp does not work in a custom node workspace.\r\n2. TuneUp does not work in a custom node workspace.", "group": "", "keywords": [ - "profiler", - "tuneup" + "profiler", + "tuneup" ], "dependencies": [], "host_dependencies": [], "contents": "", - "engine_version": "2.5.0", + "engine_version": "3.0.0.7186", "engine": "dynamo", "engine_metadata": "", "site_url": "https://dynamobim.org/", "repository_url": "https://github.com/DynamoDS/TuneUp", "contains_binaries": true, - "node_libraries": [] -} + "node_libraries": [], + "copyright_holder": "DynamoTeam", + "copyright_year": "2024" +} \ No newline at end of file