Skip to content

Commit

Permalink
start tracking selfcontained executable usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mukunku committed Aug 30, 2023
1 parent 51cc9fe commit 2dd4a51
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ParquetViewer.Engine/ParquetViewer.Engine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PlatformTarget>x64</PlatformTarget>
<Configurations>Debug;Release;Release_SelfContained</Configurations>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Parquet.Net" />
Expand Down
6 changes: 6 additions & 0 deletions src/ParquetViewer.Tests/ParquetViewer.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@
<IsPackable>false</IsPackable>

<PlatformTarget>x64</PlatformTarget>

<Configurations>Debug;Release;Release_SelfContained</Configurations>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<LangVersion>default</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_SelfContained|AnyCPU'">
<LangVersion>default</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<LangVersion>default</LangVersion>
</PropertyGroup>
Expand Down
7 changes: 7 additions & 0 deletions src/ParquetViewer.sln
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,26 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release_SelfContained|Any CPU = Release_SelfContained|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6019FC1B-3610-4682-BF96-8345C95CB7EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6019FC1B-3610-4682-BF96-8345C95CB7EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6019FC1B-3610-4682-BF96-8345C95CB7EC}.Release_SelfContained|Any CPU.ActiveCfg = Release_SelfContained|Any CPU
{6019FC1B-3610-4682-BF96-8345C95CB7EC}.Release_SelfContained|Any CPU.Build.0 = Release_SelfContained|Any CPU
{6019FC1B-3610-4682-BF96-8345C95CB7EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6019FC1B-3610-4682-BF96-8345C95CB7EC}.Release|Any CPU.Build.0 = Release|Any CPU
{16D10BC9-08BF-4248-8975-1B54C42EB2C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{16D10BC9-08BF-4248-8975-1B54C42EB2C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{16D10BC9-08BF-4248-8975-1B54C42EB2C2}.Release_SelfContained|Any CPU.ActiveCfg = Release_SelfContained|Any CPU
{16D10BC9-08BF-4248-8975-1B54C42EB2C2}.Release_SelfContained|Any CPU.Build.0 = Release_SelfContained|Any CPU
{16D10BC9-08BF-4248-8975-1B54C42EB2C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{16D10BC9-08BF-4248-8975-1B54C42EB2C2}.Release|Any CPU.Build.0 = Release|Any CPU
{77900356-25F3-4A24-B638-845C784C1175}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{77900356-25F3-4A24-B638-845C784C1175}.Debug|Any CPU.Build.0 = Debug|Any CPU
{77900356-25F3-4A24-B638-845C784C1175}.Release_SelfContained|Any CPU.ActiveCfg = Release_SelfContained|Any CPU
{77900356-25F3-4A24-B638-845C784C1175}.Release_SelfContained|Any CPU.Build.0 = Release_SelfContained|Any CPU
{77900356-25F3-4A24-B638-845C784C1175}.Release|Any CPU.ActiveCfg = Release|Any CPU
{77900356-25F3-4A24-B638-845C784C1175}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
Expand Down
7 changes: 6 additions & 1 deletion src/ParquetViewer/Analytics/AmplitudeEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ public abstract class AmplitudeEvent
AutoSizeColumnsMode = AppSettings.AutoSizeColumnsMode.ToString(),
DateTimeDisplayFormat = AppSettings.DateTimeDisplayFormat.ToString(),
SystemMemory = _systemRAM,
Environment.ProcessorCount
Environment.ProcessorCount,
#if RELEASE_SELFCONTAINED
SelfContainedExecutable = true,
#else
SelfContainedExecutable = false,
#endif
};

protected AmplitudeEvent(string eventType)
Expand Down
5 changes: 5 additions & 0 deletions src/ParquetViewer/ParquetViewer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<PublishSingleFile>true</PublishSingleFile>
<PublishReadyToRun>false</PublishReadyToRun>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<Configurations>Debug;Release;Release_SelfContained</Configurations>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Resources\parquet_icon.ico</ApplicationIcon>
Expand All @@ -24,6 +25,10 @@
<DebugType>full</DebugType>
<LangVersion>default</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_SelfContained|AnyCPU'">
<DebugType>full</DebugType>
<LangVersion>default</LangVersion>
</PropertyGroup>
<ItemGroup>
<Compile Update="Controls\DelayedOnChangedTextBox.cs">
<SubType>Component</SubType>
Expand Down

0 comments on commit 2dd4a51

Please sign in to comment.