mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-15 17:23:32 -05:00
* Dropping profiler session on stop request * Changes to IXEventSession to simplify dropping sessions * Stop sessions instead of dropping, disable flaky tests * Initial framework for profiler pause requests * Restructuring profiler session monitoring * Fixes to session monitor * Testing for pause functionality * Fixing comments from PR * Changes to testing * Commenting out flaky test * Deleting leftover testing code
34 lines
803 B
C#
34 lines
803 B
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
namespace Microsoft.SqlTools.ServiceLayer.Profiler
|
|
{
|
|
/// <summary>
|
|
/// Main class for Profiler Service functionality
|
|
/// </summary>
|
|
public interface IXEventSession
|
|
{
|
|
/// <summary>
|
|
/// Gets unique XEvent session Id
|
|
/// </summary>
|
|
int Id { get; }
|
|
|
|
/// <summary>
|
|
/// Starts XEvent session
|
|
/// </summary>
|
|
void Start();
|
|
|
|
/// <summary>
|
|
/// Stops XEvent session
|
|
/// </summary>
|
|
void Stop();
|
|
|
|
/// <summary>
|
|
/// Reads XEvent XML from the default session target
|
|
/// </summary>
|
|
string GetTargetXml();
|
|
}
|
|
}
|