You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -154,25 +155,28 @@ public HUDWindow(WindowManager owner)
154
155
Trace.TraceWarning("Unable to access Windows Process performance counters. This may be resolved by following the instructions at http://support.microsoft.com/kb/300956");
GPUMemoryCommittedCounters.Add(newPerformanceCounter("GPU Process Memory","Total Committed",process));
166
-
GPUMemoryDedicatedCounters.Add(newPerformanceCounter("GPU Process Memory","Dedicated Usage",process));
167
-
GPUMemorySharedCounters.Add(newPerformanceCounter("GPU Process Memory","Shared Usage",process));
168
-
Trace.TraceInformation($"Found Windows GPU Process Memory performance counter {process}");
166
+
if(process.StartsWith(instancePrefix))
167
+
{
168
+
GPUMemoryCommittedCounters.Add(newPerformanceCounter("GPU Process Memory","Total Committed",process));
169
+
GPUMemoryDedicatedCounters.Add(newPerformanceCounter("GPU Process Memory","Dedicated Usage",process));
170
+
GPUMemorySharedCounters.Add(newPerformanceCounter("GPU Process Memory","Shared Usage",process));
171
+
Trace.TraceInformation($"Found Windows GPU Process Memory performance counter {process}");
172
+
}
169
173
}
170
174
}
171
-
}
172
-
catch(Exceptionerror)
173
-
{
174
-
Trace.WriteLine(error);
175
-
Trace.TraceWarning("Unable to access Windows GPU Process Memory performance counters. This may be resolved by following the instructions at http://support.microsoft.com/kb/300956");
175
+
catch(Exceptionerror)
176
+
{
177
+
Trace.WriteLine(error);
178
+
Trace.TraceWarning("Unable to access Windows GPU Process Memory performance counters. This may be resolved by following the instructions at http://support.microsoft.com/kb/300956");
179
+
}
176
180
}
177
181
178
182
Debug.Assert(GC.MaxGeneration==2,"Runtime is expected to have a MaxGeneration of 2.");
0 commit comments