Skip to content

Commit

Permalink
removed uninteresting events to improve perf
Browse files Browse the repository at this point in the history
  • Loading branch information
zodiacon committed Feb 14, 2017
1 parent ebe3b48 commit b72f240
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions AlpcLogger/Models/AlpcCapture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public void Start() {
var parser = new KernelTraceEventParser(_session.Source);
parser.ALPCReceiveMessage += Parser_ALPCReceiveMessage;
parser.ALPCSendMessage += Parser_ALPCSendMessage;
parser.ALPCWaitForReply += Parser_ALPCWaitForReply;
parser.ALPCUnwait += Parser_ALPCUnwait;
//parser.ALPCWaitForReply += Parser_ALPCWaitForReply;
//parser.ALPCUnwait += Parser_ALPCUnwait;
_session.Source.Process();
}

Expand Down
7 changes: 5 additions & 2 deletions AlpcLogger/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public MainViewModel(IUIServices ui) {
_messagesTimer.Tick += _timer_Tick;
_messagesTimer.Start();

_eventsTimer = new DispatcherTimer(DispatcherPriority.Background) { Interval = TimeSpan.FromSeconds(1) };
_eventsTimer = new DispatcherTimer(DispatcherPriority.Background) { Interval = TimeSpan.FromSeconds(1.5) };
_eventsTimer.Tick += _timer2_Tick;
_eventsTimer.Start();

Expand Down Expand Up @@ -182,7 +182,10 @@ public string SearchText {
DoSave(true);
});

public ICommand ClearLogCommand => new DelegateCommand(() => Messages.Clear());
public ICommand ClearLogCommand => new DelegateCommand(() => {
Messages.Clear();
Events.Clear();
});

public DelegateCommandBase SaveFilteredCommand => new DelegateCommand(() => {
if(MessagesView.Count == 0)
Expand Down

0 comments on commit b72f240

Please sign in to comment.