mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-22 17:24:07 -05:00
Updating profiler old event filtering and unit tests (#624)
This commit is contained in:
committed by
GitHub
parent
c87b369426
commit
f5efe18e1b
@@ -129,7 +129,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Profiler
|
||||
/// Filter the event list to not include previously seen events,
|
||||
/// and to exclude events that happened before the profiling session began.
|
||||
/// </summary>
|
||||
public List<ProfilerEvent> FilterOldEvents(List<ProfilerEvent> events)
|
||||
public void FilterOldEvents(List<ProfilerEvent> events)
|
||||
{
|
||||
if (lastSeenEvent != null)
|
||||
{
|
||||
@@ -168,8 +168,6 @@ namespace Microsoft.SqlTools.ServiceLayer.Profiler
|
||||
// ignore all events before the session began
|
||||
events.Clear();
|
||||
}
|
||||
|
||||
return events;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user