From: José Rivero Date: Thu, 28 Mar 2019 00:43:28 +0000 (-0700) Subject: [dotnet-trace] Update namespaces based on previous PR feedback. (#145) X-Git-Tag: submit/tizen/20190813.035844~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=454a29da0849c540251db0d8a680400bd358abb0;p=platform%2Fcore%2Fdotnet%2Fdiagnostics.git [dotnet-trace] Update namespaces based on previous PR feedback. (#145) --- diff --git a/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/DiagnosticMessageType.cs b/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/DiagnosticMessageType.cs index aae781108..3668f9482 100644 --- a/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/DiagnosticMessageType.cs +++ b/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/DiagnosticMessageType.cs @@ -2,7 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -namespace Microsoft.Diagnostics.Tools.RuntimeClient.Eventing +namespace Microsoft.Diagnostics.Tools.RuntimeClient { enum DiagnosticMessageType : uint { diff --git a/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/EventPipeClient.cs b/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/EventPipeClient.cs index 636259fc4..11693824d 100644 --- a/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/EventPipeClient.cs +++ b/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/EventPipeClient.cs @@ -14,7 +14,7 @@ using System.Runtime.InteropServices; using System.Security.Principal; using System.Text.RegularExpressions; -namespace Microsoft.Diagnostics.Tools.RuntimeClient.Eventing +namespace Microsoft.Diagnostics.Tools.RuntimeClient { public static class EventPipeClient { diff --git a/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/MessageHeader.cs b/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/MessageHeader.cs index 14ab6e630..bcfc9e94c 100644 --- a/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/MessageHeader.cs +++ b/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/MessageHeader.cs @@ -4,7 +4,7 @@ using System.Runtime.InteropServices; -namespace Microsoft.Diagnostics.Tools.RuntimeClient.Eventing +namespace Microsoft.Diagnostics.Tools.RuntimeClient { [StructLayout(LayoutKind.Sequential)] struct MessageHeader diff --git a/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/Provider.cs b/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/Provider.cs index 8995a8c32..2738735e5 100644 --- a/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/Provider.cs +++ b/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/Provider.cs @@ -5,7 +5,7 @@ using System; using System.Diagnostics.Tracing; -namespace Microsoft.Diagnostics.Tools.RuntimeClient.Eventing +namespace Microsoft.Diagnostics.Tools.RuntimeClient { public struct Provider { diff --git a/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/SessionConfiguration.cs b/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/SessionConfiguration.cs index ad7c3295e..3950f1ba6 100644 --- a/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/SessionConfiguration.cs +++ b/src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/SessionConfiguration.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; -namespace Microsoft.Diagnostics.Tools.RuntimeClient.Eventing +namespace Microsoft.Diagnostics.Tools.RuntimeClient { public struct SessionConfiguration { diff --git a/src/Microsoft.Diagnostics.Tools.RuntimeClient/Extensions.cs b/src/Microsoft.Diagnostics.Tools.RuntimeClient/Extensions.cs index 4f581ec35..266e717dc 100644 --- a/src/Microsoft.Diagnostics.Tools.RuntimeClient/Extensions.cs +++ b/src/Microsoft.Diagnostics.Tools.RuntimeClient/Extensions.cs @@ -1,6 +1,8 @@ -using Microsoft.Diagnostics.Tools.RuntimeClient.Eventing; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System; -using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; using System.Text; diff --git a/src/Tools/dotnet-trace/CommandLine/Commands/PortsCommandHandler.cs b/src/Tools/dotnet-trace/CommandLine/Commands/PortsCommandHandler.cs index b8d5bd072..49b89e0d4 100644 --- a/src/Tools/dotnet-trace/CommandLine/Commands/PortsCommandHandler.cs +++ b/src/Tools/dotnet-trace/CommandLine/Commands/PortsCommandHandler.cs @@ -2,7 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.Diagnostics.Tools.RuntimeClient.Eventing; +using Microsoft.Diagnostics.Tools.RuntimeClient; using System; using System.CommandLine; using System.CommandLine.Invocation; diff --git a/src/Tools/dotnet-trace/CommandLine/Commands/ProvidersCommandHandler.cs b/src/Tools/dotnet-trace/CommandLine/Commands/ProvidersCommandHandler.cs index c48d3c08d..2a5ce5e6e 100644 --- a/src/Tools/dotnet-trace/CommandLine/Commands/ProvidersCommandHandler.cs +++ b/src/Tools/dotnet-trace/CommandLine/Commands/ProvidersCommandHandler.cs @@ -2,7 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.Diagnostics.Tools.RuntimeClient.Eventing; +using Microsoft.Diagnostics.Tools.RuntimeClient; using System; using System.Collections.Generic; using System.CommandLine; diff --git a/src/Tools/dotnet-trace/CommandLine/Commands/StartCommandHandler.cs b/src/Tools/dotnet-trace/CommandLine/Commands/StartCommandHandler.cs index 22ae309b2..627c5179b 100644 --- a/src/Tools/dotnet-trace/CommandLine/Commands/StartCommandHandler.cs +++ b/src/Tools/dotnet-trace/CommandLine/Commands/StartCommandHandler.cs @@ -2,7 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.Diagnostics.Tools.RuntimeClient.Eventing; +using Microsoft.Diagnostics.Tools.RuntimeClient; using System; using System.Collections.Generic; using System.CommandLine; diff --git a/src/Tools/dotnet-trace/CommandLine/Commands/StopCommandHandler.cs b/src/Tools/dotnet-trace/CommandLine/Commands/StopCommandHandler.cs index 230e9fced..e7bde9b35 100644 --- a/src/Tools/dotnet-trace/CommandLine/Commands/StopCommandHandler.cs +++ b/src/Tools/dotnet-trace/CommandLine/Commands/StopCommandHandler.cs @@ -2,7 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.Diagnostics.Tools.RuntimeClient.Eventing; +using Microsoft.Diagnostics.Tools.RuntimeClient; using System; using System.CommandLine; using System.CommandLine.Invocation; diff --git a/src/Tools/dotnet-trace/CommandLine/Commands/StreamCommand.cs b/src/Tools/dotnet-trace/CommandLine/Commands/StreamCommand.cs index d673195c9..5f10ea65d 100644 --- a/src/Tools/dotnet-trace/CommandLine/Commands/StreamCommand.cs +++ b/src/Tools/dotnet-trace/CommandLine/Commands/StreamCommand.cs @@ -1,4 +1,8 @@ -using Microsoft.Diagnostics.Tools.RuntimeClient.Eventing; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.Diagnostics.Tools.RuntimeClient; using System; using System.Collections.Generic; using System.CommandLine; @@ -26,7 +30,6 @@ namespace Microsoft.Diagnostics.Tools.Trace if (sessionId != 0) { var filePath = $"dotnetcore-eventpipe-{pid}-0x{sessionId:X16}.netperf"; - filePath = Path.Combine(@"S:\github.com\jorive\diagnostics\src\Tools\dotnet-trace", filePath); using (var fs = new FileStream(filePath, FileMode.Create, FileAccess.Write)) { while (true)