Skip to content

Commit b4a372f

Browse files
eguskove.guskov
and
e.guskov
authored
Fix Sampling in Settings
Fix Sampling in Settings Sampling was always enabled and can't be unset. On Android devices sampling might crash the app. So, we need to be able to connect to the device with disabled sampling. Now settings flags are disabled in constructor, so we apply only flags that are set in UI. --------- Co-authored-by: e.guskov <[email protected]>
1 parent 7f4ba12 commit b4a372f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gui/Profiler.Data/CaptureSettings.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Profiler.Data
99
{
1010
public class CaptureSettings
1111
{
12-
public Mode Mode { get; set; } = (Mode.EVENTS | Mode.TAGS | Mode.SAMPLING);
12+
public Mode Mode { get; set; } = Mode.OFF;
1313
public UInt32 SamplingFrequencyHz { get; set; } = 100;
1414
public UInt32 SpikeSamplingFrequencyHz { get; set; } = 1000;
1515
public UInt32 ThreadsSamplingRate { get; set; } = 2;

gui/daProfiler/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.0.15.0")]
55-
[assembly: AssemblyFileVersion("1.0.15.0")]
54+
[assembly: AssemblyVersion("1.0.16.0")]
55+
[assembly: AssemblyFileVersion("1.0.16.0")]

0 commit comments

Comments
 (0)