This file contains hidden or 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
namespace SSASEventStreamSample | |
{ | |
using Microsoft.AnalysisServices.AdomdClient; | |
using Microsoft.SqlServer.XEvent.Linq; | |
using System; | |
using System.Data; | |
using System.Xml; | |
class Program | |
{ |
This file contains hidden or 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 script supplied by Bill Anton http://byobi.com/blog/2013/06/extended-events-for-analysis-services/ --> | |
<Create | |
xmlns="http://schemas.microsoft.com/analysisservices/2003/engine" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" | |
xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" | |
xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" | |
xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200" | |
xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300"> | |
<ObjectDefinition> |
This file contains hidden or 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
using (Timeline.Capture("FormulaEvaluator.Evalauate")) | |
{ | |
// Code to time | |
} | |
public static class Timeline | |
{ | |
public static IDisposable Capture(string eventName) | |
{ | |
#pragma warning disable 618 |