bin/XEtemplates/Function Executions.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<event_sessions xmlns="http://schemas.microsoft.com/sqlserver/2008/07/extendedeventconfig">
   <event_session name="Function Executions" maxMemory="4" eventRetentionMode="allowSingleEventLoss" trackCausality="false" dispatchLatency="30" maxEventSize="0" memoryPartitionMode="none">
    <templateCategory>
      <!-- _locID_text="templateCategory" _locComment = "" -->Everyday Extended Events</templateCategory>
    <templateName>
      <!-- _locID_text = "templateName" _locComment = "" -->Function Executions</templateName>
    <templateDescription>
      <!-- _locID_text = "templateDescription" _locComment = "" -->Use this to count the number of times a function is executed from a single SELECT statement.</templateDescription>
      <event package="sqlserver" name="sp_statement_completed">
         <action package="sqlserver" name="sql_text" />
         <action package="sqlserver" name="tsql_stack" />
      </event>
      <event package="sqlserver" name="sql_statement_completed">
         <action package="sqlserver" name="sql_text" />
         <action package="sqlserver" name="tsql_stack" />
      </event>
      <target package="package0" name="ring_buffer" />
   </event_session>
</event_sessions>