@@ -96,15 +96,15 @@ internal void PluginSettings_DefaultValues()
9696 Assert . Equal ( "none" , settings . Realm ) ;
9797 Assert . Null ( settings . AccessToken ) ;
9898 Assert . True ( settings . TraceResponseHeaderEnabled ) ;
99- #if NET
99+ Assert . False ( settings . HighResolutionTimerEnabled ) ;
100100 Assert . Equal ( "http://localhost:4318/v1/logs" , settings . ProfilerLogsEndpoint . ToString ( ) ) ;
101101 Assert . False ( settings . CpuProfilerEnabled ) ;
102- Assert . False ( settings . MemoryProfilerEnabled ) ;
103102 Assert . False ( settings . SnapshotsEnabled ) ;
104- Assert . False ( settings . HighResolutionTimerEnabled ) ;
105103 Assert . Equal ( 10000u , settings . CpuProfilerCallStackInterval ) ;
106104 Assert . Equal ( 3000u , settings . ProfilerHttpClientTimeout ) ;
107105 Assert . Equal ( 500u , settings . ProfilerExportInterval ) ;
106+ #if NET
107+ Assert . False ( settings . MemoryProfilerEnabled ) ;
108108 Assert . Equal ( 200u , settings . MemoryProfilerMaxMemorySamplesPerMinute ) ;
109109#endif
110110 }
@@ -116,17 +116,17 @@ private static void ClearEnvVars()
116116 Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . Realm , null ) ;
117117 Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . AccessToken , null ) ;
118118 Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . TraceResponseHeaderEnabled , null ) ;
119- #if NET
120119 Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . AlwaysOnProfiler . CpuProfilerEnabled , null ) ;
121120 Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . AlwaysOnProfiler . CallStackInterval , null ) ;
122- Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . AlwaysOnProfiler . MemoryProfilerEnabled , null ) ;
123121 Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . AlwaysOnProfiler . ProfilerLogsEndpoint , null ) ;
124122 Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . AlwaysOnProfiler . ProfilerExportTimeout , null ) ;
125123 Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . AlwaysOnProfiler . ProfilerExportInterval , null ) ;
126- Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . AlwaysOnProfiler . ProfilerMaxMemorySamples , null ) ;
127124 Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . Snapshots . Enabled , null ) ;
128125 Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . Snapshots . SamplingIntervalMs , null ) ;
129126 Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . Snapshots . SelectionRate , null ) ;
127+ #if NET
128+ Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . AlwaysOnProfiler . MemoryProfilerEnabled , null ) ;
129+ Environment . SetEnvironmentVariable ( ConfigurationKeys . Splunk . AlwaysOnProfiler . ProfilerMaxMemorySamples , null ) ;
130130#endif
131131 }
132132 }
0 commit comments