From: John Salem Date: Fri, 25 Oct 2019 22:04:16 +0000 (-0700) Subject: Change PerfView Utilities usage to BCL X-Git-Tag: submit/tizen/20200402.013218~14^2^2~22^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=603e5c468abadff8269f18974896316914aa2c91;p=platform%2Fcore%2Fdotnet%2Fdiagnostics.git Change PerfView Utilities usage to BCL --- diff --git a/src/Tools/dotnet-gcdump/DotNetHeapDump/GCHeapDump.cs b/src/Tools/dotnet-gcdump/DotNetHeapDump/GCHeapDump.cs index 8287dff07..424be99da 100644 --- a/src/Tools/dotnet-gcdump/DotNetHeapDump/GCHeapDump.cs +++ b/src/Tools/dotnet-gcdump/DotNetHeapDump/GCHeapDump.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; +using System.Security; using System.Text.RegularExpressions; using System.Xml; using Address = System.UInt64; @@ -109,7 +110,7 @@ public class GCHeapDump : IFastSerializable, IFastSerializableVersion var ret = new Dictionary(); // Do the 64 bit processes first, then do us - if (EnvironmentUtilities.Is64BitOperatingSystem && !EnvironmentUtilities.Is64BitProcess) + if (System.Environment.Is64BitOperatingSystem && !System.Environment.Is64BitProcess) { GetProcessesWithGCHeapsFromHeapDump(ret); } @@ -847,7 +848,7 @@ internal class XmlGcHeapDump writer.WriteLine("{0}", gcDump.TimeCollected); if (!string.IsNullOrWhiteSpace(gcDump.CollectionLog)) { - writer.WriteLine("{0}", XmlUtilities.XmlEscape(gcDump.CollectionLog)); + writer.WriteLine("{0}", SecurityElement.Escape(gcDump.CollectionLog)); } if (!string.IsNullOrWhiteSpace(gcDump.MachineName)) @@ -857,7 +858,7 @@ internal class XmlGcHeapDump if (!string.IsNullOrWhiteSpace(gcDump.ProcessName)) { - writer.WriteLine("{0}", XmlUtilities.XmlEscape(gcDump.ProcessName)); + writer.WriteLine("{0}", SecurityElement.Escape(gcDump.ProcessName)); } if (gcDump.ProcessID != 0) @@ -882,7 +883,7 @@ internal class XmlGcHeapDump for (int i = 0; i < gcDump.CountMultipliersByType.Length; i++) { writer.WriteLine("", i, - XmlUtilities.XmlEscape(gcDump.MemoryGraph.GetType((NodeTypeIndex)i, typeStorage).Name), + SecurityElement.Escape(gcDump.MemoryGraph.GetType((NodeTypeIndex)i, typeStorage).Name), gcDump.CountMultipliersByType[i]); } @@ -1086,4 +1087,3 @@ internal class XmlGcHeapDump } -