Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
lowleveldesign committed Mar 11, 2017
1 parent ca843d6 commit 2526353
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions wtrace/PowerShell/InvokeWtraceCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Management.Automation;
using System.Management.Automation.Host;
using System.Threading;

namespace LowLevelDesign.WinTrace.PowerShell
Expand Down Expand Up @@ -54,8 +53,11 @@ public class InvokeWtraceCommand : PSCmdlet
[Alias("Id")]
public int Pid { get; set; }


protected override void BeginProcessing()
{
}

protected override void ProcessRecord()
{
ErrorRecord errorRecord = null;
if (TraceEventSession.IsElevated() != true) {
Expand Down Expand Up @@ -91,7 +93,7 @@ protected override void BeginProcessing()
while (eventQueue.TryDequeue(out ev)) {
WriteObject(ev);
}
Thread.Sleep(50);
Thread.Sleep(100);
}
// the rest of the events
while (eventQueue.TryDequeue(out ev)) {
Expand Down
1 change: 0 additions & 1 deletion wtrace/PowerShell/PowershellModuleAssemblyInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public class PowerShellModuleAssemblyInitializer : IModuleAssemblyInitializer
{
public void OnImport()
{
Trace.WriteLine("Module load");
Program.Unpack();
}
}
Expand Down

0 comments on commit 2526353

Please sign in to comment.