Skip to content

Commit 9c5b963

Browse files
authored
1.2 release which can now include Perfetto support. (#66)
* Changes for 1.2 release which can now include Perfetto support. Also compatible with public Store Windows Performance Analyzer Preview which supports 1.0 RC SDK. Rev version to 1.2 and standardize package version, AssemblyVersion, and FileVersion into just 1 version.
1 parent 6ad4b07 commit 9c5b963

File tree

16 files changed

+54
-25
lines changed

16 files changed

+54
-25
lines changed

CtfPlayback/CtfPlayback.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
5+
<Version>1.2</Version>
56
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
67
<Authors>Microsoft</Authors>
78
<Company>Microsoft Corp.</Company>

LTTngCds/LTTngCds.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
5-
<AssemblyVersion>1.1.1.0</AssemblyVersion>
6-
<FileVersion>1.1.1.0</FileVersion>
5+
<Version>1.2</Version>
76
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
87
<Authors>Microsoft</Authors>
98
<Company>Microsoft Corp.</Company>

LTTngDataExtensions/LTTngDataExtensions.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
5-
<AssemblyVersion>1.1.1.0</AssemblyVersion>
6-
<FileVersion>1.1.0.0</FileVersion>
5+
<Version>1.2</Version>
76
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
87
<Authors>Microsoft</Authors>
98
<Company>Microsoft Corp.</Company>

LTTngDriver/LTTngDriver.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>netcoreapp3.1</TargetFramework>
6+
<Version>1.2</Version>
67
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
78
<Authors>Microsoft</Authors>
89
<Company>Microsoft Corp.</Company>

Launcher/Windows/LaunchWpaPerfToolsLinuxAndroid.ps1

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Param(
1818
$LinuxPerfToolsPluginFolder
1919
)
2020

21+
$MinStoreWPAVersion = New-Object -TypeName System.Version -ArgumentList "10.0.22500.0"
22+
$WPAPreviewStoreLink = "https://www.microsoft.com/en-us/p/windows-performance-analyzer-preview/9n58qrw40dfw"
23+
2124
Write-Host "Please see https://aka.ms/linuxperftools for help"
2225

2326
if (-not $LinuxPerfToolsPluginFolder -or -not (Test-Path -Path $LinuxPerfToolsPluginFolder -ErrorAction Ignore | Out-Null))
@@ -42,16 +45,36 @@ if ($LinuxPerfToolsPluginFolder -and -not (Test-Path -Path $localLinuxPerfWpaAdd
4245
Exit
4346
}
4447

45-
$wpaProcess = "wpa.exe"
46-
47-
if (-not (Test-Path -Path $wpaProcess))
48+
$wpaPreviewStorePkg = Get-AppPackage -Name Microsoft.WindowsPerformanceAnalyzerPreview
49+
if (-not $wpaPreviewStorePkg -or $wpaPreviewStorePkg.Status -ne "Ok")
4850
{
49-
Write-Host "Please download the latest Store Windows Performance Analyzer (Preview)"
50-
Start-Process "https://www.microsoft.com/en-us/p/windows-performance-analyzer-preview/9n58qrw40dfw"
51+
Write-Error -Category NotInstalled -Message "REQUIRED PREREQUISITE Store Windows Performance Analyzer (Preview) is not installed. Please install it from the Store. Launching $WPAPreviewStoreLink"
52+
Start-Process "$WPAPreviewStoreLink"
5153
Pause
5254
Exit
5355
}
5456

57+
$v = New-Object -TypeName System.Version -ArgumentList $wpaPreviewStorePkg.Version
58+
# Is MinStoreWPAVersion same, later, or earlier than current WPA version?
59+
$WpaVersionComparison = $MinStoreWPAVersion.CompareTo($v);
60+
switch ($WpaVersionComparison )
61+
{
62+
# MinStoreWPAVersion the same as current WPA
63+
0 { break }
64+
# MinStoreWPAVersion later than current WPA
65+
1
66+
{
67+
Write-Error -Category NotInstalled -Message "Current WPA version is $v. Need minimum of WPA $MinStoreWPAVersion. Redirecting to Store WPA so that you can update...";
68+
Start-Process "$WPAPreviewStoreLink"
69+
Pause
70+
Exit
71+
}
72+
# MinStoreWPAVersion earlier than current WPA. That's ok
73+
-1 { break }
74+
}
75+
76+
$wpaProcess = "$env:LOCALAPPDATA\Microsoft\WindowsApps\wpa.exe"
77+
5578
$startInfo = New-Object System.Diagnostics.ProcessStartInfo
5679
$startInfo.FileName = $wpaProcess
5780

@@ -73,8 +96,6 @@ if ($InputFile)
7396
else
7497
{
7598
$startInfo.Arguments = "-addsearchdir `"$localLinuxPerfWpaAddins`""
76-
Pause
77-
Exit
7899
}
79100

80101
Write-Host "Launching" $wpaProcess $startInfo.Arguments

LinuxLogParsers/LinuxLogParser/LinuxLogParser.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
5+
<Version>1.2</Version>
56
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
67
<Authors>Microsoft</Authors>
78
<Company>Microsoft Corp.</Company>

LinuxLogParsers/LinuxLogParserCore/LinuxLogParserCore.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
5+
<Version>1.2</Version>
56
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
67
<Authors>Microsoft</Authors>
78
<Company>Microsoft Corp.</Company>

LinuxLogParsers/LinuxPlugins-MicrosoftPerformanceToolkSDK/Cloud-init/Cloud-Init.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
5+
<Version>1.2</Version>
56
<AssemblyName>Cloud-InitMPTPlugin</AssemblyName>
67
<RootNamespace>Cloud-InitMPTPlugin</RootNamespace>
78
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>

LinuxLogParsers/LinuxPlugins-MicrosoftPerformanceToolkSDK/DmesgIsoLog/Dmesg.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
5+
<Version>1.2</Version>
56
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
67
<RootNamespace>DMesg</RootNamespace>
78
<Authors>Microsoft</Authors>

LinuxLogParsers/LinuxPlugins-MicrosoftPerformanceToolkSDK/WaLinuxAgent/WaLinuxAgent.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
5+
<Version>1.2</Version>
56
<AssemblyName>WaLinuxAgent</AssemblyName>
67
<RootNamespace>WaLinuxAgent</RootNamespace>
78
<RunPostBuildEvent>Always</RunPostBuildEvent>

0 commit comments

Comments
 (0)