-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DYN-7337 Make TuneUp an Built-In package, part II #15536
Changes from all commits
bd362c2
3fd7dc3
e41dcb5
9ab1f81
9326858
610dd6c
d543528
909be15
a4e10b2
519d66e
d9e868b
716e7dd
9410efb
781f3c2
695d351
d10c25c
d55c83c
2b773bb
858ca4b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<ViewExtensionDefinition> | ||
<AssemblyPath>..\Built-In Packages\TuneUp.dll</AssemblyPath> | ||
<AssemblyPath>..\bin\TuneUp.dll</AssemblyPath> | ||
<TypeName>TuneUp.TuneUpViewExtension</TypeName> | ||
</ViewExtensionDefinition> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"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" | ||
], | ||
"dependencies": [], | ||
"host_dependencies": [], | ||
"contents": "", | ||
"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": [], | ||
"copyright_holder": "DynamoTeam", | ||
"copyright_year": "2024" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1857,11 +1857,9 @@ | |
</ItemGroup> | ||
<Target Name="AfterBuildOps" AfterTargets="Build"> | ||
<ItemGroup> | ||
<ExternTuneUpDll Include="$(SolutionDir)..\extern\TuneUp\TuneUp.dll" /> | ||
<ExternTuneUpManifest Include="$(SolutionDir)..\extern\TuneUp\TuneUp_ViewExtensionDefinition.xml" /> | ||
<ExternTuneUpPkg Include="$(SolutionDir)..\extern\TuneUp\**\*.*" /> | ||
</ItemGroup> | ||
<MakeDir Directories="$(OutputPath)\viewExtensions\" /> | ||
<Copy SourceFiles="@(ExternTuneUpDll)" DestinationFolder="$(OutputPath)\Built-In Packages" /> | ||
<Copy SourceFiles="@(ExternTuneUpManifest)" DestinationFolder="$(OutputPath)\viewExtensions" /> | ||
<Copy SourceFiles="@(ExternTuneUpPkg)" DestinationFolder="$(OutputPath)\Built-In Packages\packages\TuneUp\%(RecursiveDir)" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copy files recursively and keeping the folder structure |
||
</Target> | ||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Reflection; | ||
|
@@ -247,7 +248,8 @@ private void TryLoadPackageIntoLibrary(Package package) | |
|
||
// load custom nodes | ||
var packageInfo = new Graph.Workspaces.PackageInfo(package.Name, new Version(package.VersionName)); | ||
var customNodes = OnRequestLoadCustomNodeDirectory(package.CustomNodeDirectory, packageInfo); | ||
// skip loding if the CustomNodeDirectory does not exist | ||
var customNodes = Directory.Exists(package.CustomNodeDirectory)? OnRequestLoadCustomNodeDirectory(package.CustomNodeDirectory, packageInfo) : []; | ||
package.LoadedCustomNodes.AddRange(customNodes); | ||
|
||
package.EnumerateAdditionalFiles(); | ||
|
@@ -643,16 +645,8 @@ private Version CheckAndGetPackageVersion(string version, string name, string di | |
/// </summary> | ||
/// <param name="packageDirectoryPath">path to package location</param> | ||
/// <param name="discoveredPkg">package object to check</param> | ||
private void CheckPackageNodeLibraryCertificates(string packageDirectoryPath, Package discoveredPkg) | ||
private static void CheckPackageNodeLibraryCertificates(string packageDirectoryPath, Package discoveredPkg) | ||
{ | ||
var dllfiles = new System.IO.DirectoryInfo(discoveredPkg.BinaryDirectory).EnumerateFiles("*.dll"); | ||
if (discoveredPkg.Header.node_libraries.Count() == 0 && dllfiles.Count() != 0) | ||
{ | ||
Log(String.Format( | ||
String.Format(Resources.InvalidPackageNoNodeLibrariesDefinedInPackageJson, | ||
discoveredPkg.Name, discoveredPkg.RootDirectory))); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the node library dll check because Built-In package moving forward may not always include nodes so this is no longer needed, even the logging |
||
|
||
foreach (var nodeLibraryAssembly in discoveredPkg.Header.node_libraries) | ||
{ | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
<ItemGroup> | ||
<PackageReference Include="CommandLineParser" Version="2.8.0" /> | ||
<PackageReference Include="CsvHelper" Version="30.0.1" /> | ||
<PackageReference Include="Greg" Version="3.0.1.4707" /> | ||
<PackageReference Include="Greg" Version="3.0.2.6284" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we changing the greg version only for this project? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @reddyashish This project seems to be behind (not aligned with all the other project) |
||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" /> | ||
<PackageReference Include="RestSharp.Serializers.NewtonsoftJson" Version="106.12.0" /> | ||
</ItemGroup> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore dlls under built directory more precisely