-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Fix Import-DbgProfilerStackTrace not working
-Fix Trace-DbgProfilerStack not being allowed to create global sessions -Warn when attempting to operate on the last trace when no last trace exists
- Loading branch information
Showing
18 changed files
with
158 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
src/DebugTools/Profiler/Reader/Config/FileXmlProfilerReaderConfig.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
|
||
namespace DebugTools.Profiler | ||
{ | ||
class FileXmlProfilerReaderConfig : IProfilerReaderConfig | ||
{ | ||
public ProfilerSessionType SessionType => ProfilerSessionType.XmlFile; | ||
|
||
public ProfilerSetting[] Settings => Array.Empty<ProfilerSetting>(); | ||
|
||
public string Path { get; } | ||
|
||
public FileXmlProfilerReaderConfig(string path) | ||
{ | ||
Path = path; | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
using System; | ||
using DebugTools.Tracing; | ||
|
||
namespace DebugTools.Profiler | ||
{ | ||
class FileXmlProfilerReader : IProfilerReader | ||
{ | ||
public IProfilerReaderConfig Config { get; } | ||
|
||
public FileXmlProfilerReader(FileXmlProfilerReaderConfig config) | ||
{ | ||
Config = config; | ||
} | ||
|
||
public void Initialize() => throw new NotImplementedException(); | ||
|
||
public void InitializeGlobal() => throw new NotImplementedException(); | ||
|
||
public void Execute() => throw new NotImplementedException(); | ||
|
||
public void Stop() => throw new NotImplementedException(); | ||
|
||
public IProfilerTarget CreateTarget() => new XmlFileProfilerTarget((FileXmlProfilerReaderConfig) Config); | ||
|
||
public void Dispose() | ||
{ | ||
} | ||
|
||
#pragma warning disable CS0067 | ||
public event Action<MethodInfoArgs> MethodInfo; | ||
public event Action<MethodInfoDetailedArgs> MethodInfoDetailed; | ||
public event Action<ModuleLoadedArgs> ModuleLoaded; | ||
public event Action<CallArgs> CallEnter; | ||
public event Action<CallArgs> CallLeave; | ||
public event Action<CallArgs> Tailcall; | ||
public event Action<CallDetailedArgs> CallEnterDetailed; | ||
public event Action<CallDetailedArgs> CallLeaveDetailed; | ||
public event Action<CallDetailedArgs> TailcallDetailed; | ||
public event Action<UnmanagedTransitionArgs> ManagedToUnmanaged; | ||
public event Action<UnmanagedTransitionArgs> UnmanagedToManaged; | ||
public event Action<ExceptionArgs> Exception; | ||
public event Action<CallArgs> ExceptionFrameUnwind; | ||
public event Action<ExceptionCompletedArgs> ExceptionCompleted; | ||
public event Action<StaticFieldValueArgs> StaticFieldValue; | ||
public event Action<ThreadArgs> ThreadCreate; | ||
public event Action<ThreadArgs> ThreadDestroy; | ||
public event Action<ThreadNameArgs> ThreadName; | ||
public event Action<ShutdownArgs> Shutdown; | ||
public event Action Completed; | ||
#pragma warning enable CS0067 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Threading; | ||
|
||
namespace DebugTools.Profiler | ||
{ | ||
class XmlFileProfilerTarget : IProfilerTarget | ||
{ | ||
public string Name => config.Path; | ||
public int? ProcessId => null; | ||
public bool IsAlive => false; | ||
|
||
private FileXmlProfilerReaderConfig config; | ||
|
||
public XmlFileProfilerTarget(FileXmlProfilerReaderConfig config) | ||
{ | ||
this.config = config; | ||
} | ||
|
||
public void Start(Action startCallback, CancellationToken cancellationToken) | ||
{ | ||
} | ||
|
||
public void SetExitHandler(Action<bool> onTargetExit) | ||
{ | ||
} | ||
|
||
public void ExecuteCommand(MessageType messageType, object value) | ||
{ | ||
throw new NotSupportedException(); | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters